~ubuntu-branches/ubuntu/hardy/exim4/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/exim4-config-simple/debian/exim4.conf.source

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2005-07-02 06:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050702060834-qk17pd52kb9nt3bj
Tags: 4.52-1
* new upstream version 4.51. (mh)
  * adapt 70_remove_exim-users_references
  * remove 37_gnutlsparams
  * adapt 36_pcre
  * adapt 31_eximmanpage
* fix package priorities to have them in sync with override again. (mh)
* Fix error in nb (Norwegian) translation.
  Thanks to Helge Hafting. (mh). Closes: #315775
* Standards-Version: 3.6.2, no changes needed. (mh)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
######################################################################
2
 
#                  Runtime configuration file for Exim               #
3
 
######################################################################
4
 
 
5
 
######################################################################
6
 
#                    MAIN CONFIGURATION SETTINGS                     #
7
 
######################################################################
8
 
 
9
 
# Just for reference and scripts, on debian, the main binary is
10
 
# installed as exim4
11
 
exim_path = /usr/sbin/exim4
12
 
 
13
 
# Let Exim autodetect this
14
 
# primary_hostname =
15
 
 
16
 
# The next three settings create two lists of domains and one list of hosts.
17
 
# These lists are referred to later in this configuration using the syntax
18
 
# +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They
19
 
# are all colon-separated lists:
20
 
 
21
 
# '@' refers to 'the name of the local host'
22
 
 
23
 
domainlist local_domains = DEBCONFlocal_domainsDEBCONF
24
 
 
25
 
domainlist relay_to_domains = DEBCONFrelay_domainsDEBCONF
26
 
 
27
 
hostlist relay_from_hosts = 127.0.0.1 : ::::1 : DEBCONFrelay_netsDEBCONF
28
 
 
29
 
 
30
 
# Specify the domain you want to be added to all unqualified addresses
31
 
# here. An unqualified address is one that does not contain an "@" character
32
 
# followed by a domain. For example, "caesar@rome.example" is a fully qualified
33
 
# address, but the string "caesar" (i.e. just a login name) is an unqualified
34
 
# email address. Unqualified addresses are accepted only from local callers by
35
 
# default. See the recipient_unqualified_hosts option if you want to permit
36
 
# unqualified addresses from remote sources. If this option is not set, the
37
 
# primary_hostname value is used for qualification.
38
 
qualify_domain = DEBCONFvisiblenameDEBCONF
39
 
 
40
 
# only used for satellite-system
41
 
DCreadhost = DEBCONFreadhostDEBCONF
42
 
 
43
 
#for satellite and smarthost-systems
44
 
DCsmarthost = DEBCONFsmarthostDEBCONF
45
 
 
46
 
# listen on all all interfaces?
47
 
DEBCONFlistenonpublicDEBCONF
48
 
### EXPANSION-ends   ######################
49
 
 
50
 
# The default delivery method. See /etc/exim4/conf.d/transports/ for other
51
 
# possibilities
52
 
LOCAL_DELIVERY=mail_spool
53
 
 
54
 
# The gecos field in /etc/passwd holds not only the name. see passwd(5).
55
 
gecos_pattern = ^([^,:]*)
56
 
gecos_name = $1
57
 
 
58
 
 
59
 
 
60
 
 
61
 
# This option defines the access control list that is run when an
62
 
# SMTP RCPT command is received.
63
 
#
64
 
acl_smtp_rcpt = acl_check_rcpt
65
 
 
66
 
# If you want unqualified recipient addresses to be qualified with a different
67
 
# domain to unqualified sender addresses, specify the recipient domain here.
68
 
# If this option is not set, the qualify_domain value is used.
69
 
#
70
 
# qualify_recipient = 
71
 
 
72
 
# The following line must be uncommented if you want Exim to recognize
73
 
# addresses of the form "user@[10.11.12.13]" that is, with a "domain literal"
74
 
# (an IP address) instead of a named domain. The RFCs still require this form,
75
 
# but it makes little sense to permit mail to be sent to specific hosts by
76
 
# their IP address in the modern Internet. This ancient format has been used
77
 
# by those seeking to abuse hosts by using them for unwanted relaying. If you
78
 
# really do want to support domain literals, uncomment the following line, and
79
 
# see also the "domain_literal" router below.
80
 
