1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY exim-download-http "http://gd.tuwien.ac.at/infosys/mail/exim/exim4/exim-&exim-version;.tar.bz2">
|
---|
8 | <!ENTITY exim-download-ftp "ftp://ftp.exim.org/pub/exim/exim4/exim-&exim-version;.tar.bz2">
|
---|
9 | <!ENTITY exim-size "1.2 MB">
|
---|
10 | <!ENTITY exim-buildsize "11 MB">
|
---|
11 | <!ENTITY exim-time "0.27 SBU">
|
---|
12 |
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="exim" xreflabel="Exim-&exim-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="exim.html"?>
|
---|
21 | <title>Exim-&exim-version;</title>
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Introduction to <application>Exim</application></title>
|
---|
25 |
|
---|
26 | <para>The <application>Exim</application> package contains a Mail Transport Agent written by the
|
---|
27 | University of Cambridge, released under the <acronym>GNU</acronym> Public License.</para>
|
---|
28 |
|
---|
29 | <sect3><title>Package information</title>
|
---|
30 | <itemizedlist spacing='compact'>
|
---|
31 | <listitem><para>Download (HTTP): <ulink url="&exim-download-http;"/></para></listitem>
|
---|
32 | <listitem><para>Download (FTP): <ulink url="&exim-download-ftp;"/></para></listitem>
|
---|
33 | <listitem><para>Download size: &exim-size;</para></listitem>
|
---|
34 | <listitem><para>Estimated Disk space required: &exim-buildsize;</para></listitem>
|
---|
35 | <listitem><para>Estimated build time: &exim-time;</para></listitem></itemizedlist>
|
---|
36 | </sect3>
|
---|
37 |
|
---|
38 | <sect3><title><application>Exim</application> dependencies</title>
|
---|
39 | <sect4><title>Required</title>
|
---|
40 | <para><xref linkend="db"/>
|
---|
41 | </para></sect4>
|
---|
42 | <sect4><title>Optional</title>
|
---|
43 | <para>
|
---|
44 | X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
45 | <xref linkend="openldap"/>,
|
---|
46 | <xref linkend="mysql"/>,
|
---|
47 | <xref linkend="tcpwrappers"/> and
|
---|
48 | <xref linkend="Linux_PAM"/>
|
---|
49 | </para></sect4>
|
---|
50 | </sect3>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|
54 | <sect2>
|
---|
55 | <title>Installation of <application>Exim</application></title>
|
---|
56 |
|
---|
57 | <para>Before building <application>Exim</application>, we need to
|
---|
58 | create the group and user exim which will run the exim daemon:</para>
|
---|
59 |
|
---|
60 | <screen><userinput><command>groupadd exim &&
|
---|
61 | useradd -d /dev/null -g exim -s /bin/false exim</command></userinput></screen>
|
---|
62 |
|
---|
63 | <para>Install <application>Exim</application> with the following commands:</para>
|
---|
64 |
|
---|
65 | <screen><userinput><command>sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \
|
---|
66 | sed -e 's/^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | \
|
---|
67 | sed -e 's/^EXIM_USER.*$/EXIM_USER=exim/' | \
|
---|
68 | sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile &&
|
---|
69 | make &&
|
---|
70 | make install &&
|
---|
71 | cp doc/exim.8 /usr/share/man/man8 &&
|
---|
72 | ln -s exim-4.24-1 /usr/sbin/exim &&
|
---|
73 | ln -s exim /usr/sbin/sendmail</command></userinput></screen>
|
---|
74 |
|
---|
75 | </sect2>
|
---|
76 |
|
---|
77 | <sect2>
|
---|
78 | <title>Command explanations</title>
|
---|
79 |
|
---|
80 | <para><command>sed -e ... > Local/Makefile</command>: Many of
|
---|
81 | <application>Exim</application>'s
|
---|
82 | configuration options are compiled in. Here, we specify the minimum set
|
---|
83 | of options, <parameter>BIN_DIRECTORY</parameter>,
|
---|
84 | <parameter>CONFIGURE_FILE</parameter> and
|
---|
85 | <parameter>EXIM_USER</parameter>. We also defer
|
---|
86 | building the <application>Exim</application> monitor program, which
|
---|
87 | requires the <application>X</application> Window System
|
---|
88 | support, by commenting out the <parameter>EXIM_MONITOR</parameter> line
|
---|
89 | in the <filename>Makefile</filename>.</para>
|
---|
90 |
|
---|
91 | <para><command>ln -s exim /usr/sbin/sendmail</command>:
|
---|
92 | Create a link to <command>sendmail</command> for applications which need
|
---|
93 | it. <application>Exim</application> will
|
---|
94 | accept most <application>Sendmail</application> command-line options.</para>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2>
|
---|
99 | <title>Configuring Exim</title>
|
---|
100 |
|
---|
101 | <sect3><title>Config files</title>
|
---|
102 |
|
---|
103 | <para><filename>/etc/exim.conf</filename>, <filename>/etc/aliases</filename></para>
|
---|
104 |
|
---|
105 | </sect3>
|
---|
106 |
|
---|
107 | <sect3><title>Configuration Information</title>
|
---|
108 |
|
---|
109 | <para>Create the Exim configuration files with the following commands:</para>
|
---|
110 |
|
---|
111 | <screen><userinput><command>cat >> /etc/aliases << "EOF"</command>
|
---|
112 | postmaster: root
|
---|
113 | MAILER-DAEMON: root
|
---|
114 | <command>EOF
|
---|
115 | exim -v -bi &&
|
---|
116 | /usr/sbin/exim -bd -q1m</command></userinput></screen>
|
---|
117 |
|
---|
118 | <note><para>To protect an existing <filename>/etc/aliases</filename>
|
---|
119 | file, we will append these aliases to it if it exists. This file
|
---|
120 | should be checked and duplicate aliases removed, if
|
---|
121 | present.</para></note>
|
---|
122 |
|
---|
123 | <para>To automate the running of exim at startup,
|
---|
124 | install the <filename>/etc/rc.d/init.d/exim</filename>
|
---|
125 | init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
126 |
|
---|
127 | <screen><userinput><command>make install-exim</command></userinput></screen>
|
---|
128 |
|
---|
129 | </sect3>
|
---|
130 |
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2>
|
---|
134 | <title>Contents</title>
|
---|
135 |
|
---|
136 | <para>The <application>Exim</application> package contains
|
---|
137 | <command>exim</command>,
|
---|
138 | <command>exim_dumpdb</command>,
|
---|
139 | <command>exim_fixdb</command>,
|
---|
140 | <command>exim_tidydb</command>,
|
---|
141 | <command>exinext</command>,
|
---|
142 | <command>exiwhat</command>,
|
---|
143 | <command>exim_dbmbuild</command>,
|
---|
144 | <command>exicyclog</command>,
|
---|
145 | <command>exigrep</command>,
|
---|
146 | <command>eximstats</command>,
|
---|
147 | <command>exiqsumm</command>,
|
---|
148 | <command>exiqgrep</command>,
|
---|
149 | <command>exim_lock</command> and
|
---|
150 | <command>exim_checkaccess</command>.
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | </sect2>
|
---|
154 |
|
---|
155 | <sect2><title>Description</title>
|
---|
156 | <sect3><title>exim</title>
|
---|
157 | <para><command>exim</command> is the Mail Transport Agent daemon.</para></sect3>
|
---|
158 |
|
---|
159 | <sect3><title>exim_dumpdb</title>
|
---|
160 | <para><command>exim_dumpdb</command> writes the contents of exim databases to the
|
---|
161 | standard output.</para></sect3>
|
---|
162 |
|
---|
163 | <sect3><title>exim_fixdb</title>
|
---|
164 | <para><command>exim_fixdb</command> modifies data in exim databases.</para></sect3>
|
---|
165 |
|
---|
166 | <sect3><title>exim_tidydb</title>
|
---|
167 | <para><command>exim_tidydb</command> removes old records from exim databases.</para></sect3>
|
---|
168 |
|
---|
169 | <sect3><title>exinext</title>
|
---|
170 | <para><command>exinext</command> queries remote host retry times.</para></sect3>
|
---|
171 |
|
---|
172 | <sect3><title>exiwhat</title>
|
---|
173 | <para><command>exiwhat</command> queries running exim processes.</para></sect3>
|
---|
174 |
|
---|
175 | <sect3><title>exim_dbmbuild</title>
|
---|
176 | <para><command>exim_dbmbuild</command> creates and rebuilds exim
|
---|
177 | databases.</para></sect3>
|
---|
178 |
|
---|
179 | <sect3><title>exicyclog</title>
|
---|
180 | <para><command>exicyclog</command> cycles exim log files.</para></sect3>
|
---|
181 |
|
---|
182 | <sect3><title>exigrep</title>
|
---|
183 | <para><command>exigrep</command> searches exim log files.</para></sect3>
|
---|
184 |
|
---|
185 | <sect3><title>eximstats</title>
|
---|
186 | <para><command>eximstats</command> generates mail statistics from exim log
|
---|
187 | files.</para></sect3>
|
---|
188 |
|
---|
189 | <sect3><title>exiqsumm</title>
|
---|
190 | <para><command>exiqsumm</command> produces a summary of the messages on the mail
|
---|
191 | queue.</para></sect3>
|
---|
192 |
|
---|
193 | <sect3><title>exiqgrep</title>
|
---|
194 | <para><command>exiqgrep</command> is an utility for selective queue
|
---|
195 | listing.</para></sect3>
|
---|
196 |
|
---|
197 | <sect3><title>exim_lock</title>
|
---|
198 | <para><command>exim_lock</command> locks a mailbox file.</para></sect3>
|
---|
199 |
|
---|
200 | <sect3><title>exim_checkaccess</title>
|
---|
201 | <para><command>exim_checkaccess</command> states whether a given recipient address from a
|
---|
202 | given host is acceptable or not.</para></sect3>
|
---|
203 |
|
---|
204 | </sect2>
|
---|
205 |
|
---|
206 | </sect1>
|
---|
207 |
|
---|