1 From: Andromeda <andromeda@htmlworkshop.com>
2 Date: Sun, 15 Nov 1998 23:24:05 +0200
4 This approach to virtual domains has helped me a great deal, and is so easy
5 to maintain (add and modify as appropriate):
7 Under the main configuration settings (in your configure file):
9 local_domains = "domain1.com:mydomain.com:\
10 lsearch;/usr/exim/aliases/domains"
16 file = /var/spool/mail/${local_part}
18 Under the directors settings:
21 except_domains = "lsearch;/usr/exim/aliases/domains"
27 except_domains = "lsearch;/usr/exim/aliases/domains"
33 except_domains = "lsearch;/usr/exim/aliases/domains"
35 transport = local_delivery
38 domains = "lsearch;/usr/exim/aliases/domains"
41 file = /usr/exim/aliases/$domain-aliases
44 Voila. Done. This requires the following files from you:
46 1. domains (contains the domains that you do virtual hosting for. Its format is
55 2. domain1.com-aliases (contains the addresses in domain1.com that you want
56 to redirect). The format is as follows:
59 adam: adam@otherdomain.com
64 /usr/exim/aliases/ is my directory where I store those files to make it
65 easier for administration.
67 This way it works just fine, and mail to non-existent aliases gets bounced.
68 You can check whether selecting *: allows you to do a catch-all.