#
81
 
# allow_domain_literals
82
 
 
83
 
# The setting below causes Exim to do a reverse DNS lookup on all incoming
84
 
# IP calls, in order to get the true host name. If you feel this is too
85
 
# expensive, you can specify the networks for which a lookup is done, or
86
 
# remove the setting entirely.
87
 
#
88
 
host_lookup = *
89
 
 
90
 
# The settings below, which are actually the same as the defaults in the
91
 
# code, cause Exim to make RFC 1413 (ident) callbacks for all incoming SMTP
92
 
# calls. You can limit the hosts to which these calls are made, and/or change
93
 
# the timeout that is used. If you set the timeout to zero, all RFC 1413 calls
94
 
# are disabled. RFC 1413 calls are cheap and can provide useful information
95
 
# for tracing problem messages, but some hosts and firewalls have problems
96
 
# with them. This can result in a timeout instead of an immediate refused
97
 
# connection, leading to delays on starting up an SMTP session.
98
 
#
99
 
rfc1413_hosts = *
100
 
rfc1413_query_timeout = 30s
101
 
 
102
 
# By default, Exim expects all envelope addresses to be fully qualified, that
103
 
# is, they must contain both a local part and a domain. If you want to accept
104
 
# unqualified addresses (just a local part) from certain hosts, you can specify
105
 
# these hosts by setting one or both of
106
 
#
107
 
# sender_unqualified_hosts =
108
 
# recipient_unqualified_hosts =
109
 
#
110
 
# to control sender and recipient addresses, respectively. When this is done,
111
 
# unqualified addresses are qualified using the settings of qualify_domain
112
 
# and/or qualify_recipient (see above).
113
 
 
114
 
# If you want Exim to support the "percent hack" for certain domains,
115
 
# uncomment the following line and provide a list of domains. The "percent
116
 
# hack" is the feature by which mail addressed to x%y@z (where z is one of
117
 
# the domains listed) is locally rerouted to x@y and sent on. If z is not one
118
 
# of the "percent hack" domains, x%y is treated as an ordinary local part. This
119
 
# hack is rarely needed nowadays; you should not enable it unless you are sure
120
 
# that you really need it.
121
 
#
122
 
# percent_hack_domains =
123
 
 
124
 
# When Exim can neither deliver a message nor return it to sender, it "freezes"
125
 
# the delivery error message (aka "bounce message"). There are also other
126
 
# circumstances in which messages get frozen. They will stay on the queue for
127
 
# ever unless one of the following options is set.
128
 
 
129
 
# This option unfreezes frozen bounce messages after two days, tries
130
 
# once more to deliver them, and ignores any delivery failures.
131
 
#
132
 
ignore_bounce_errors_after = 2d
133
 
 
134
 
# This option cancels (removes) frozen messages that are older than a week.
135
 
#
136
 
timeout_frozen_after = 7d
137
 
 
138
 
freeze_tell = postmaster
139
 
 
140
 
# uucp should be able to set envelope-from to arbitrary values
141
 
trusted_users = uucp
142
 
 
143
 
