]> git.pld-linux.org Git - packages/exim.git/blame - exim.conf
- added user && group exim (uid 79, gid 79)
[packages/exim.git] / exim.conf
CommitLineData
6a7ed0b9 1######################################################################
2# Runtime configuration file for Exim #
3######################################################################
4
5
6# This is a default configuration file which will operate correctly in
7# uncomplicated installations. Please see the manual for a complete list
8# of all the runtime configuration options that can be included in a
9# configuration file. There are many more than are mentioned here. The
10# manual is in the file doc/spec.txt in the Exim distribution as a plain
11# ASCII file. Other formats (PostScript, Texinfo, HTML) are available from
12# the Exim ftp sites. The manual is also online via the Exim web sites.
13
14
15# This file is divided into several parts, all but the last of which are
16# terminated by a line containing the word "end". The parts must appear
17# in the correct order, and all must be present (even if some of them are
18# in fact empty). Blank lines, and lines starting with # are ignored.
19
20
21
22######################################################################
23# MAIN CONFIGURATION SETTINGS #
24######################################################################
25
26# Specify your host's canonical name here. This should normally be the fully
27# qualified "official" name of your host. If this option is not set, the
28# uname() function is called to obtain the name.
29
30# primary_hostname =
31
32
33# Specify the domain you want to be added to all unqualified addresses
34# here. An unqualified address is one that does not contain an "@" character
35# followed by a domain. For example, "caesar@rome.ex" is a fully qualified
36# address, but the string "caesar" (i.e. just a login name) is an unqualified
37# email address. Unqualified addresses are accepted only from local callers by
38# default. See the receiver_unqualified_{hosts,nets} options if you want
39# to permit unqualified addresses from remote sources. If this option is
40# not set, the primary_hostname value is used for qualification.
41
42# qualify_domain =
43
44
45# If you want unqualified recipient addresses to be qualified with a different
46# domain to unqualified sender addresses, specify the recipient domain here.
47# If this option is not set, the qualify_domain value is used.
48
49# qualify_recipient =
50
51
52# Specify your local domains as a colon-separated list here. If this option
53# is not set (i.e. not mentioned in the configuration file), the
54# qualify_recipient value is used as the only local domain. If you do not want
55# to do any local deliveries, uncomment the following line, but do not supply
56# any data for it. This sets local_domains to an empty string, which is not
57# the same as not mentioning it at all. An empty string specifies that there
58# are no local domains; not setting it at all causes the default value (the
59# setting of qualify_recipient) to be used.
60
61# local_domains =
62
63
64# If you want to accept mail addressed to your host's literal IP address, for
65# example, mail addressed to "user@[111.111.111.111]", then uncomment the
66# following line, or supply the literal domain(s) as part of "local_domains"
67# above.
68
69# local_domains_include_host_literals
70
71
72# No local deliveries will ever be run under the uids of these users (a colon-
73# separated list). An attempt to do so gets changed so that it runs under the
74# uid of "nobody" instead. This is a paranoic safety catch. Note the default
75# setting means you cannot deliver mail addressed to root as if it were a
76# normal user. This isn't usually a problem, as most sites have an alias for
77# root that redirects such mail to a human administrator.
78
79never_users = root
80
81
82# The setting below causes Exim to do a reverse DNS lookup on all incoming
83# IP calls, in order to get the true host name. If you feel this is too
84# expensive, you can specify the networks for which a lookup is done, or
85# remove the setting entirely.
86
87host_lookup_nets = 0.0.0.0/0
88
89
90# Exim contains support for the Realtime Blocking List (RBL) that is being
91# maintained as part of the DNS. See http://maps.vix.com/rbl/ for background.
92# Uncommenting the following line will make Exim reject mail from any
93# host whose IP address is blacklisted in the RBL at maps.vix.com.
94
95# rbl_domains = rbl.maps.vix.com
96
97
98# The setting below locks out the use of your host as a mail relay by any
99# other host. If you want to permit relaying through your host from certain
100# hosts or IP networks, you need to vary this option and/or make use of the
101# other three options in the set sender_{host,net}_{accept,reject}_relay.
102# See the section of the manual entitled "Control of relaying" for more info.
103# Removing this setting altogether is not recommended, because there are many
104# unscrupulous people out there who will make use of open relays to try to
105# disguise the source of unsolicited bulk mail.
106
107sender_host_reject_relay = *
108
109
110# If you want Exim to support the "percent hack" for all your local domains,
111# uncomment the following line. This is the feature by which mail addressed
112# to x%y@z (where z is one of your local domains) is locally rerouted to
113# x@y and sent on. Otherwise x%y is treated as an ordinary local part.
114
115# percent_hack_domains = *
116
117# This emulates sendmails "newaliases". Keep in mind that the alias
118# transport does use lsearch by default. remember to change this,
119# if you want to use DBM-Lookups.
120
121bi_command=/usr/bin/newaliases
122end
123
124
125
126######################################################################
127# TRANSPORTS CONFIGURATION #
128######################################################################
129# ORDER DOES NOT MATTER #
130# Only one appropriate transport is called for each delivery. #
131######################################################################
132
133# A transport is used only when referenced from a director or a router that
134# successfully handles an address.
135
136
137# This transport is used for delivering messages over SMTP connections.
138
139remote_smtp:
140 driver = smtp
141
142
143# This transport is used for local delivery to user mailboxes. By default
144# it will be run under the uid and gid of the local user, and requires
145# the sticky bit to be set on the /var/mail directory. Some systems use
146# the alternative approach of running mail deliveries under a particular
147# group instead of using the sticky bit. The commented options below show
148# how this can be done.
149
150# Modification by Florian Wallner <wallner@speed-link.de> make use of
151# procmail as director if a user has a .procmailrc to avoid breaking
152# something that worked before.
153
154procmail:
155 driver = pipe
156 command = "/usr/bin/procmail -d ${local_part}"
157# from_hack
158
159local_delivery:
160 driver = appendfile
161 file = /var/mail/${local_part}
162 delivery_date_add
163 envelope_to_add
164 return_path_add
165# group = mail
166# mode = 0660
167
168
169# This transport is used for handling pipe addresses generated by alias
170# or .forward files. It has a conventional name, since it is not actually
171# mentioned elsewhere in this configuration file. (A different name *can*
172# be specified via the "address_pipe_transport" option if you really want
173# to.) If the pipe generates any standard output, it is returned to the sender
174# of the message as a delivery error. Set return_fail_output instead if you
175# want this to happen only when the pipe fails to complete normally.
176
177address_pipe:
178 driver = pipe
179 return_output
180
181
182# This transport is used for handling file addresses generated by alias
183# or .forward files. It has a conventional name, since it is not actually
184# mentioned elsewhere in this configuration file.
185
186address_file:
187 driver = appendfile
188 delivery_date_add
189 envelope_to_add
190 return_path_add
191
192
193# This transport is used for handling file addresses generated by alias
194# or .forward files if the path ends in "/", which causes it to be treated
195# as a directory name rather than a file name. Each message is then delivered
196# to a unique file in the directory. If instead you want all such deliveries to
197# be in the "maildir" format that is used by some other mail software,
198# uncomment the final option below. If this is done, the directory specified
199# in the .forward or alias file is the base maildir directory.
200#
201# Should you want to be able to specify either maildir or non-maildir
202# directory-style deliveries, then you must set up yet another transport,
203# called address_directory2. This is used if the path ends in "//" so should
204# be the one used for maildir, as the double slash suggests another level
205# of directory. In the absence of address_directory2, paths ending in //
206# are passed to address_directory.
207
208address_directory:
209 driver = appendfile
210 delivery_date_add
211 envelope_to_add
212 return_path_add
213 no_from_hack
214 prefix = ""
215 suffix = ""
216# maildir_format
217
218
219# This transport is used for handling autoreplies generated by the filtering
220# option of the forwardfile director. It has a conventional name, since it
221# is not actually mentioned elsewhere in this configuration file.
222
223address_reply:
224 driver = autoreply
225
226
227end
228
229
230
231######################################################################
232# DIRECTORS CONFIGURATION #
233# Specifies how local addresses are handled #
234######################################################################
235# ORDER DOES MATTER #
236# A local address is passed to each in turn until it is accepted. #
237######################################################################
238
239# Local addresses are those with a domain that matches some item in the
240# "local_domains" setting above, or those which are passed back from the
241# routers because of a "self=local" setting (not used in this configuration).
242
243
244# This director handles aliasing using a traditional /etc/aliases file.
245# If any of your aliases expand to pipes or files, you will need to set
246# up a user and a group for these deliveries to run under. You can do
247# this by uncommenting the "user" option below (changing the user name
248# as appropriate) and adding a "group" option if necessary.
249
250# Modification by Florian Wallner <wallner@speed-link.de> use dbm
251# lookups for aliases to speed up and simulate Sendmail behaviour
252
253aliasfile:
254 driver = aliasfile
255 file = /var/spool/exim/db/aliases
256 search_type = dbm
257 user = mail
258
259#system_aliases:
260# driver = aliasfile
261# file = /etc/aliases
262# search_type = lsearch
263# user = exim
264
265
266# This director handles forwarding using traditional .forward files.
267# If you want it also to allow mail filtering when a forward file
268# starts with the string "# Exim filter", uncomment the "filter" option.
269# The check_ancestor option means that if the forward file generates an
270# address that is an ancestor of the current one, the current one gets
271# passed on instead. This covers the case where A is aliased to B and B
272# has a .forward file pointing to A.
273
274userforward:
275 driver = forwardfile
276 file = .forward
277 no_verify
278 no_expn
279 check_ancestor
280# filter
281
282# Modification by Florian Wallner <wallner@speed-link.de> make use of
283# procmail as director if a user has a .procmailrc to avoid breaking
284# something that worked before.
285
286procmail:
287 driver = localuser
288 require_files = ${local_part}:${home}/.procmailrc
289 transport = procmail
290
291# This director matches local user mailboxes.
292
293localuser:
294 driver = localuser
295 transport = local_delivery
296
297
298end
299
300
301
302######################################################################
303# ROUTERS CONFIGURATION #
304# Specifies how remote addresses are handled #
305######################################################################
306# ORDER DOES MATTER #
307# A remote address is passed to each in turn until it is accepted. #
308######################################################################
309
310# Remote addresses are those with a domain that does not match any item
311# in the "local_domains" setting above.
312
313
314# This router routes to remote hosts over SMTP using a DNS lookup with
315# default options.
316
317lookuphost:
318 driver = lookuphost
319 transport = remote_smtp
320
321
322# This router routes to remote hosts over SMTP by explicit IP address,
323# given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
324# require this facility, which is why it is enabled by default in Exim.
325# If you want to lock it out, set forbid_domain_literals in the main
326# configuration section above.
327
328literal:
329 driver = ipliteral
330 transport = remote_smtp
331
332
333end
334
335
336
337######################################################################
338# RETRY CONFIGURATION #
339######################################################################
340
341# This single retry rule applies to all domains and all errors. It specifies
342# retries every 15 minutes for 2 hours, then increasing retry intervals,
343# starting at 1 hour and increasing each time by a factor of 1.5, up to 16
344# hours, then retries every 8 hours until 4 days have passed since the first
345# failed delivery.
346
347# Domain Error Retries
348# ------ ----- -------
349
350* * F,2h,15m; G,16h,1h,1.5; F,4d,8h
351
352end
353
354
355
356######################################################################
357# REWRITE CONFIGURATION #
358######################################################################
359
360# There are no rewriting specifications in this default configuration file.
361
362# End of Exim configuration file
This page took 0.06211 seconds and 4 git commands to generate.