File: spec_40.html

package info (click to toggle)
exim-html 3.20-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge, woody
  • size: 2,868 kB
  • ctags: 4,188
  • sloc: makefile: 40; sh: 19
file content (321 lines) | stat: -rw-r--r-- 8,110 bytes parent folder | download
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
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.52
     from spec on 25 November 2000 -->

<TITLE>Exim Specification - 40. The default configuration file</TITLE>
</HEAD>
<body bgcolor="#FFFFFF" text="#00005A" link="#FF6600" alink="#FF9933" vlink="#990000">
Go to the <A HREF="spec_1.html">first</A>, <A HREF="spec_39.html">previous</A>, <A HREF="spec_41.html">next</A>, <A HREF="spec_59.html">last</A> section, <A HREF="spec_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC780" HREF="spec_toc.html#TOC780">40. The default configuration file</A></H1>
<P>
<A NAME="IDX1715"></A>
<A NAME="IDX1716"></A>
The default configuration file supplied with Exim as <EM>src/configure.default</EM> is
sufficient for a single host with simple mail requirements. It contains
comments about options you might want to set, but which it lets default,
together with the settings described here.

</P>

<P>



<H2><A NAME="SEC781" HREF="spec_toc.html#TOC781">40.1 Main configuration settings</A></H2>

<P>
There are four explicit options in this section:

<PRE>
never_users = root
</PRE>

<P>
This prevents Exim from ever running as root when performing a local delivery.
Instead, it runs as `nobody'.
<font color=green>

<PRE>
host_lookup = *
</PRE>

<P>
</font>
<A NAME="IDX1717"></A>
<A NAME="IDX1718"></A>
This specifies the sending IP networks for which a DNS reverse lookup is done,
in order to get the host name from the IP address of an incoming message. The
default setting matches all IP addresses. The host name appears in the log and
in messages' <EM>Received:</EM> headers.

</P>

<PRE>
forbid_domain_literals
</PRE>

<P>
This locks out the use of `domain literal' addresses such as

<PRE>
root@[192.168.35.43]
</PRE>

<P>
at the syntactic level. Although still specified in the RFCs, such addresses
are not of great relevance in today's Internet, are not understood by many
people, and have been abused by spammers seeking open relays.

</P>
<P>
<font color=green>

<PRE>
timeout_frozen_after = 7d
</PRE>

<P>
This option causes Exim to abandon frozen messages after they have been on its
queue for a week.
</font>

</P>

<P>
As the <EM>primary_hostname</EM>, <EM>qualify_domain</EM>, and <EM>local_domains</EM> options are
not specified, they all take the name of the local host, as obtained by
the <EM>uname()</EM> function, as their value.

</P>
<P>
No relaying is permitted through the host, because neither <EM>relay_domains</EM> nor
<EM>host_accept_relay</EM> is set. See chapter 46 for more details
about relay control.

</P>



<H2><A NAME="SEC782" HREF="spec_toc.html#TOC782">40.2 Transport configuration settings</A></H2>

<P>
Four local transports and one remote transport are defined. The first one is
the remote transport:

<PRE>
remote_smtp:
  driver = smtp
</PRE>

<P>
This transport is used to do external deliveries over SMTP, with default
options.
The first local transport is

<PRE>
local_delivery:
  driver = appendfile
  file = /var/mail/$local_part
  delivery_date_add
  envelope_to_add
  return_path_add
</PRE>

<P>
This is set up to deliver to local mailboxes in a traditional `sticky
bit' directory. Some installations prefer not to set the `sticky bit', but
instead run the delivery under a specific group, with the directory being
writeable by the group. Adding the following options achieves this:

<PRE>
   group = mail
   mode = 0660
</PRE>

<P>
To deliver into files in users' home directories, a setting such as

<PRE>
  file = /home/$local_part/inbox
</PRE>

<P>
or

<PRE>
  file = $home/inbox
</PRE>

<P>
should be substituted for the default <EM>file</EM> option. The three options ending
in <EM>_add</EM> cause Exim to add three header lines to the message as it writes it
to the mailbox. They can be removed if these headers are not required. The
second local transport is