received_header_text = "Received: \
144
 
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
145
 
         {${if def:sender_ident {from ${sender_ident} }}\
146
 
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
147
 
         by ${primary_hostname} \
148
 
         ${if def:received_protocol {with ${received_protocol}}} \
149
 
         (Exim ${version_number} #${compile_number} (Debian) [+prerelease])\n\t\
150
 
         id ${message_id}\
151
 
         ${if def:received_for {\n\tfor <$received_for>}}"
152
 
 
153
 
 
154
 
 
155
 
# No deliveries will ever be run under the uids of these users (a colon-
156
 
# separated list). An attempt to do so causes a panic error to be logged, and
157
 
# the delivery to be deferred. This is a paranoic safety catch. Note that the
158
 
# default setting means you cannot deliver mail addressed to root as if it
159
 
# were a normal user. This isn't usually a problem, as most sites have an alias
160
 
# for root that redirects such mail to a human administrator.
161
 
#
162
 
never_users = root
163
 
 
164
 
######################################################################
165
 
#                       ACL CONFIGURATION                            #
166
 
#         Specifies access control lists for incoming SMTP mail      #
167
 
######################################################################
168
 
begin acl
169
 
 
170
 
 
171
 
# This access control list is used for every RCPT command in an incoming
172
 
# SMTP message. The tests are run in order until the address is either
173
 
# accepted or denied.
174
 
#
175
 
acl_check_rcpt:
176
 
  # Accept if the source is local SMTP (i.e. not over TCP/IP). We do this by
177
 
  # testing for an empty sending host field.
178
 
  accept hosts = :
179
 
  # Deny if the local part contains @ or % or / or | or !. These are rarely
180
 
  # found in genuine local parts, but are often tried by people looking to
181
 
  # circumvent relaying restrictions.
182
 
  #
183
 
  # Also deny if the local part starts with a dot. Empty components aren't
184
 
  # strictly legal in RFC 2822, but Exim allows them because this is common.
185
 
  # However, actually starting with a dot may cause trouble if the local part
186
 
  # is used as a file name (e.g. for a mailing list).
187
 
  #
188
 
  deny local_parts = ^.*[@%!/|] : ^\\.
189
 
  # Accept mail to postmaster in any local domain, regardless of the source,
190
 
  # and without verifying the sender.
191
 
  #
192
 
  accept local_parts = postmaster
193
 
         domains = +local_domains
194
 
  # Deny unless the sender address can be verified.
195
 
  #
196
 
  # require verify = sender
197
 
 
198
 
  #############################################################################
199
 
  # There are no checks on DNS "black" lists because the domains that contain
200
 
  # these lists are changing all the time. However, here are two examples of
201
 
  # how you could get Exim to perform a DNS black list lookup at this point.
202
 
  # The first one denies, while the second just warns.
203
 
  #
204
 
  # deny    message       = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
205
 
  #         dnslists      = black.list.example
206
 
  #
207
 
  # warn    message       = X-Warning: $sender_host_address is in a black list at $dnslist_domain
208
 
  #         log_message   = found in $dnslist_domain
209
 
  #         dnslists      = black.list.example
210
 
  #############################################################################
211
 
 
212
 
  # Accept if the address is in a local domain, but only if the recipient can
213
 
  # be verified. Otherwise deny. The "endpass" line is the border between
214
 
  # passing on to the next ACL statement (if tests above it fail) or denying
215
 
  # access (if tests below it fail).
216
 
  #
217
 
  accept domains = +local_domains
218
 
         endpass
219
 
         message = unknown user
220
 
         verify = recipient
221
 
 
222
 
  # Accept if the address is in a domain for which we are relaying, but again,
223
 
  # only if the recipient can be verified.
224
 
  #
225
 
  accept domains = +relay_to_domains
226
 
         endpass
227
 
         message = unrouteable address
228
 
         verify = recipient
229
 
 
230
 
  # If control reaches this point, the domain is neither in +local_domains
231
 
  # nor in +relay_to_domains.
232
 
 
233
 
  # Accept if the message comes from one of the hosts for which we are an
234
 
  # outgoing relay. Recipient verification is omitted here, because in many
235
 
  # cases the clients are dumb MUAs that don't cope well with SMTP error
236
 
  # responses. If you are actually relaying out from MTAs, you should probably
237
 
  # add recipient verification here.
238
 
  #
239
 
  accept hosts = +relay_from_hosts
240
 
 
241
 
  # Accept if the message arrived over an authenticated connection, from
242
 
  # any host. Again, these messages are usually from MUAs, so recipient
243
 
  # verification is omitted.
244
 
  #
245
 
  accept authenticated = *
246
 
 
247
 
  # Reaching the end of the ACL causes a "deny", but we might as well give
248
 
  # an explicit message.
249
 
  #
250
 
  deny message = relay not permitted
251
 
 
252
 
 
253
 
 
254
 
######################################################################
255
 
#                      ROUTERS CONFIGURATION                         #
256
 
#               Specifies how addresses are handled                  #
257
 
######################################################################
258
 
#     THE ORDER IN WHICH THE ROUTERS ARE DEFINED IS IMPORTANT!       #
259
 
# An address is passed to each router in turn until it is accepted.  #
260
 
######################################################################
261
 
 
262
 
begin routers
263
 
 
264
 
 
265
 
# This router routes to remote hosts over SMTP by explicit IP address,
266
 
# when an email address is given in "domain literal" form, for example,
267
 
# <user@[192.168.35.64]>. The RFCs require this facility. However, it is
268
 
# little-known these days, and has been exploited by evil people seeking
269
 
# to abuse SMTP relays. Consequently it is commented out in the default
270
 
# configuration. If you uncomment this router, you also need to uncomment
271
 
# allow_domain_literals above, so that Exim can recognize the syntax of
272
 
# domain literal addresses.
273
 
 
274
 
# domain_literal:
275
 
#   driver = ipliteral
276
 
#   domains = ! +local_domains
277
 
#   transport = remote_smtp
278
 
 
279
 
smarthost:
280
 
  driver = manualroute
281
 
  domains = ! +local_domains
282
 
  transport = remote_smtp
283
 
  route_list = * DCsmarthost
284
 
  host_find_failed = defer
285
 
  no_more
286
 
 
287
 
# The "no_more" above means that all routers below here are for
288
 
# domains in the local_domains list, i.e. just like Exim 3 directors.
289
 
 
290
 
 
291
 
real_local:
292
 
  driver = accept
293
 
  local_part_prefix = real-
294
 
  check_local_user
295
 
  transport = LOCAL_DELIVERY
296
 
 
297
 
 
298
 
# This router handles aliasing using a traditional /etc/aliases file.
299
 
#
300
 
##### NB  You must ensure that /etc/aliases exists. It used to be the case
301
 
##### NB  that every Unix had that file, because it was the Sendmail default.
302
 
##### NB  These days, there are systems that don't have it. Your aliases
303
 
##### NB  file should at least contain an alias for "postmaster".
304
 
#
305
 
# If any of your aliases expand to pipes or files, you will need to set
306
 
# up a user and a group for these deliveries to run under. You can do
307
 
# this by uncommenting the "user" option below (changing the user name
308
 
# as appropriate) and adding a "group" option if necessary. Alternatively, you
309
 
# can specify "user" on the transports that are used. Note that the transports
310
 
# listed below are the same as are used for .forward files; you might want
311
 
# to set up different ones for pipe and file deliveries from aliases.
312
 
#
313
 
system_aliases:
314
 
  driver = redirect
315
 
  allow_fail
316
 
  allow_defer
317
 
  data = ${lookup{$local_part}lsearch{/etc/aliases}}
318
 
# user = list
319
 
  file_transport = address_file
320
 
  pipe_transport = address_pipe
321
 
 
322
 
hub_user:
323
 
    driver = redirect
324
 
    data = ${local_part}@DCreadhost
325
 
    check_local_user
326
 
 
327
 
# This router handles forwarding using traditional .forward files in users'
328
 
# home directories. If you want it also to allow mail filtering when a forward
329
 
# file starts with the string "# Exim filter", uncomment the "allow_filter"
330
 
# option.
331
 
#
332
 
# The no_verify setting means that this router is skipped when Exim is
333
 
# verifying addresses. Similarly, no_expn means that this router is skipped if
334
 
# Exim is processing an EXPN command.
335
 
#
336
 
# The check_ancestor option means that if the forward file generates an
337
 
# address that is an ancestor of the current one, the current one gets
338
 
# passed on instead. This covers the case where A is aliased to B and B
339
 
# has a .forward file pointing to A.
340
 
#
341
 
# The three transports specified at the end are those that are used when
342
 
# forwarding generates a direct delivery to a file, or to a pipe, or sets
343
 
# up an auto-reply, respectively.
344
 
#
345
 
userforward:
346
 
  driver = redirect
347
 
  check_local_user
348
 
  file = $home/.forward
349
 
  no_verify
350
 
  no_expn
351
 
  check_ancestor
352
 
# allow_filter
353
 
  file_transport = address_file
354
 
  pipe_transport = address_pipe
355
 
  reply_transport = address_reply
356
 
 
357
 
 
358
 
procmail:
359
 
  driver = accept
360
 
  check_local_user
361
 
  transport = procmail_pipe
362
 
  require_files = ${local_part}:${home}/.procmailrc:+/usr/bin/procmail
363
 
  no_verify
364
 
  no_expn
365
 
 
366
 
 
367
 
# Use maildrop
368
 
# maildrop:
369
 
#   driver = accept
370
 
#   check_local_user
371
 
#   transport = maildrop_pipe
372
 
#   require_files = ${local_part}:${home}/.mailfilter:+/usr/bin/maildrop
373
 
#   no_verify
374
 
#   no_expn
375
 
 
376
 
 
377
 
local_user:
378
 
  driver = accept
379
 
  check_local_user
380
 
  transport = LOCAL_DELIVERY
381
 
 
382
 
 
383
 
 
384
 
######################################################################
385
 
#                      TRANSPORTS CONFIGURATION                      #
386
 
######################################################################
387
 
#                       ORDER DOES NOT MATTER                        #
388
 
#     Only one appropriate transport is called for each delivery.    #
389
 
######################################################################
390
 
 
391
 
# A transport is used only when referenced from a router that successfully
392
 
# handles an address.
393
 
 
394
 
begin transports
395
 
 
396
 
 
397
 
# This transport is used for handling deliveries directly to files that are
398
 
# generated by aliasing or forwarding.
399
 
#
400
 
address_file:
401
 
  driver = appendfile
402
 
  delivery_date_add
403
 
  envelope_to_add
404
 
  return_path_add
405
 
 
406
 
 
407
 
# This transport is used for handling pipe deliveries generated by alias or
408
 
# .forward files. If the pipe generates any standard output, it is returned
409
 
# to the sender of the message as a delivery error. Set return_fail_output
410
 
# instead of return_output if you want this to happen only when the pipe fails
411
 
# to complete normally. You can set different transports for aliases and
412
 
# forwards if you want to - see the references to address_pipe in the routers
413
 
# section above.
414
 
#
415
 
address_pipe:
416
 
  driver = pipe
417
 
  return_output
418
 
 
419
 
 
420
 
# This transport is used for handling autoreplies generated by the filtering
421
 
# option of the userforward router.
422
 
#
423
 
address_reply:
424
 
  driver = autoreply
425
 
 
426
 
 
427
 
# This transport is used for local delivery to user mailboxes in traditional
428
 
# BSD mailbox format.
429
 
#
430
 
mail_spool:
431
 
  driver = appendfile
432
 
  file = /var/mail/$local_part
433
 
  delivery_date_add
434
 
  envelope_to_add
435
 
  return_path_add
436
 
  group = mail
437
 
  mode = 0660
438
 
 
439
 
 
440
 
# Use this instead of mail_spool if you want to to deliver to Maildir in
441
 
# home-directory - change the definition of LOCAL_DELIVERY
442
 
#
443
 
maildir_home:
444
 
   driver = appendfile
445
 
   directory = $home/Maildir
446
 
   maildir_format
447
 
   mode = 0600
448
 
 
449
 
 
450
 
maildrop_pipe:
451
 
  driver = pipe
452
 
  path = "/bin:/usr/bin:/usr/local/bin"
453
 
  command = "/usr/bin/maildrop"
454
 
  return_path_add
455
 
  delivery_date_add
456
 
  envelope_to_add
457
 
 
458
 
 
459
 
procmail_pipe:
460
 
  driver = pipe
461
 
  path = "/bin:/usr/bin:/usr/local/bin"
462
 
  command = "/usr/bin/procmail"
463
 
  return_path_add
464
 
  delivery_date_add
465
 
  envelope_to_add
466
 
 
467
 
 
468
 
# This transport is used for delivering messages over SMTP connections.
469
 
remote_smtp:
470
 
  driver = smtp
471
 
 
472
 
######################################################################
473
 
#                      RETRY CONFIGURATION                           #
474
 
######################################################################
475
 
 
476
 
begin retry
477
 
 
478
 
 
479
 
# This single retry rule applies to all domains and all errors. It specifies
480
 
# retries every 15 minutes for 2 hours, then increasing retry intervals,
481
 
# starting at 1 hour and increasing each time by a factor of 1.5, up to 16
482
 
# hours, then retries every 6 hours until 4 days have passed since the first
483
 
# failed delivery.
484
 
 
485
 
# Domain               Error       Retries
486
 
# ------               -----       -------
487
 
 
488
 
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h
489
 
 
490
 
 
491
 
 
492
 
######################################################################
493
 
#                      REWRITE CONFIGURATION                         #
494
 
######################################################################
495
 
 
496
 
begin rewrite
497
 
 
498
 
######################################################################
499
 
#                   AUTHENTICATION CONFIGURATION                     #
500
 
######################################################################
501
 
 
502
 
begin authenticators