source: server/mail/exim.xml@ 627c062

10.0 10.1 11.0 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus nosym perl-modules qt5new trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 627c062 was 627c062, checked in by Pierre Labastie <pieere@…>, 6 years ago

Tag networking and server, except bind

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16466 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 20.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- This URL frequently becomes broken. Please, do not "fix' it back,
8 unless you decided to take care of and monitor it.
9 <!ENTITY exim-download-http "http://ftp.exim.org/pub/exim/exim4/exim-&exim-version;.tar.bz2"> -->
10
11 <!ENTITY exim-download-http "http://mirrors-uk.go-parts.com/eximftp/exim/exim4/exim-&exim-version;.tar.bz2">
12 <!ENTITY exim-download-ftp "ftp://ftp.exim.org/pub/exim/exim4/exim-&exim-version;.tar.bz2">
13 <!-- if above don't work, please use one of the official mirrors at
14 http://www.exim.org/mirmon/ftp_mirrors.html -->
15 <!ENTITY exim-md5sum "797f248ef3e0c0e2f178e915f88fc4e9">
16 <!ENTITY exim-size "1.8 MB">
17 <!ENTITY exim-buildsize "17 MB">
18 <!ENTITY exim-time "0.2 SBU">
19
20
21
22 <!ENTITY exim-daemon-version "&exim-version;-3">
23]>
24
25<sect1 id="exim" xreflabel="Exim-&exim-version;">
26 <?dbhtml filename="exim.html"?>
27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
33 <title>Exim-&exim-version;</title>
34
35 <indexterm zone="exim">
36 <primary sortas="a-Exim">Exim</primary>
37 </indexterm>
38
39 <sect2 role="package">
40 <title>Introduction to Exim</title>
41
42 <para>The <application>Exim</application> package contains a Mail
43 Transport Agent written by the University of Cambridge, released
44 under the GNU Public License.</para>
45
46 &lfs78_checked;
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>Download (HTTP): <ulink url="&exim-download-http;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download (FTP): <ulink url="&exim-download-ftp;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download MD5 sum: &exim-md5sum;</para>
58 </listitem>
59 <listitem>
60 <para>Download size: &exim-size;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated disk space required: &exim-buildsize;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated build time: &exim-time;</para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>Additional formats of the documentation (text-based docs are
74 shipped with the sources) can be downloaded by following the links
75 shown at <ulink url="http://exim.org/docs.html"/>.</para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Exim Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required">
83 <xref linkend="pcre"/>
84 </para>
85
86 <bridgehead renderas="sect4">Optional</bridgehead>
87 <para role="optional">
88 <xref linkend="db"/> or
89 <ulink url="http://sourceforge.net/projects/tdb">TDB</ulink>
90 (alternatives to GDBM, built in LFS),
91 <xref linkend="cyrus-sasl"/>,
92 <xref linkend="libidn"/>,
93 <xref linkend="linux-pam"/>,
94 <xref linkend="mariadb"/> or
95 <ulink url="http://www.mysql.com/">MySQL</ulink>,
96 <xref linkend="openldap"/>,
97 <xref linkend="openssl"/> or <xref linkend="gnutls"/>,
98 <xref linkend="postgresql"/>,
99 <xref linkend="sqlite"/>,
100 <xref linkend="x-window-system"/>, and
101 <ulink url="http://www.trusteddomain.org/opendmarc/">OpenDMARC</ulink>
102 </para>
103
104 <para condition="html" role="usernotes">User Notes:
105 <ulink url="&blfs-wiki;/exim"/></para>
106
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of Exim</title>
111
112 <para>Before building <application>Exim</application>, as the
113 <systemitem class="username">root</systemitem> user you should create
114 the group and user <systemitem class="username">exim</systemitem> which
115 will run the <command>exim</command> daemon:</para>
116
117<screen role="root"><userinput>groupadd -g 31 exim &amp;&amp;
118useradd -d /dev/null -c "Exim Daemon" -g exim -s /bin/false -u 31 exim</userinput></screen>
119
120 <para>Install <application>Exim</application> with the following
121 commands:</para>
122
123<screen><userinput>sed -e 's,^BIN_DIR.*$,BIN_DIRECTORY=/usr/sbin,' \
124 -e 's,^CONF.*$,CONFIGURE_FILE=/etc/exim.conf,' \
125 -e 's,^EXIM_USER.*$,EXIM_USER=exim,' \
126 -e 's,^EXIM_MONITOR,#EXIM_MONITOR,' src/EDITME > Local/Makefile &amp;&amp;
127printf "USE_GDBM = yes\nDBMLIB = -lgdbm\n" >> Local/Makefile &amp;&amp;
128make</userinput></screen>
129
130 <para>This package does not come with a test suite.</para>
131
132 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
133
134<!-- dev note: make INSTALL_ARG=-no_chown DESTDIR=<DESTDIR> install -->
135
136<screen role="root"><userinput>make install &amp;&amp;
137install -v -m644 doc/exim.8 /usr/share/man/man8 &amp;&amp;
138install -v -d -m755 /usr/share/doc/exim-&exim-version; &amp;&amp;
139install -v -m644 doc/* /usr/share/doc/exim-&exim-version; &amp;&amp;
140ln -sfv exim /usr/sbin/sendmail</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="commands">
145 <title>Command Explanations</title>
146
147 <para><command>sed -e ... > Local/Makefile</command>: Most of
148 <application>Exim</application>'s configuration options are compiled in using
149 the directives in <filename>Local/Makefile</filename> which is created from
150 the <filename>src/EDITME</filename> file. This command specifies the minimum
151 set of options. Descriptions for the options are listed below.</para>
152
153 <para><command>printf ... > Local/Makefile</command>: Setting those
154 variables allows to use GDBM instead of the default Berkeley DB. Remove
155 this command if you have installed <xref linkend="db"/>.</para>
156
157 <para><parameter>BIN_DIRECTORY=/usr/sbin</parameter>: This installs all of
158 <application>Exim</application>'s binaries and scripts in
159 <filename class='directory'>/usr/sbin</filename>.</para>
160
161 <para><parameter>CONFIGURE_FILE=/etc/exim.conf</parameter>: This installs
162 <application>Exim</application>'s main configuration file in
163 <filename class='directory'>/etc</filename>.</para>
164
165 <para><parameter>EXIM_USER=exim</parameter>: This tells
166 <application>Exim</application> that after the daemon no longer needs
167 <systemitem class="username">root</systemitem> privileges, the process
168 hands off the daemon to the <systemitem
169 class="username">exim</systemitem> user.</para>
170
171 <para><parameter>#EXIM_MONITOR</parameter>: This defers building the
172 <application>Exim</application> monitor program, as it requires
173 <application>X Window System</application> support, by commenting out the
174 <parameter>EXIM_MONITOR</parameter> line in the <filename>Makefile</filename>.
175 If you wish to build the monitor program, omit this <command>sed</command>
176 command and issue the following command before building the package (modify
177 <filename>Local/eximon.conf</filename>, if necessary):
178 <command>cp exim_monitor/EDITME Local/eximon.conf</command>.</para>
179
180 <para><command>ln -sfv exim /usr/sbin/sendmail</command>: Creates a link to
181 <command>sendmail</command> for applications which need it.
182 <application>Exim</application> will accept most
183 <application>Sendmail</application> command-line options.</para>
184
185 </sect2>
186
187 <sect2 role="commands">
188 <title>Adding Additional Functionality</title>
189
190 <para>To utilize some or all of the dependency packages, you'll need to
191 modify <filename>Local/Makefile</filename> to include the appropriate
192 directives and parameters to link additional libraries before you build
193 <application>Exim</application>. <filename>Local/Makefile</filename> is
194 heavily commented with instructions on how to do this. Listed below is
195 additional information to help you link these dependency packages or
196 add additional functionality.</para>
197
198 <para>If you wish to build and install the
199 <filename class='extension'>.info</filename> documentation, refer to <ulink
200 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTinsinfdoc"/>.</para>
201
202 <para>If you wish to build in Exim's interfaces for calling virus and spam
203 scanning software directly from access control lists, uncomment the
204 <option>WITH_CONTENT_SCAN=yes</option> parameter and review the information
205 found at <ulink
206 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch41.html"/>.</para>
207
208 <para>To use a backend database other than <application>Berkeley
209 DB</application>, see the instructions at <ulink
210 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTdb"/>.</para>
211
212 <para>For SSL functionality, see the instructions at <ulink
213 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTinctlsssl"/>
214 and <ulink
215 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch39.html"/>.</para>
216
217 <para>For <application>tcpwrappers</application> functionality, see the
218 instructions at <ulink
219 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECID27"/>.</para>
220
221 <para>For information about adding authentication mechanisms to the
222 build, see chapters 33-37 of <ulink
223 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/index.html"/>.</para>
224
225 <para>For information about linking <application>Linux-PAM</application>,
226 refer to the instructions <ulink
227 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch11.html#SECTexpcond"/>.</para>
228
229 <para>For information about linking database engine libraries used for
230 <application>Exim</application> name lookups, see the instructions at <ulink
231 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch09.html"/>.</para>
232
233 <para>If you wish to add <application>Readline</application> support to
234 <application>Exim</application> when invoked in <quote>test expansion</quote>
235 (<option>-be</option>) mode, see the information in the <option>-be</option>
236 section of <ulink
237 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch05.html#id2525974"/>.</para>
238
239 <para>You may wish to modify the default configuration and send log files to
240 syslog instead of the default
241 <filename class='directory'>/var/spool/exim/log</filename> directory. See the
242 information at <ulink
243 url="http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch49.html"/>.</para>
244
245 </sect2>
246
247 <sect2 role="configuration">
248 <title>Configuring Exim</title>
249
250 <sect3 id="exim-config">
251 <title>Config Files</title>
252
253 <para><filename>/etc/exim.conf</filename> and
254 <filename>/etc/aliases</filename></para>
255
256 <indexterm zone="exim exim-config">
257 <primary sortas="e-etc-exim.conf">/etc/exim.conf</primary>
258 </indexterm>
259
260 <indexterm zone="exim exim-config">
261 <primary sortas="e-etc-aliases">/etc/aliases</primary>
262 </indexterm>
263
264 </sect3>
265
266 <sect3>
267 <title>Configuration Information</title>
268
269 <para>A default (nothing but comments) <filename>/etc/aliases</filename>
270 file is installed during the package installation if this file did not
271 exist on your system. Create the necessary aliases and start the
272 <application>Exim</application> daemon using the following commands:</para>
273
274<screen role="root"><userinput>cat &gt;&gt; /etc/aliases &lt;&lt; "EOF"
275<literal>postmaster: root
276MAILER-DAEMON: root</literal>
277EOF
278exim -v -bi &amp;&amp;
279/usr/sbin/exim -bd -q15m</userinput></screen>
280
281 <note>
282 <para>To protect an existing <filename>/etc/aliases</filename> file,
283 the command above appends these aliases to it. This file should be
284 checked and duplicate aliases removed, if present.</para>
285 </note>
286
287 <para>The <command>/usr/sbin/exim -bd -q15m</command> command starts
288 the <application>Exim</application> daemon with a 15 minute interval
289 in processing the mail queue. Adjust this parameter to suit your
290 desires.</para>
291
292 </sect3>
293
294 <sect3 id="exim-init">
295 <title>Boot Script</title>
296
297 <para>To automate the running of <command>exim</command> at startup,
298 install the <filename>/etc/rc.d/init.d/exim</filename> init script
299 included in the <xref linkend="bootscripts"/>
300 package.</para>
301
302 <indexterm zone="exim exim-init">
303 <primary sortas="f-exim">exim</primary>
304 </indexterm>
305
306<screen role="root"><userinput>make install-exim</userinput></screen>
307
308 <para>The bootscript also starts the <application>Exim</application>
309 daemon and dispatches a queue runner process every 15 minutes. Modify
310 the <option>-q<replaceable>&lt;time interval&gt;</replaceable></option>
311 parameter in <filename>/etc/rc.d/init.d/exim</filename>, if necessary
312 for your installation.</para>
313
314 </sect3>
315
316 </sect2>
317
318 <sect2 role="content">
319 <title>Contents</title>
320
321 <segmentedlist>
322 <segtitle>Installed Programs</segtitle>
323 <segtitle>Installed Libraries</segtitle>
324 <segtitle>Installed Directories</segtitle>
325
326 <seglistitem>
327 <seg>exicyclog, exigrep, exim, exim-&exim-daemon-version;, exim_checkaccess,
328 exim_dbmbuild, exim_dumpdb, exim_fixdb, exim_lock, exim_tidydb,
329 eximstats, exinext, exipick, exiqgrep, exiqsumm, exiwhat, and
330 optionally, eximon, eximon.bin, and sendmail (symlink)</seg>
331 <seg>None</seg>
332 <seg>/usr/share/doc/exim-&exim-version; and /var/spool/exim</seg>
333 </seglistitem>
334 </segmentedlist>
335
336 <variablelist>
337 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
338 <?dbfo list-presentation="list"?>
339 <?dbhtml list-presentation="table"?>
340
341 <varlistentry id="exicyclog">
342 <term><command>exicyclog</command></term>
343 <listitem>
344 <para>cycles <application>Exim</application> log files.</para>
345 <indexterm zone="exim exicyclog">
346 <primary sortas="b-exicyclog">exicyclog</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="exigrep">
352 <term><command>exigrep</command></term>
353 <listitem>
354 <para>searches <application>Exim</application> log files.</para>
355 <indexterm zone="exim exigrep">
356 <primary sortas="b-exigrep">exigrep</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="exim-prog">
362 <term><command>exim</command></term>
363 <listitem>
364 <para>is a symlink to the <command>exim-&exim-daemon-version;</command>
365 MTA daemon.</para>
366 <indexterm zone="exim exim-prog">
367 <primary sortas="b-exim">exim</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="exim-current_version">
373 <term><command>exim-&exim-daemon-version;</command></term>
374 <listitem>
375 <para>is the <application>Exim</application> mail transport
376 agent daemon.</para>
377 <indexterm zone="exim exim-current_version">
378 <primary sortas="b-exim-&exim-daemon-version;">exim-&exim-daemon-version;</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 <varlistentry id="exim_checkaccess">
384 <term><command>exim_checkaccess</command></term>
385 <listitem>
386 <para>states whether a given recipient address from a given host is
387 acceptable or not.</para>
388 <indexterm zone="exim exim_checkaccess">
389 <primary sortas="b-exim_checkaccess">exim_checkaccess</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="exim_dbmbuild">
395 <term><command>exim_dbmbuild</command></term>
396 <listitem>
397 <para> creates and rebuilds <application>Exim</application>
398 databases.</para>
399 <indexterm zone="exim exim_dbmbuild">
400 <primary sortas="b-exim_dbmbuild">exim_dbmbuild</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="exim_dumpdb">
406 <term><command>exim_dumpdb</command></term>
407 <listitem>
408 <para> writes the contents of <application>Exim</application>
409 databases to the standard output.</para>
410 <indexterm zone="exim exim_dumpdb">
411 <primary sortas="b-exim_dumpdb">exim_dumpdb</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="exim_fixdb">
417 <term><command>exim_fixdb</command></term>
418 <listitem>
419 <para>modifies data in <application>Exim</application>
420 databases.</para>
421 <indexterm zone="exim exim_fixdb">
422 <primary sortas="b-exim_fixdb">exim_fixdb</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="exim_lock">
428 <term><command>exim_lock</command></term>
429 <listitem>
430 <para>locks a mailbox file.</para>
431 <indexterm zone="exim exim_lock">
432 <primary sortas="b-exim_lock">exim_lock</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="exim_tidydb">
438 <term><command>exim_tidydb</command></term>
439 <listitem>
440 <para>removes old records from <application>Exim</application>
441 databases.</para>
442 <indexterm zone="exim exim_tidydb">
443 <primary sortas="b-exim_tidydb">exim_tidydb</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="eximstats">
449 <term><command>eximstats</command></term>
450 <listitem>
451 <para>generates mail statistics from <application>Exim</application>
452 log files.</para>
453 <indexterm zone="exim eximstats">
454 <primary sortas="b-eximstats">eximstats</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="exinext">
460 <term><command>exinext</command></term>
461 <listitem>
462 <para>queries remote host retry times.</para>
463 <indexterm zone="exim exinext">
464 <primary sortas="b-exinext">exinext</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="exipick">
470 <term><command>exipick</command></term>
471 <listitem>
472 <para>selects messages based on various criteria.</para>
473 <indexterm zone="exim exipick">
474 <primary sortas="b-exipick">exipick</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="exiqgrep">
480 <term><command>exiqgrep</command></term>
481 <listitem>
482 <para>is a utility for selective queue listing.</para>
483 <indexterm zone="exim exiqgrep">
484 <primary sortas="b-exiqgrep">exiqgrep</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="exiqsumm">
490 <term><command>exiqsumm</command></term>
491 <listitem>
492 <para>produces a summary of the messages in the mail queue.</para>
493 <indexterm zone="exim exiqsumm">
494 <primary sortas="b-exiqsumm">exiqsumm</primary>
495 </indexterm>
496 </listitem>
497 </varlistentry>
498
499 <varlistentry id="exiwhat">
500 <term><command>exiwhat</command></term>
501 <listitem>
502 <para>queries running <application>Exim</application>
503 processes.</para>
504 <indexterm zone="exim exiwhat">
505 <primary sortas="b-exiwhat">exiwhat</primary>
506 </indexterm>
507 </listitem>
508 </varlistentry>
509
510 <varlistentry id="eximon">
511 <term><command>eximon</command></term>
512 <listitem>
513 <para>is a start-up shell script for <command>eximon.bin</command>
514 used to set the required environment variables before running the
515 program.</para>
516 <indexterm zone="exim eximon">
517 <primary sortas="b-eximon">eximon</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="eximon.bin">
523 <term><command>eximon.bin</command></term>
524 <listitem>
525 <para>is a monitor program which displays current information in an
526 <application>X</application> window, and also contains a menu interface
527 to <application>Exim</application>'s command line administration
528 options.</para>
529 <indexterm zone="exim eximon.bin">
530 <primary sortas="b-eximon.bin">eximon.bin</primary>
531 </indexterm>
532 </listitem>
533 </varlistentry>
534
535 </variablelist>
536
537 </sect2>
538
539</sect1>
Note: See TracBrowser for help on using the repository browser.