Re: [Exim] Exim configuration

Top Page
Delete this message
Reply to this message
Author: Drav Sloan
Date:  
To: Elm Gysel
Subject: Re: [Exim] Exim configuration
Elm Gysel wrote:
> We have a system with two domains.


[snip]

My approach was to make this a little more flexible, rather than having to
write a director for each domain you do:

In your directors section:

virtual_localuser:
driver = aliasfile
transport = virtual_localdelivery
domains = lsearch;/usr/exim/tables/virtual_domains
file = /usr/exim/tables/vdoms/${domain}.passwd
search_type = lsearch

This then allows you to specify b.com in the virtual_domains file (and
another other domains you want with minimal fuss), and _then_ exim looks
at a '${domain}.passwd' file for the user:passwd pairs.

Added to which you can have aliases for each of the domains

virtual_alias:
driver = aliasfile
domains = lsearch;/usr/exim/tables/virtual_domains
file = /usr/exim/tables/vdoms/${domain}.aliases
search_type = lsearch
qualify_preserve_domain

You also need a transport which does you final bit (the deliver to
$localpart-$domain):

virtual_localdelivery:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
file = /var/spool/mail/${local_part}-${domain}
# You may also want to specify these
# mode = 600
# user = someuser
# group = somegroup

Regards,

Drav

--
    David Sloan - Senior Mail and News Systems Admin - Platform Management
  Tel: +44 845 272 0666    Fax: +44 20 8371 1167    Email: dsloan@???