Initial revision
[exim-website.git] / config.samples / C018
1 Date: Mon, 17 May 1999 22:34:10 -0700
2 From: Thomas Robinson <roo@marsh.cts.com>
3
4 This configuration removes a lot of the aliases, and automates a
5 lot of the other functions based on whether the files /
6 directories exist. Only three aliases per list are needed:
7
8 <list>-approval
9 <list>-owner
10 owner-<list>
11
12 # Lots of stuff snipped . . .
13
14 trusted_users = mail:majordomo
15
16 end
17
18 ######################################################################
19 #                      TRANPORTS CONFIGURATION                       #
20 ######################################################################
21
22 # More stuff snipped . . .
23
24 # This transport is used for processing *-request addresses
25 # through Majordomo
26 majordomo:
27   driver = pipe
28   user = majordomo
29   command = "/usr/local/mail/majordomo/wrapper majordomo -l ${local_part}"
30   return_fail_output = true
31
32
33 # This transport is used for processing messages through the
34 # majordomo resend mechanism
35 resend:
36   driver = pipe
37   user = majordomo
38   command = "/usr/local/mail/majordomo/wrapper resend -l ${local_part} ${local_part}"
39   return_fail_output = true
40
41
42 # This transport handles creation of digests for majordomo.
43 digestify:
44   driver = pipe
45   user = majordomo
46   command = "/usr/local/mail/majordomo/wrapper digest -r -C -l ${local_part}-digest ${local_part}-digest"
47   return_fail_output = true
48
49
50 # This transport handles the archive function
51 archivate:
52   driver = pipe
53   user = majordomo
54   command = "/usr/local/mail/majordomo/wrapper archive2.pl -f /usr/local/mail/lists/${local_part}.archive/${local_part} -M -a"
55   return_fail_output = true
56
57 end
58
59
60
61 ######################################################################
62 #                      DIRECTORS CONFIGURATION                       #
63 #             Specifies how local addresses are handled              #
64 ######################################################################
65 #                          ORDER DOES MATTER                         #
66 #   A local address is passed to each in turn until it is accepted.  #
67 ######################################################################
68
69 # Local addresses are those with a domain that matches some item
70 # in the "local_domains" setting above, or those which are passed
71 # back from the routers because of a "self=local" setting (not
72 # used in this configuration).
73
74
75 # This director handles list processing of *-request addresses.
76 # Note that if there is no file, the message will NOT get passed
77 # to majordomo.
78
79 listrequest:
80   driver = smartuser
81   suffix = -request
82   require_files = +/usr/local/mail/lists/${local_part}.config
83   transport = majordomo
84
85
86 # This director handles list processing when sending through the
87 # majordomo RESEND mechanism.  If there is no file, the message
88 # will NOT get passed to majordomo.
89
90 listresend:
91   driver = smartuser
92   suffix = -digest
93   suffix_optional = true
94   require_files = +/usr/local/mail/lists/${local_part}${local_part_suffix}.config
95   transport = resend
96   except_senders = owner-${local_part}@marsh.cts.com:majordomo:owner-${local_part}-digest@marsh.cts.com
97
98
99 # This director handles creation of the archive files for a list.
100
101 archives:
102   driver = smartuser
103   suffix = -digest
104   suffix_optional = true
105   require_files = +/usr/local/mail/lists/${local_part}.archive:!+/usr/local/mail/lists/${local_part}-digest.config
106   transport = archivate
107   unseen = true
108
109
110 # This director handles the list-digest processing.
111
112 digests:
113   driver = smartuser
114   require_files = +/usr/local/mail/lists/${local_part}-digest.config
115   transport = digestify
116   unseen = true
117
118
119 # This director handles list processing.
120
121 listout:
122   driver = forwardfile
123   require_files = +/usr/local/mail/lists/${local_part}.config
124   file = /usr/local/mail/lists/${local_part}
125   modemask = 2
126   user = majordomo
127   no_check_local_user
128   forbid_pipe
129   forbid_file
130   one_time
131   skip_syntax_errors
132   errors_to = owner-${local_part}
133
134
135 # This director handles aliasing using a traditional /etc/aliases
136 # file.  If any of your aliases expand to pipes or files, you
137 # will need to set up a user and a group for these deliveries to
138 # run under. You can do this by uncommenting the "user" option
139 # below (changing the user name as appropriate) and adding a
140 # "group" option if necessary.
141
142 system_aliases:
143   driver = aliasfile
144   file = /etc/aliases
145   search_type = lsearch
146   user = mail
147
148 # The rest of the file goes here . . .