1 Date: Thu, 26 Nov 1998 09:39:52 +0000
2 From: David M Walker <davidw@datamgmt.com>
4 Thanks to Philip and others I now have my ISP style config built and
5 therefore am posting the final configuration fragments to the list in
6 case anyone else wants to do a similar thing
8 ######################################################################
10 # This configuration fragment is for use with an ISP type solution
11 # Each client has their own directory that contains their own
12 # editable passwd, alias etc type files. Furthemore if they create
13 # a local user then that user can also have a a .forward file and/or
16 # Files and Directories
17 # Password file for a domain
18 # /clients/${domain}/etc/passwd
19 # Alias file for a domain
20 # /clients/${domain}/etc/aliases
21 # Directory where users mail for a domain is stored
22 # /clients/${domain}/mail/
23 # Location of file with a list of domains
24 # /clients/utils/data/domains
26 ######################################################################
27 # TRANPORTS CONFIGURATION #
28 ######################################################################
30 # This transport is used for local delivery to user mailboxes.
32 virtual_localdelivery:
34 file = /clients/${domain}/mail/${local_part}
35 user = ${lookup{$local_part}lsearch{/etc/passwd}{$value}{exim}}
39 # This transport is used to handly autoreplys
43 from = $local_part@$domain
45 subject = "Reply re: $header_subject:"
47 "${extract{5}{:}{${expand:${lookup{$local_part}lsearch{/clients/${domain}/etc/passwd}{$value}}}}}/.autoreply"
50 # This transport is used for handling pipe addresses generated by alias
57 # This transport is used for handling file addresses generated by alias
63 # This transport is used for handling file addresses generated by alias
64 # or .forward files if the path ends in "/".
72 # This transport is used for handling autoreplies generated by the
74 # option of the forwardfile director.
79 # This transport is used for delivering messages over SMTP connections.
88 ######################################################################
89 # DIRECTORS CONFIGURATION #
90 ######################################################################
92 # Handles .autoreply files
96 transport = auto_transport
98 root:${extract{5}{:}{${expand:${lookup{$local_part}lsearch{/clients/${domain}/etc/passwd}{$value}}}}}/.autoreply
99 condition = ${if eq{$sender_address}{}{no}{yes}}
102 # Handles any .forward files
106 check_local_user = false
108 "${extract{5}{:}{${expand:${lookup{$local_part}lsearch{/clients/${domain}/etc/passwd}{$value}}}}}"
111 "${extract{5}{:}{${expand:${lookup{$local_part}lsearch{/clients/${domain}/etc/passwd}{$value}}}}}/.forward"
117 # This director matches local user mailboxes.
121 transport = virtual_localdelivery
122 domains = lsearch;/clients/utils/data/domains
123 file = /clients/${domain}/etc/passwd
124 search_type = lsearch
126 # This director matches anything in the aliases
130 domains = lsearch;/clients/utils/data/domains
131 file = /clients/${domain}/etc/aliases
132 search_type = lsearch*
133 qualify_preserve_domain