Re: Config for multiple domains

Top Page
Delete this message
Reply to this message
Author: Daniel Ryde
Date:  
To: Jon Peatfield
CC: Exim Users, jp107
Subject: Re: Config for multiple domains
On Fri, 31 Oct 1997, Jon Peatfield wrote:

> Has anyone got a really simple example configuration which handles multiple
> domains? I just want to verify that I'm not about to deliver all our mail to
> the wrong destinations, so I want to compare what I wrote based on reading the
> spec with something known to work.



# Add this in exim main configuration:
local_domains = dbm;/etc/mail/domains


# Add this at the top of exim directors configuration:
virtual:
domains = dbm;/etc/mail/domains,
driver = aliasfile,
more = false;
file = /etc/mail/$domain,
search_type = lsearch

Then make a dir /etc/mail, there make a file domains containing the domain
names. For example:

# File: domains.txt
bar.com
pub.com

Run the command:
exim_dbmbuild /etc/mail/domains.txt /etc/mail/domains

Then in /etc/mail create an aliasfile for each domain:

# File: bar.com
foo:        foo
foo.someuser:    foo
foo1:        foo1


# File: pub.com
drink:        drink
bardisk:    foo




Best Regards

Daniel Ryde, System Administrator
__________________________________________________________________________
Tripnet AB                Visit Address:      Telephone:  +46 31 7252500
Box 5071                  Avagen 42           Facsimile:  +46 31 7252501
S-402 22 GOTEBORG         GOTEBORG            Email:      ryde@???
Sweden                    Sweden



--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/