Exim 4.72 release
[exim-website.git] / config.samples / C009
1 Date: 6 Oct 1998
2 From: Philip Hazel
3
4 These are suggested parts of a configuration for looking up users in 
5 /etc/passwd.domain rather than in /etc/passwd, with a separate alias file for 
6 each domain as well. Delivery takes place into a mailbox within a per-domain 
7 directory, though a different transport could of course be substituted. The
8 delivery process is run as user exim, group mail. The list of domains is kept
9 in /etc/customer/domains.
10
11 # Transport: Place this in the "transports" section of the configuration.
12
13 virtual_localdelivery:
14   driver = appendfile
15   file = /var/spool/mail/${domain}/${local_part}
16   user = exim 
17   group = mail
18   mode = 660
19   
20 # Directors: Place these two directors in the "directors" section of the
21 # configuration. DO NOT put them immediately after the transport driver
22 # just defined - that's the wrong part of the configuration file. 
23  
24 # This director handles aliases. Because it has no transport setting, it
25 # just expands local parts that it recognizes into new addresses.
26  
27 virtual_alias:
28    driver = aliasfile
29    domains = lsearch;/etc/customer/domains
30    file = /etc/customer/${domain}.aliases
31    search_type = lsearch
32    qualify_preserve_domain 
33
34 # This director checks local parts. It *does* have a transport setting, so
35 # if it finds a local part in the file, the message is directed to that
36 # transport. The data following the local part in the file is not used.
37  
38 virtual_localuser:
39    driver = aliasfile
40    transport = virtual_localdelivery
41    domains = lsearch;/etc/customer/domains
42    file = /etc/passwd.$domain
43    search_type = lsearch  
44    no_more