Re: [exim] Exim3 to Exim4 upgrade

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marc Sherman
Ημερομηνία:  
Προς: Matthew Daubenspeck
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Exim3 to Exim4 upgrade
Matthew Daubenspeck wrote:
> I know I am REALLY behind the ball on this one, but I am finally trying
> to take the plunge to upgrade from v3 to v4. I basically have local
> users that belong to different domains. I was using flat config files
> with usernames mapped to their specific domains.


The exim 4 config is very similar to do this. The best way to do it,
IMO, is to reorganize your configs so that you have a directory
/etc/exim/config/domains/ , and within that dir, you have a file whose
name is the domain name, containing the user names. You don't need the
local.domains file, because that can be determined using dsearch from
the domains directory contents.

Your transport simplifies to:

maildir_delivery:
driver = appendfile
maildir_format
delivery_date_add
envelope_to_add
return_path_add

Your director becomes a router:

maildir_local:
driver = redirect
domains = dsearch;/etc/exim/config/domains
local_parts = /etc/exim/config/domains/$domain
check_local_user
data = $home/Maildir/
directory_transport = maildir_delivery

- Marc