Initial revision
[exim-website.git] / config.samples / C016
1 From: Andromeda <andromeda@htmlworkshop.com>
2 Date: Sun, 15 Nov 1998 23:24:10 +0200
3
4 Herewith my configuration:
5
6 ######################################################################
7 #                  Runtime configuration file for Exim               #
8 ######################################################################
9
10
11 # This is a default configuration file which will operate correctly in
12 # uncomplicated installations. Please see the manual for a complete list
13 # of all the runtime configuration options.
14
15
16 # This file is divided into several parts, all but the last of which are
17 # terminated by a line containing the word "end". The parts must appear
18 # in the correct order, and all must be present (even if some of them are
19 # in fact empty). Blank lines, and lines starting with # are ignored.
20
21 deliver_load_max = 5.0
22 return_size_limit  =  10k
23 auto_thaw = 2h
24 message_filter_user = exim 
25 exim_user = exim
26 exim_path = /usr/exim/bin/exim
27
28 # Let's fix this gecos thing -- Siviwe (28/06/97)
29 gecos_pattern="([^,]*)"
30 gecos_name=$1
31
32 # implement complete sender and recipient verification, including fixups.
33
34 sender_verify
35 sender_verify_reject
36 sender_verify_fixup
37 receiver_verify
38
39 # allow IP addresses to connect
40
41 log_ip_options
42 no_refuse_ip_options
43
44 # implement some anti-spam (RBL) - Andromeda 27/02/98
45
46 rbl_domains = rbl.maps.vix.com
47 rbl_reject_recipients
48
49 # implement virtual domain mail relay - Andromeda 6/10/98
50
51 sender_address_relay = "partial-lsearch;/usr/exim/local/localdomains"
52
53 # implement customised SMTP welcome banner - Andromeda 10/11/98
54
55 smtp_banner = "Welcome! This system does not accept Unsolicited \
56       Commercial Email and will\nblacklist offenders through RBL and our \
57       internal list. Have a nice day!\n\n${primary_hostname} ESMTP Exim \
58       ${version_number} ${tod_full}"
59
60 # implement sender blacklisting using rejection lists - Andromeda 11/11/98
61 # also implement a feedback mechanism for un-blacklisting
62
63 sender_reject_recipients = "@@lsearch;/usr/exim/local/blacklist"
64 recipients_reject_except = "@@lsearch;/usr/exim/local/blacklist-except"
65
66 sender_host_reject_recipients = "+allow_unknown: \
67                                 lsearch;/usr/exim/local/hosts-blacklist"
68
69 # future implementations for specific spamming hosts and nets
70 #
71 #sender_host_reject_except = "/usr/exim/local/hosts-except"
72 #sender_net_reject_except = /usr/exim/local/nets-except
73 #
74
75 # implement customised SMTP error rejection messages
76
77 prohibition_message =
78 "$prohibition_reason|${lookup{$prohibition_reason}lsearch\
79   {/usr/exim/reject.messages}{$value}}"
80
81 ######################################################################
82 #                    MAIN CONFIGURATION SETTINGS                     #
83 ######################################################################
84
85 # Specify your host's canonical name here. If this option is not set, the
86 # uname() function is called to obtain the name.
87
88 # primary_hostname =
89
90 # Specify the domain you want to be added to all unqualified addresses
91 # here. If this option is not set, the primary_hostname value is used.
92 qualify_domain = eons.net
93
94 # If you want unqualified recipient addresses to be qualified with a different
95 # domain to unqualified sender addresses, specify the recipient domain here.
96 # If this option is not set, the qualify_domain value is used.
97
98 # qualify_recipient =
99
100 # Specify your local domains as a colon-separated list here. If this option
101 # is not set, the qualify_recipient value is used as the only local domain.
102 # If you do not want to do any local deliveries, uncomment the following line,
103 # but do not supply any data for it.
104
105 local_domains = "eons.net:fusion.eons.net:mail.eons.net:\
106                lsearch;/usr/exim/aliases/domains"
107
108 # No local deliveries will ever be run under the uids of these users.
109
110 #never_users = root
111
112 # If you are running Exim under its own uid (recommended), then you should
113 # set up that uid as a trusted user by de-commenting the following and
114 # changing the name if necessary.
115
116 trusted_users = exim:majordom
117
118 end
119
120
121
122 ######################################################################
123 #                      TRANPORTS CONFIGURATION                       #
124 ######################################################################
125
126 # This transport is used for local delivery to user mailboxes.
127
128 local_delivery:
129   driver = appendfile;
130   file = /var/spool/mail/${local_part}
131
132 # This transport is used for handling pipe addresses generated by alias
133 # or .forward files. It has a conventional name, since it is not actually
134 # mentioned elsewhere in this configuration file.
135
136 address_pipe:
137   driver = pipe;
138   ignore_status,
139   user = majordom,
140   return_output
141
142 # This transport is used for handling file addresses generated by alias
143 # or .forward files. It has a conventional name, since it is not actually
144 # mentioned elsewhere in this configuration file.
145
146 address_file:
147   driver = appendfile;
148   user = majordom
149
150 # This transport is used for handling autoreplies generated by the filtering
151 # option of the forwardfile director. It has a conventional name, since it
152 # is not actually mentioned elsewhere in this configuration file.
153
154 address_reply:
155   driver = autoreply
156
157 # This transport is used for delivering messages over SMTP connections.
158
159 smtp:
160   driver = smtp;
161
162 end
163
164
165
166 ######################################################################
167 #                      DIRECTORS CONFIGURATION                       #
168 ######################################################################
169
170 # This director handles aliasing using a traditional /etc/aliases file.
171
172 system_aliases:
173   except_domains = "lsearch;/usr/exim/aliases/domains"
174   driver = aliasfile;
175   file = /etc/aliases,
176   search_type = lsearch
177
178 # This director handles forwarding using traditional .forward files.
179 # If you want it also to allow mail filtering when a forward file
180 # starts with the string "# Exim filter", uncomment the "filter" option.
181 # Note the except_domains part - needed for the virtual hosts...
182
183 userforward:
184   except_domains = "lsearch;/usr/exim/aliases/domains"
185   no_verify,
186   driver = forwardfile;
187   file = .forward,
188 # filter
189
190 # This director matches local user mailboxes.
191
192 localuser:
193   except_domains = "lsearch;/usr/exim/aliases/domains"
194   driver = localuser,
195   transport = local_delivery;
196
197 # This director matches local virtual hosts
198
199 virtual:
200   domains = "lsearch;/usr/exim/aliases/domains",
201   driver = aliasfile,
202   no_more;
203   file = /usr/exim/aliases/$domain-aliases,
204   search_type = lsearch
205
206 end
207
208
209
210 ######################################################################
211 #                      ROUTERS CONFIGURATION                         #
212 ######################################################################
213
214 #route_append:
215 #  driver = domainlist,
216 #  transport = smtp;
217 #
218
219 # This router routes to remote hosts over SMTP using a DNS lookup with
220 # default options.
221
222 lookuphost:
223   driver = lookuphost,
224   transport = smtp;
225
226 # This router routes to remote hosts over SMTP by explicit IP address,
227 # given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
228 # require this facility, which is why it is enabled by default in Exim.
229 # If you want to lock it out, set forbid_domain_literals in the main
230 # configuration section above.
231
232 literal:
233   driver = ipliteral,
234   transport = smtp;
235
236 end
237
238
239
240 ######################################################################
241 #                      RETRY CONFIGURATION                           #
242 ######################################################################
243
244 # This single retry rule applies to all domains and all errors. It specifies
245 # retries every 2 minutes for 2 hours, then increasing retry intervals,
246 # starting at 2 hours and increasing each time by a factor of 1.5, up to 16
247 # hours, then retries every 8 hours until 4 days have passed since the first
248 # failed delivery.
249
250 # Domain               Error       Retries
251 # ------               -----       -------
252
253 *                      *           F,2h,2m; G,16h,2h,1.5; F,4d,8h
254
255 end
256
257
258
259 ######################################################################
260 #                      REWRITE CONFIGURATION                         #
261 ######################################################################
262 #   <source pattern>  <replacement>  <flags>
263
264 # End of Andromeda Exim configuration file