1 From: Andromeda <andromeda@htmlworkshop.com>
2 Date: Sun, 15 Nov 1998 23:24:05 +0200 (original)
3 Date: Wed, 14 Jul 1999 21:42:18 +0200 (small change)
5 This approach to virtual domains has helped me a great deal, and is so easy
6 to maintain (add and modify as appropriate):
8 Under the main configuration settings (in your configure file):
10 local_domains = "domain1.com:mydomain.com:\
11 lsearch;/usr/exim/aliases/domains"
17 file = /var/spool/mail/${local_part}
19 Under the directors settings:
22 except_domains = "lsearch;/usr/exim/aliases/domains"
28 except_domains = "lsearch;/usr/exim/aliases/domains"
34 except_domains = "lsearch;/usr/exim/aliases/domains"
36 transport = local_delivery
39 domains = "lsearch;/usr/exim/aliases/domains"
42 file = /usr/exim/aliases/$domain-aliases
43 search_type = lsearch*@
45 Voila. Done. This requires the following files from you:
47 1. domains (contains the domains that you do virtual hosting for. Its format is
56 2. domain1.com-aliases (contains the addresses in domain1.com that you want
57 to redirect). The format is as follows:
60 adam: adam@otherdomain.com
65 /usr/exim/aliases/ is my directory where I store those files to make it
66 easier for administration.
68 This way it works just fine, and mail to non-existent aliases gets bounced.
70 The "search_type = lsearch*@" line in the "virtual" director allows you to
71 specify a default mailbox at the end of each domain file, as shown below
72 for domain1.com-aliases:
75 adam: adam@otherdomain.com
78 All other email sent to the domain gets sent to the local user "mike".