[EXIM] re-routing mail based on first character of local par…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: F. Jacot Guillarmod
Date:  
À: exim-users
Sujet: [EXIM] re-routing mail based on first character of local part?
Hi,

Just checking on something:

We're trying to standardise on the format of local email addresses for
students, and have decided on the format "studentno@???".
Now campus.ru.ac.za is simply an MX record or three in the DNS, and the
targets are all running exim. Outgoing student mail is re-written
into the above format, irrespective of which system it actually came from.

A complication is that we have two geographically separate campuses
(campi?) each with their own "real" Novell server. We'd like to be able
to deliver incoming mail to recipients on either of these two servers
while sticking to the above addressing convention.

Fortunately, the student number is prefixed by a unique character
according to which campus they are registered on, so I thought the
following two directors would handle things:

====================
[...]

east-london:
    driver = smartuser
    domain = "campus.ru.ac.za"
    prefix = "e9:e0"
    new_address = ${local_part}@???


grahamstown:
    driver = smartuser
    domain = "campus.ru.ac.za"
    prefix = "g7:g8:g9:g0"
    new_address = ${local_part}@???


[...]
====================

My problem is that it's not clear from the documentation what the effect
of "prefix" is. Is that character string, if it exists, stripped from
the local_part as used in new_address? If so, is there an obvious method
of re-routing according to a component of local_part?

Many thanks,
-- 
F.F. Jacot Guillarmod - Information Technology - Rhodes University - Grahamstown
      Internet: Jacot@???  Phone: +27 461 318284 Fax: +27 461 27764
   The views expressed above are not necessarily those of Rhodes University


--
*** Exim information can be found at http://www.exim.org/ ***