summaryrefslogtreecommitdiffstats
path: root/debian/manpages/exim4-config_files.5
blob: 2c5a15e0f5085052ec03ebb2d27f805b11d483ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH EXIM4-CONFIG_FILES 5 "Jan  4, 2015" EXIM4
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.\" \(oqthis text is enclosed in single quotes\(cq
.\" \(lqthis text is enclosed in double quotes\(rq
.SH NAME
exim4-config_files \- Files in use by the Debian exim4 packages
.SH SYNOPSIS
.br
/etc/aliases
.br
/etc/email\-addresses
.br
/etc/exim4/local_host_blacklist
.br
/etc/exim4/host_local_deny_exceptions
.br
/etc/exim4/local_sender_blacklist
.br
/etc/exim4/sender_local_deny_exceptions
.br
/etc/exim4/local_sender_callout
.br
/etc/exim4/local_rcpt_callout
.br
/etc/exim4/local_domain_dnsbl_whitelist
.br
/etc/exim4/hubbed_hosts
.br
/etc/exim4/passwd
.br
/etc/exim4/passwd.client
.br
/etc/exim4/exim.crt
.br
/etc/exim4/exim.key
.br
/etc/mailname
.SH DESCRIPTION
This manual page describes the files that are in use by the Debian
exim4 packages and which are not part of an exim installation done
from source.
.SH /etc/aliases
is a table providing a mechanism to redirect mail for local
recipients. /etc/aliases is a text file which is roughly compatible
with Sendmail. The file should contain lines of the form
.br
name: address, address, ...
.br
The name is a local address without domain part. All local domains are
handled equally. For more detailed documentation, please refer to
/usr/share/doc/exim4\-base/spec.txt.gz, chapter 22, and to
/usr/share/doc/exim4\-base/README.Debian.gz. Please note that it
is not possible to use delivery to arbitrary files, directories and to
pipes. This is forbidden in Debian's exim4 default configuration.
.
.LP
You should at least set up an alias for postmaster in the /etc/aliases
file.
.SH /etc/email\-addresses
is used to rewrite the email addresses of users. This is particularly
useful for users who use their ISP's domain for email.
.
.LP
The file should contain lines of the form
.
.LP
.br
user: someone@isp.com
.br
otheruser: someoneelse@anotherisp.com
.
.LP
This way emails from user will appear to be from someone@isp.com to
the outside world. Technically, the from, reply\-to, and sender
addresses, along with the envelope sender, are rewritten for users that
appear to be in the local domain.
.
.LP
.SH /etc/exim4/local_host_blacklist
.I [exim host list]
is an optional file containing a list of IP addresses, networks and
host names whose messages will be denied with the error message
"locally blacklisted". This is a full exim 4 host list, and all
available features can be used. This includes negative items, and so
it is possible to exclude addresses from being blacklisted. For
convenience, as an additional method to whitelist addresses from being
blocked, an explicit whitelist is read in from
/etc/exim4/host_local_deny_exceptions. Entries in the whitelist override
corresponding blacklist entries.
.
.LP
In the blacklist, the trick is to read a line break as "or" if it
follows a positive item, and as "and" if it follows a negative item.
.
.LP
For example, a /etc/exim4/local_host_blacklist
.
.LP
.br
192.168.10.0/24
.br
!172.16.10.128/26
.br
172.16.10.0/24
.br
10.0.0.0/8
.
.LP
Exim just evaluates left to right (or up-down in the file listing
context), so you don't get the same kind of operator binding as in a
programming language.
.
.LP
.SH /etc/exim4/host_local_deny_exceptions
.I [exim host list]
contains a list of IP addresses, networks and host names whose
messages will be accepted despite the address is also listed in
/etc/exim4/local_host_blacklist, overriding a blacklisting.
.
.LP
.SH /etc/exim4/local_sender_blacklist
.I [exim address list]
is an optional files containing a list of envelope senders whose
messages will be denied with the error message "locally blacklisted".
This is a full exim 4 address list, and all available features can be
used. This includes negative items, and so it is possible to exclude
addresses from being blacklisted. For convenience, as an additional
method to whitelist addresses from being blocked, an explicit
whitelist is read in from /etc/exim4/sender_local_deny_exceptions. Entries
in the whitelist override corresponding blacklist entries.
.
.LP
In the blacklist, the trick is to read a line break as "or" if it
follows a positive item, and as "and" if it follows a negative item.
.
.LP
For example, a /etc/exim4/local_sender_blacklist
.
.LP
.br
domain1.example
.br
!local@domain2.example
.br
domain2.example
.br
domain3.example
.
.LP
Exim just evaluates left to right (or up-down in the file listing
context), so you don't get the same kind of operator binding as in a
programming language.
.
.LP
.SH /etc/exim4/sender_local_deny_exceptions
.I [exim address list]
is an optional file containing a list of envelope senders whose messages
will be accepted despite the address being also listed in
/etc/exim4/local_sender_blacklist, overriding a blacklisting.
.
.LP
.SH /etc/exim4/local_sender_callout
.I [exim address list]
is an optional file containing a list of envelope senders whose
messages are subject to sender verification with a callout. This is a
full exim4 address list, and all available features can be used.
.
.LP
.SH /etc/exim4/local_rcpt_callout
.I [exim address list]
is an optional file containing a list of envelope recipients for which
incoming messages are subject to recipient verification with a
callout. This is a full exim4 address list, and all available features
can be used.
.
.LP
.SH /etc/exim4/local_domain_dnsbl_whitelist
.I [exim address list]
is an optional file containing a list of envelope senders whose
messages are exempt from blacklisting via a domain-based DNSBL. This
is a full exim4 address list, and all available features can be used.
This feature is intended to be used in case of a domain-based DNSBL
being too heavy handed, for example listing entire top-level domains
for their registry policies.
.
.LP
.SH /etc/exim4/hubbed_hosts
.I [exim domain list]
is an optional file containing a list of route_data records which can
be used to override or augment MX information from the DNS. This is
particularly useful for mail hubs which are highest-priority MX for a
domain in the DNS but are not final destination of the messages,
passing them on to a host which is not publicly reachable, or to
temporarily fix mail routing in case of broken DNS setups.
.
.LP
The file should contain key-value pairs of domain pattern and route
data of the form
.
.LP
.br
domain: host-list options
.br
dict.ref.example:  mail\-1.ref.example:mail\-2.ref.example
.br
foo.example: internal.mail.example.com
.br
bar.example: 192.168.183.3
.
.LP
which will cause mail for foo.example to be sent to the host
internal.mail.example (IP address derived from A record only), and
mail to bar.example to be sent to 192.168.183.3.
.
.LP
See spec.txt chapter 20.3 through 20.7 for a more detailed explanation
of host list format and available options.
.
.LP
.SH /etc/exim4/passwd
contains account and password data for SMTP authentication when the
local exim is SMTP server and clients authenticate to the local exim.
.
.LP
The file should contain lines of the form
.
.LP
.br
username:crypted-password:clear-password
.
.LP
crypted-password is the crypt(3)-created hash of your password. You
can, for example, use the mkpasswd program from the whois package to
create a crypted password. It is recommended to use a modern hash
algorithm, see mkpasswd \-\-method=help. Consider not using crypt or MD5.
.
.LP
clear-password is only necessary if you want to offer CRAM-MD5
authentication. If you don't plan on doing so, the third column can be
omitted completely.
.
.LP
This file must be readable for the Debian\-exim user and should not be
readable for others. Recommended file mode is root:Debian\-exim 640.
.
.LP
.SH /etc/exim4/passwd.client
contains account and password data for SMTP authentication when exim
is authenticating as a client to some remote server.
.
.LP
The file should contain lines of the form
.
.LP
.br
target.mail.server.example:login-user-name:password
.
.LP
which will cause exim to use login-user-name and password when sending
messages to a server with the canonical host name
target.mail.server.example.  Please note that this does not configure
the mail server to send to (this is determined in Debconf), but only
creates the correlation between host name and authentication
credentials to avoid exposing passwords to the wrong host.
.
.LP
Please note that target.mail.server.example is currently the value
that exim can read from reverse DNS: It first follows the host name of
the target system until it finds an IP address, and then looks up the
reverse DNS for that IP address to use the outcome of this query (or
the IP address itself should the query fail) as index into
/etc/exim4/passwd.client.
.
.LP
This goes inevitably wrong if the host name of the mail server is a
CNAME (a DNS alias), or the reverse lookup does not fit the forward one.
.
.LP
Currently, you need to manually lookup all reverse DNS names for all
IP addresses that your SMTP server host name points to, for example by
using the host command.  If the SMTP smarthost alias expands to
multiple IPs, you need to have multiple lines for all the hosts.  When
your ISP changes the alias, you will need to manually fix that.
.
.LP
You may minimize this trouble by using a wild card entry or regular
expressions, thus reducing the risk of divulging the password to the
wrong SMTP server while reducing the number of necessary lines.  For a
deeper discussion, see the Debian BTS #244724.
.
.LP
password is your SMTP password in clear text. If you do not know about
your SMTP password, you can try using your POP3 password as a first
guess.
.
.LP
This file must be readable for the Debian\-exim user and should not be
readable for others. Recommended file mode is root:Debian\-exim 640.
.
.LP
.br
# example for CONFDIR/passwd.client
.br
# this will only match if the server's generic name matches exactly
.br
mail.server.example:user:password
.br
# this will deliver the password to any server
.br
*:username:password
.br
# this will deliver the password to servers whose generic name ends in
.br
# mail.server.example
.br
*.mail.server.example:user:password
.br
# this will deliver the password to servers whose generic name matches
.br
# the regular expression
.br
^smtp[0\-9]*\\.mail\\.server\\.example:user:password
.br
.
.LP
.SH /etc/exim4/exim.crt
contains the certificate that exim uses to initiate TLS connections.
This is public information and can be world readable.
/usr/share/doc/exim4\-base/examples/exim\-gencert can
be used to generate a private key and self-signed certificate.
.
.LP
.SH /etc/exim4/exim.key
contains the private key belonging to the certificate in exim.crt.
This file's contents must be kept secret and should have mode
root:Debian\-exim 640.  /usr/share/doc/exim4\-base/examples/exim\-gencert
can be used to generate a private key and self-signed certificate.
.
.LP
.SH /etc/mailname
The "mail name" of the system. See Debian policy Chapter Customized programs
and exim4-base's README.Debian for further details.
.
.LP
.SH BUGS
Plenty. Please report them through the Debian BTS
.
.LP
This manual page needs a major re-work. If somebody knows better groff
than us and has more experience in writing manual pages, any patches
would be greatly appreciated.
.
.LP
.SH NOTES
.SS Unresolvable items in host lists
.
.LP
Adding or keeping items in the abovementioned host lists which are not
resolvable by DNS has severe consequences.
.
.LP
e.g. if resolving a
.B hostname
in local_host_blacklist returns a temporary error (DNS timeout) exim
will not be able to check whether a connecting host is part of the list.
Exim will therefore return a temporary SMTP error for
.I every
connecting host.
.
.LP
On the other hand if there is a permanent error in resolving a name in the
host list (the record was removed from DNS) exim behaves as if the host
does not match the list. e.g. a local_host_blacklist consisting of
.
.LP
notresolvable.example.com:rejectme.example.com
.
.LP
is equivalent to an empty one. - Exim tries to match the IP-address of the
connecting host to notresolvable.example.com, resolving this IP by DNS
fails, exim behaves as if the connecting host does not match the list. List
processing stops at this point!
.
.LP
Starting the list with the special pattern +ignore_unknown as a
safeguard against this behavior is strongly recommended if hostnames are
used in hostlists.
.
.LP
See Exim specification Chapter
.I Domain, host, address, and local part lists
, section
.I Behaviour when an IP address or name cannot be found.
<http://www.exim.org/exim\-html\-current/doc/html/spec_html/ch\-domain_host_address_and_local_part_lists.html>
.
.LP
.SH SEE ALSO
.br
.BR exim (8),
.br
.BR update\-exim4.conf (8),
.br
.BR /usr/share/doc/exim4\-base/ ,
.br
and for general notes and details about interaction with debconf
.B /usr/share/doc/exim4\-base/README.Debian.gz
.
.LP
.SH AUTHOR
Marc Haber <mh+debian-packages@zugschlus.de> with help from Ross Boylan.
.
.LP