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