[exim] advice needed - consolidating domains

Inizio della pagina
Delete this message
Reply to this message
Autore: Jason Meers
Data:  
To: Exim Users List
Oggetto: [exim] advice needed - consolidating domains
Hi all,

I'm currently consolidating 16 different e-mail domains into one central
domain using our existing exim mail-hub.

Each user may at one time or other have used any of these 16 domains for
e-mail and may have used any of the following alias types:

john.smith
jsmith
johns

Using plain 1-to-1 aliases in a text file would mean generating nearly
20,000 entries by hand.

I decided to try using an lsearch instead which seems to be working up
to now.

Here is an example of the kind of router I am using and the text file it
reads in from:


my_redirect:
driver = redirect
data = ${lookup{$local_part}lsearch{/etc/exim/my_filename.txt}}
domains = +relay_to_domains
allow_fail
allow_defer



# start of my_filename.txt
john.smith:        john.smith@???
jsmith:            john.smith@???
johns:            john.smith@???
previous.employee:    :fail: no longer with the company
# end of my_filename.txt


Each domain has its own version of the router and lookup file which will
no longer be needed once ALL of the exchange mailboxes have been
consolidated onto the new scalix server.

I am concerned about how expensive all of these lookups will get, and
will eventually convert them to cdb files once they become more stable,
but this still seems a very messy way to do things.

I have a few thoughts about improving this, but wonder if anyone else on
the list already has, or can suggest a better way of doing this. Caching
lookups and using pcre (to match all 3 aliases using only one entry)
come to mind.

I won't have a single, consolidated LDAP address book until all of this
is complete, so I can't use that option just yet.

Thanks, any suggestions would be appreciated

Jason Meers