<PRE>
address_pipe:
  driver = pipe
  return_output
</PRE>

<P>
This transport is used by Exim when a local part that is expanded via an alias
or forward file causes delivery to a pipe.
Any output from the pipe is returned to the sender
of the message. The third local transport is

<PRE>
address_file:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add
</PRE>

<P>
This transport is used by Exim when a local part that is expanded via an alias
or forward file causes delivery to a specified file
(by generating a path name not ending in `/'). The final local transport is

<PRE>
address_reply:
  driver = autoreply
</PRE>

<P>
This transport is used by Exim when a local part that is expanded via a filter
file causes an automatic reply to a message to be generated.

</P>



<H2><A NAME="SEC783" HREF="spec_toc.html#TOC783">40.3 Director configuration settings</A></H2>

<P>
Three directors are specified for the default configuration. Note that the
order of director definitions matters. The first director causes local parts to
be checked against the system alias file, which is searched linearly:

<PRE>
system_aliases:
  driver = aliasfile
  file = /etc/aliases
  search_type = lsearch
  file_transport = address_file
  pipe_transport = address_pipe
</PRE>

<P>
If an alias generates a file or pipe delivery, the <EM>address_file</EM> or
<EM>address_pipe</EM> transport is used, as appropriate.
The second director comes into play if a local part does not match a
system alias:

<PRE>
userforward:
  driver = forwardfile
  file = .forward
  no_verify
  no_expn
  check_ancestor
# filter
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
</PRE>

<P>
An attempt is made to look for a file called <TT>`.forward'</TT> in the home directory
of a local user. However, this director is skipped when verifying addresses or
running an SMTP EXPN command. The <EM>check_ancestor</EM> option prevents a
<TT>`.forward'</TT> file from turning a login name back into a previously-handled alias
name. The <EM>filter</EM> option is commented out in the default configuration. Thus
<TT>`.forward'</TT> files are treated in the conventional manner, but filtering can be
enabled by removing the # character.

</P>
<P>
If forwarding or filtering generates a file, pipe, or autoreply delivery, the
<EM>address_file</EM>, <EM>address_pipe</EM>, or <EM>address_reply</EM> transport is used,
as appropriate.
The final director is

<PRE>
localuser:
  driver = localuser
  transport = local_delivery
</PRE>

<P>
This checks that a local part is the login of a local user, and if so, directs
the message to be delivered using the <EM>local_delivery</EM> transport.

</P>



<H2><A NAME="SEC784" HREF="spec_toc.html#TOC784">40.4 Router configuration settings</A></H2>

<P>
Only one router is defined in the default configuration:

<PRE>
lookuphost:
  driver = lookuphost
  transport = remote_smtp
</PRE>

<P>
Its default settings cause it to look up the domain in the DNS, in order to
determine the host to which a message should be sent, using the <EM>remote_smtp</EM>
transport.

</P>



<H2><A NAME="SEC785" HREF="spec_toc.html#TOC785">40.5 Default retry rule</A></H2>

<P>
A single retry rule is given in the default configuration:

<PRE>
*    *   F,2h,15m; G,16h,1h,1.5; F,4d,8h
</PRE>

<P>
This causes any temporarily failing address to be retried every 15 minutes for
2 hours, then at intervals starting at one hour and increasing by a factor of
1.5 until 16 hours have passed, then every 8 hours up to 4 days.

</P>



<H2><A NAME="SEC786" HREF="spec_toc.html#TOC786">40.6 Rewriting configuration</A></H2>

<P>
There are no rewriting rules in the default configuration file.

</P>



<H2><A NAME="SEC787" HREF="spec_toc.html#TOC787">40.7 Authenticators configuration</A></H2>

<P>
No authenticators are specified in the default configuration file. Note that in
order to use SMTP authentication, it is necessary to specify at least one
authenticator in <TT>`Local/Makefile'</TT>.

</P>

<P><HR><P>
Go to the <A HREF="spec_1.html">first</A>, <A HREF="spec_39.html">previous</A>, <A HREF="spec_41.html">next</A>, <A HREF="spec_59.html">last</A> section, <A HREF="spec_toc.html">table of contents</A>.
</BODY>
</HTML>