[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c6459486] | 7 | <!ENTITY exim-download-http "https://ftp.exim.org/pub/exim/exim4/exim-&exim-version;.tar.xz">
|
---|
[d0b1879] | 8 |
|
---|
[b2c18590] | 9 | <!ENTITY exim-download-ftp "ftp://ftp.exim.org/pub/exim/exim4/exim-&exim-version;.tar.xz">
|
---|
[e77532af] | 10 | <!-- if above don't work, please use one of the official mirrors at
|
---|
| 11 | http://www.exim.org/mirmon/ftp_mirrors.html -->
|
---|
[156e188] | 12 | <!ENTITY exim-md5sum "0d10d5b10f2af77ec8c2c2fe5be6c1ad">
|
---|
[03da2154] | 13 | <!ENTITY exim-size "1.8 MB">
|
---|
[3713bc71] | 14 | <!ENTITY exim-buildsize "20 MB">
|
---|
| 15 | <!ENTITY exim-time "0.3 SBU">
|
---|
[c6bfee88] | 16 |
|
---|
[cee7c1c] | 17 | <!ENTITY exim-daemon-version "&exim-version;-2">
|
---|
[0931098] | 18 | ]>
|
---|
| 19 |
|
---|
[547df0bc] | 20 | <sect1 id="exim" xreflabel="Exim-&exim-version;">
|
---|
[0bf9baf] | 21 | <?dbhtml filename="exim.html"?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <date>$Date$</date>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Exim-&exim-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="exim">
|
---|
| 30 | <primary sortas="a-Exim">Exim</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Exim</title>
|
---|
| 35 |
|
---|
[27b601a] | 36 | <para>
|
---|
| 37 | The <application>Exim</application> package contains a Mail
|
---|
| 38 | Transport Agent written by the University of Cambridge, released
|
---|
| 39 | under the GNU Public License.
|
---|
| 40 | </para>
|
---|
[0bf9baf] | 41 |
|
---|
[5c3f3e0d] | 42 | &lfs112_checked;
|
---|
[033904eb] | 43 |
|
---|
[0bf9baf] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[27b601a] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&exim-download-http;"/>
|
---|
| 49 | </para>
|
---|
[0bf9baf] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[27b601a] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&exim-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[0bf9baf] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[27b601a] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &exim-md5sum;
|
---|
| 59 | </para>
|
---|
[0bf9baf] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[27b601a] | 62 | <para>
|
---|
| 63 | Download size: &exim-size;
|
---|
| 64 | </para>
|
---|
[0bf9baf] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[27b601a] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &exim-buildsize;
|
---|
| 69 | </para>
|
---|
[0bf9baf] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[27b601a] | 72 | <para>
|
---|
| 73 | Estimated build time: &exim-time;
|
---|
| 74 | </para>
|
---|
[0bf9baf] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 79 | <itemizedlist spacing="compact">
|
---|
[e695e4a0] | 80 | <listitem>
|
---|
[27b601a] | 81 | <para>
|
---|
| 82 | Additional formats of the documentation (text-based docs are
|
---|
| 83 | shipped with the sources) can be downloaded by following the links
|
---|
| 84 | shown at <ulink url="http://exim.org/docs.html"/>.
|
---|
| 85 | </para>
|
---|
[0bf9baf] | 86 | </listitem>
|
---|
[156e188] | 87 | <!-- Applied in 4.96
|
---|
[dd9aab33] | 88 | <listitem>
|
---|
| 89 | <para>
|
---|
| 90 | Required patch when building with <application>PAM</application> support:
|
---|
| 91 | <ulink url="&patch-root;/exim-&exim-version;-call_pam-1.patch"/>
|
---|
| 92 | </para>
|
---|
| 93 | </listitem>
|
---|
[561232c] | 94 | <listitem>
|
---|
| 95 | <para>
|
---|
| 96 | Required patch to build with openssl-3:
|
---|
| 97 | <ulink url="&patch-root;/exim-&exim-version;-openssl3_fix-1.patch"/>
|
---|
| 98 | </para>
|
---|
| 99 | </listitem>
|
---|
[156e188] | 100 | -->
|
---|
[0bf9baf] | 101 | </itemizedlist>
|
---|
| 102 |
|
---|
| 103 | <bridgehead renderas="sect3">Exim Dependencies</bridgehead>
|
---|
| 104 |
|
---|
| 105 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[033904eb] | 106 | <para role="required">
|
---|
[2c13ebe] | 107 | <xref linkend="libnsl"/> and
|
---|
[54707d33] | 108 | <xref linkend="pcre"/>
|
---|
[033904eb] | 109 | </para>
|
---|
[27b601a] | 110 |
|
---|
[0bf9baf] | 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[033904eb] | 112 | <para role="optional">
|
---|
[c6b192c] | 113 | <ulink url="https://sourceforge.net/projects/tdb">TDB</ulink>
|
---|
[d2ea631] | 114 | (alternative to GDBM, built in LFS),
|
---|
[c7d631c] | 115 | <xref linkend="cyrus-sasl"/>,
|
---|
| 116 | <xref linkend="libidn"/>,
|
---|
| 117 | <xref linkend="linux-pam"/>,
|
---|
| 118 | <xref linkend="mariadb"/> or
|
---|
| 119 | <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[033904eb] | 120 | <xref linkend="openldap"/>,
|
---|
[88499366] | 121 | <xref linkend="gnutls"/>,
|
---|
[033904eb] | 122 | <xref linkend="postgresql"/>,
|
---|
[54707d33] | 123 | <xref linkend="sqlite"/>,
|
---|
[88499366] | 124 | <xref linkend="x-window-system"/>,
|
---|
[cbb3299] | 125 | <ulink url="http://www.h5l.org/">Heimdal GSSAPI</ulink>, and
|
---|
[54707d33] | 126 | <ulink url="http://www.trusteddomain.org/opendmarc/">OpenDMARC</ulink>
|
---|
[033904eb] | 127 | </para>
|
---|
[0bf9baf] | 128 |
|
---|
[3cb0c57] | 129 | <para condition="html" role="usernotes">User Notes:
|
---|
| 130 | <ulink url="&blfs-wiki;/exim"/></para>
|
---|
| 131 |
|
---|
[0bf9baf] | 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="installation">
|
---|
| 135 | <title>Installation of Exim</title>
|
---|
| 136 |
|
---|
[27b601a] | 137 | <para>
|
---|
| 138 | Before building <application>Exim</application>, as the
|
---|
| 139 | <systemitem class="username">root</systemitem> user you should create
|
---|
| 140 | the group and user <systemitem class="username">exim</systemitem> which
|
---|
| 141 | will run the <command>exim</command> daemon:
|
---|
| 142 | </para>
|
---|
[0bf9baf] | 143 |
|
---|
[b785ab29] | 144 | <screen role="root"><userinput>groupadd -g 31 exim &&
|
---|
| 145 | useradd -d /dev/null -c "Exim Daemon" -g exim -s /bin/false -u 31 exim</userinput></screen>
|
---|
[0bf9baf] | 146 |
|
---|
[156e188] | 147 | <!-- Applied in 4.96
|
---|
[27b601a] | 148 | <para>
|
---|
[dd9aab33] | 149 | If you want to build with <application>PAM</application> support, apply the following patch:
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
[ab659ee] | 152 | <screen><userinput>patch -Np2 -i ../exim-&exim-version;-call_pam-1.patch</userinput></screen>
|
---|
[dd9aab33] | 153 |
|
---|
[561232c] | 154 | <para>
|
---|
| 155 | Apply a patch required for building against openssl version 3:
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <screen><userinput>patch -Np2 -i ../exim-&exim-version;-openssl3_fix-1.patch</userinput></screen>
|
---|
[156e188] | 159 | -->
|
---|
[561232c] | 160 |
|
---|
[dd9aab33] | 161 | <para>
|
---|
| 162 | Configure <application>Exim</application> with the following commands:
|
---|
[27b601a] | 163 | </para>
|
---|
[0bf9baf] | 164 |
|
---|
[4801ff50] | 165 | <screen><userinput>sed -e 's,^BIN_DIR.*$,BIN_DIRECTORY=/usr/sbin,' \
|
---|
[cf3ca4b5] | 166 | -e 's,^CONF.*$,CONFIGURE_FILE=/etc/exim.conf,' \
|
---|
[88499366] | 167 | -e 's,^EXIM_USER.*$,EXIM_USER=exim,' \
|
---|
[03da2154] | 168 | -e '/# SUPPORT_TLS=yes/s,^#,,' \
|
---|
| 169 | -e '/# USE_OPENSSL/s,^#,,' \
|
---|
[cf3ca4b5] | 170 | -e 's,^EXIM_MONITOR,#EXIM_MONITOR,' src/EDITME > Local/Makefile &&
|
---|
[4801ff50] | 171 |
|
---|
[5c5081f] | 172 | printf "USE_GDBM = yes\nDBMLIB = -lgdbm\n" >> Local/Makefile &&
|
---|
[dd9aab33] | 173 | </userinput></screen>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
| 176 | If you want to add <application>Linux PAM</application> support, also run the following commands:
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
[7b4a852] | 179 | <screen role="nodump"><userinput>sed -i '/# SUPPORT_PAM=yes/s,^#,,' Local/Makefile
|
---|
[dd9aab33] | 180 | echo "EXTRALIBS=-lpam" >> Local/Makefile
|
---|
| 181 | </userinput></screen>
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | Build <application>Exim</application> with the following command:
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <screen><userinput>make</userinput></screen>
|
---|
| 188 |
|
---|
[b77ebfad] | 189 |
|
---|
[27b601a] | 190 | <para>
|
---|
| 191 | This package does not come with a test suite.
|
---|
| 192 | </para>
|
---|
[e695e4a0] | 193 |
|
---|
[27b601a] | 194 | <para>
|
---|
| 195 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 196 | </para>
|
---|
[b77ebfad] | 197 |
|
---|
[54707d33] | 198 | <!-- dev note: make INSTALL_ARG=-no_chown DESTDIR=<DESTDIR> install -->
|
---|
| 199 |
|
---|
[4801ff50] | 200 | <screen role="root"><userinput>make install &&
|
---|
| 201 | install -v -m644 doc/exim.8 /usr/share/man/man8 &&
|
---|
| 202 |
|
---|
| 203 | install -v -d -m755 /usr/share/doc/exim-&exim-version; &&
|
---|
[ca120ee] | 204 | install -v -m644 doc/* /usr/share/doc/exim-&exim-version; &&
|
---|
[4801ff50] | 205 |
|
---|
| 206 | ln -sfv exim /usr/sbin/sendmail &&
|
---|
[0d60593] | 207 | install -v -d -m750 -o exim -g exim /var/spool/exim</userinput></screen>
|
---|
[0bf9baf] | 208 |
|
---|
| 209 | </sect2>
|
---|
| 210 |
|
---|
| 211 | <sect2 role="commands">
|
---|
| 212 | <title>Command Explanations</title>
|
---|
| 213 |
|
---|
[27b601a] | 214 | <para>
|
---|
| 215 | <command>sed -e ... > Local/Makefile</command>: Most of
|
---|
| 216 | <application>Exim</application>'s configuration options are defined
|
---|
| 217 | in <filename>Local/Makefile</filename>, which is created from
|
---|
| 218 | the <filename>src/EDITME</filename> file. This command specifies the
|
---|
| 219 | minimum set of options. Descriptions for the options are listed below.
|
---|
[88499366] | 220 | </para>
|
---|
| 221 |
|
---|
[27b601a] | 222 | <para>
|
---|
| 223 | <command>printf ... > Local/Makefile</command>: Setting those
|
---|
| 224 | variables allows to use GDBM instead of the default Berkeley DB. Remove
|
---|
| 225 | this command if you have installed <xref linkend="db"/>.
|
---|
| 226 | </para>
|
---|
| 227 |
|
---|
| 228 | <para>
|
---|
| 229 | <parameter>BIN_DIRECTORY=/usr/sbin</parameter>: This installs all of
|
---|
| 230 | <application>Exim</application>'s binaries and scripts in
|
---|
| 231 | <filename class='directory'>/usr/sbin</filename>.
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
| 234 | <para>
|
---|
| 235 | <parameter>CONFIGURE_FILE=/etc/exim.conf</parameter>: This installs
|
---|
| 236 | <application>Exim</application>'s main configuration file in
|
---|
| 237 | <filename class='directory'>/etc</filename>.
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
| 240 | <para>
|
---|
| 241 | <parameter>EXIM_USER=exim</parameter>: This tells
|
---|
| 242 | <application>Exim</application> that after the daemon no longer needs
|
---|
| 243 | <systemitem class="username">root</systemitem> privileges, the process
|
---|
[156e188] | 244 | needs to hand off the daemon to the <systemitem
|
---|
[27b601a] | 245 | class="username">exim</systemitem> user.
|
---|
| 246 | </para>
|
---|
| 247 |
|
---|
| 248 | <para>
|
---|
| 249 | <parameter>SUPPORT_TLS=yes</parameter>: This allows to support
|
---|
| 250 | STARTTLS connections. If you use this option, you need to select
|
---|
| 251 | whether <application>OpenSSL</application> or
|
---|
| 252 | <application>GnuTLS</application> is used (see
|
---|
| 253 | <filename>src/EDITME</filename>).
|
---|
| 254 | </para>
|
---|
| 255 |
|
---|
| 256 | <para>
|
---|
| 257 | <parameter>USE_OPENSSL_PC=openssl</parameter>: This tells the
|
---|
| 258 | build system to use <application>OpenSSL</application>, and to
|
---|
| 259 | find the needed libraries with <application>pkg-config</application>.
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
| 262 | <para>
|
---|
| 263 | <parameter>#EXIM_MONITOR</parameter>: This defers building the
|
---|
| 264 | <application>Exim</application> monitor program, as it requires
|
---|
| 265 | <application>X Window System</application> support, by commenting out the
|
---|
| 266 | <parameter>EXIM_MONITOR</parameter> line in the
|
---|
| 267 | <filename>Makefile</filename>. If you wish to build the monitor program,
|
---|
| 268 | omit this <command>sed</command> command and issue the following command
|
---|
| 269 | before building the package (modify
|
---|
| 270 | <filename>Local/eximon.conf</filename>, if necessary):
|
---|
| 271 | <command>cp exim_monitor/EDITME Local/eximon.conf</command>.
|
---|
| 272 | </para>
|
---|
| 273 |
|
---|
| 274 | <para>
|
---|
| 275 | <command>ln -sfv exim /usr/sbin/sendmail</command>: Creates a link to
|
---|
| 276 | <command>sendmail</command> for applications which need it.
|
---|
| 277 | <application>Exim</application> will accept most
|
---|
| 278 | <application>Sendmail</application> command-line options.
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <para>
|
---|
| 282 | <command>install -v -m750 -o exim -g exim /var/spool/exim</command>:
|
---|
| 283 | Since /var/spool is owned by root and this version of
|
---|
| 284 | <command>exim</command> drops
|
---|
| 285 | <systemitem class="username">root</systemitem> privileges early, to run
|
---|
| 286 | as user <systemitem class="username">exim</systemitem>, it cannot create
|
---|
| 287 | the <filename class="directory">/var/spool/exim</filename> directory. As
|
---|
| 288 | a work around, it is created manually.
|
---|
| 289 | </para>
|
---|
[2086c34e] | 290 |
|
---|
[0bf9baf] | 291 | </sect2>
|
---|
| 292 |
|
---|
| 293 | <sect2 role="commands">
|
---|
| 294 | <title>Adding Additional Functionality</title>
|
---|
| 295 |
|
---|
[27b601a] | 296 | <para>
|
---|
| 297 | To utilize some or all of the dependency packages, you'll need to
|
---|
| 298 | modify <filename>Local/Makefile</filename> to include the appropriate
|
---|
| 299 | directives and parameters to link additional libraries before you build
|
---|
| 300 | <application>Exim</application>. <filename>Local/Makefile</filename> is
|
---|
| 301 | heavily commented with instructions on how to do this. Listed below is
|
---|
| 302 | additional information to help you link these dependency packages or
|
---|
| 303 | add additional functionality.
|
---|
| 304 | </para>
|
---|
| 305 |
|
---|
| 306 | <para>
|
---|
| 307 | If you wish to build and install the
|
---|
| 308 | <filename class='extension'>.info</filename> documentation, refer to
|
---|
| 309 | <ulink url=
|
---|
| 310 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTinsinfdoc"/>.
|
---|
| 311 | </para>
|
---|
| 312 |
|
---|
| 313 | <para>
|
---|
| 314 | If you wish to build in Exim's interfaces for calling virus and spam
|
---|
| 315 | scanning software directly from access control lists, uncomment the
|
---|
| 316 | <option>WITH_CONTENT_SCAN=yes</option> parameter and review the
|
---|
| 317 | information found at <ulink url=
|
---|
| 318 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch45.html"/>.
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
| 321 | <para>
|
---|
[3713bc71] | 322 | To use a backend database other than <application>GDBM
|
---|
| 323 | </application>, see the instructions at <ulink url=
|
---|
[27b601a] | 324 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTdb"/>.
|
---|
| 325 | </para>
|
---|
| 326 |
|
---|
| 327 | <para>
|
---|
| 328 | For SSL functionality, see the instructions at <ulink url=
|
---|
| 329 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECTinctlsssl"/>
|
---|
| 330 | and <ulink url="
|
---|
| 331 | http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch42.html"/>.
|
---|
| 332 | </para>
|
---|
| 333 |
|
---|
| 334 | <para>
|
---|
| 335 | For <application>tcpwrappers</application> functionality, see the
|
---|
| 336 | instructions at <ulink url=
|
---|
| 337 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch04.html#SECID27"/>.
|
---|
| 338 | </para>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
| 341 | For information about adding authentication mechanisms to the
|
---|
| 342 | build, see chapters 33—41 of <ulink url=
|
---|
| 343 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/index.html"/>.
|
---|
| 344 | </para>
|
---|
| 345 |
|
---|
| 346 | <para>
|
---|
| 347 | For information about linking <application>Linux-PAM</application>,
|
---|
| 348 | refer to the instructions <ulink url=
|
---|
| 349 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch11.html#SECTexpcond"/>.
|
---|
| 350 | </para>
|
---|
| 351 |
|
---|
| 352 | <para>
|
---|
| 353 | For information about linking database engine libraries used for
|
---|
| 354 | <application>Exim</application> name lookups, see the instructions at
|
---|
| 355 | <ulink url=
|
---|
| 356 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch09.html"/>.
|
---|
| 357 | </para>
|
---|
| 358 |
|
---|
| 359 | <para>
|
---|
| 360 | If you wish to add <application>Readline</application> support to
|
---|
| 361 | <application>Exim</application> when invoked in <quote>test
|
---|
| 362 | expansion</quote> (<option>-be</option>) mode, see the information in
|
---|
| 363 | the <option>-be</option> section of <ulink url=
|
---|
| 364 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch05.html#id2525974"/>.
|
---|
| 365 | </para>
|
---|
| 366 |
|
---|
| 367 | <para>
|
---|
| 368 | You may wish to modify the default configuration and send log files to
|
---|
| 369 | syslog instead of the default
|
---|
| 370 | <filename class='directory'>/var/spool/exim/log</filename> directory. See
|
---|
| 371 | the information at <ulink url=
|
---|
[f63d4f78] | 372 | "http://exim.org/exim-html-&exim-version;/doc/html/spec_html/ch-log_files.html"/>.
|
---|
[27b601a] | 373 | </para>
|
---|
| 374 |
|
---|
| 375 | <para>
|
---|
| 376 | A wealth of information can be also found at the <ulink url=
|
---|
| 377 | "https://github.com/Exim/exim/wiki">Exim Wiki</ulink>.
|
---|
| 378 | </para>
|
---|
[0bf9baf] | 379 |
|
---|
| 380 | </sect2>
|
---|
| 381 |
|
---|
| 382 | <sect2 role="configuration">
|
---|
| 383 | <title>Configuring Exim</title>
|
---|
| 384 |
|
---|
| 385 | <sect3 id="exim-config">
|
---|
| 386 | <title>Config Files</title>
|
---|
| 387 |
|
---|
[27b601a] | 388 | <para>
|
---|
| 389 | <filename>/etc/exim.conf</filename> and
|
---|
| 390 | <filename>/etc/aliases</filename>
|
---|
| 391 | </para>
|
---|
[0bf9baf] | 392 |
|
---|
| 393 | <indexterm zone="exim exim-config">
|
---|
| 394 | <primary sortas="e-etc-exim.conf">/etc/exim.conf</primary>
|
---|
| 395 | </indexterm>
|
---|
| 396 |
|
---|
| 397 | <indexterm zone="exim exim-config">
|
---|
| 398 | <primary sortas="e-etc-aliases">/etc/aliases</primary>
|
---|
| 399 | </indexterm>
|
---|
| 400 |
|
---|
| 401 | </sect3>
|
---|
| 402 |
|
---|
| 403 | <sect3>
|
---|
| 404 | <title>Configuration Information</title>
|
---|
| 405 |
|
---|
[3a49c0b] | 406 | <para>
|
---|
| 407 | Review the file <filename>/etc/exim.conf</filename>, and modify any
|
---|
| 408 | settings to suit your needs. Note that the default configuration
|
---|
| 409 | assumes that the <filename class="directory">/var/mail</filename>
|
---|
[af8a78d] | 410 | directory is world writable, but has the sticky bit set. If you want
|
---|
[3a49c0b] | 411 | to use the default configuration, issue as the <systemitem
|
---|
| 412 | class="username">root</systemitem> user:
|
---|
| 413 | </para>
|
---|
| 414 |
|
---|
| 415 | <screen role="root"><userinput>chmod -v a+wt /var/mail</userinput></screen>
|
---|
[8558044] | 416 |
|
---|
[3a49c0b] | 417 | <para>
|
---|
| 418 | A default (nothing but comments) <filename>/etc/aliases</filename>
|
---|
| 419 | file is installed during the package installation if this file did not
|
---|
| 420 | exist on your system. Create the necessary aliases and start the
|
---|
| 421 | <application>Exim</application> daemon using the following commands:
|
---|
| 422 | </para>
|
---|
[0bf9baf] | 423 |
|
---|
| 424 | <screen role="root"><userinput>cat >> /etc/aliases << "EOF"
|
---|
| 425 | <literal>postmaster: root
|
---|
| 426 | MAILER-DAEMON: root</literal>
|
---|
| 427 | EOF
|
---|
| 428 | /usr/sbin/exim -bd -q15m</userinput></screen>
|
---|
| 429 |
|
---|
| 430 | <note>
|
---|
[27b601a] | 431 | <para>
|
---|
| 432 | To protect an existing <filename>/etc/aliases</filename> file,
|
---|
| 433 | the command above appends these aliases to it. This file should be
|
---|
| 434 | checked and duplicate aliases removed, if present.
|
---|
| 435 | </para>
|
---|
[0bf9baf] | 436 | </note>
|
---|
| 437 |
|
---|
[27b601a] | 438 | <para>
|
---|
| 439 | The <command>/usr/sbin/exim -bd -q15m</command> command starts
|
---|
| 440 | the <application>Exim</application> daemon with a 15 minute interval
|
---|
| 441 | in processing the mail queue. Adjust this parameter to suit your
|
---|
| 442 | desires.
|
---|
| 443 | </para>
|
---|
[dd9aab33] | 444 | </sect3>
|
---|
| 445 |
|
---|
| 446 | <sect3>
|
---|
| 447 | <title>Linux PAM Configuration</title>
|
---|
| 448 |
|
---|
| 449 | <para>
|
---|
[7a9a7b26] | 450 | If you have built <application>Exim</application> with
|
---|
[dd9aab33] | 451 | <application>Linux PAM</application> support, you need to create a
|
---|
| 452 | <application>PAM</application> configuration file to get it working
|
---|
| 453 | correctly with BLFS.
|
---|
| 454 | </para>
|
---|
| 455 |
|
---|
| 456 | <para>
|
---|
| 457 | Issue the following command as the <systemitem
|
---|
| 458 | class="username">root</systemitem> user to create the configuration
|
---|
| 459 | file for <application>Linux PAM</application>:
|
---|
| 460 | </para>
|
---|
| 461 |
|
---|
| 462 | <screen role="root"><userinput>cat > /etc/pam.d/exim << "EOF"
|
---|
| 463 | <literal># Begin /etc/pam.d/exim
|
---|
| 464 |
|
---|
| 465 | auth include system-auth
|
---|
| 466 | account include system-account
|
---|
| 467 | session include system-session
|
---|
| 468 |
|
---|
| 469 | # End /etc/pam.d/exim</literal>
|
---|
| 470 | EOF</userinput></screen>
|
---|
[0bf9baf] | 471 |
|
---|
| 472 | </sect3>
|
---|
| 473 |
|
---|
| 474 | <sect3 id="exim-init">
|
---|
[1258125] | 475 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 476 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 477 |
|
---|
[27b601a] | 478 | <para>
|
---|
| 479 | To automatically start <command>exim</command> at boot, install the
|
---|
| 480 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/exim</filename>
|
---|
| 481 | init script</phrase>
|
---|
| 482 | <phrase revision="systemd"><filename>exim.service</filename>
|
---|
| 483 | unit</phrase>
|
---|
| 484 | included in the <xref linkend="bootscripts" revision="sysv"/>
|
---|
[4472e923] | 485 | <xref linkend="systemd-units" revision="systemd"/> package:
|
---|
[27b601a] | 486 | </para>
|
---|
[0bf9baf] | 487 |
|
---|
| 488 | <indexterm zone="exim exim-init">
|
---|
| 489 | <primary sortas="f-exim">exim</primary>
|
---|
| 490 | </indexterm>
|
---|
| 491 |
|
---|
| 492 | <screen role="root"><userinput>make install-exim</userinput></screen>
|
---|
| 493 |
|
---|
[27b601a] | 494 | <para revision="sysv">
|
---|
| 495 | The bootscript also starts the <application>Exim</application> daemon
|
---|
| 496 | and dispatches a queue runner process every 15 minutes. Modify the
|
---|
| 497 | <option>-q<replaceable><time interval></replaceable></option>
|
---|
| 498 | parameter in <filename>/etc/rc.d/init.d/exim</filename>, if necessary
|
---|
| 499 | for your installation.
|
---|
| 500 | </para>
|
---|
[0bf9baf] | 501 |
|
---|
| 502 | </sect3>
|
---|
| 503 |
|
---|
| 504 | </sect2>
|
---|
| 505 |
|
---|
| 506 | <sect2 role="content">
|
---|
| 507 | <title>Contents</title>
|
---|
| 508 |
|
---|
| 509 | <segmentedlist>
|
---|
| 510 | <segtitle>Installed Programs</segtitle>
|
---|
| 511 | <segtitle>Installed Libraries</segtitle>
|
---|
| 512 | <segtitle>Installed Directories</segtitle>
|
---|
| 513 |
|
---|
| 514 | <seglistitem>
|
---|
[c6bfee88] | 515 | <seg>exicyclog, exigrep, exim, exim-&exim-daemon-version;, exim_checkaccess,
|
---|
[80454f5] | 516 | exim_dbmbuild, exim_dumpdb, exim_fixdb, exim_lock, exim_tidydb,
|
---|
| 517 | eximstats, exinext, exipick, exiqgrep, exiqsumm, exiwhat, and
|
---|
| 518 | optionally, eximon, eximon.bin, and sendmail (symlink)</seg>
|
---|
[0bf9baf] | 519 | <seg>None</seg>
|
---|
| 520 | <seg>/usr/share/doc/exim-&exim-version; and /var/spool/exim</seg>
|
---|
| 521 | </seglistitem>
|
---|
| 522 | </segmentedlist>
|
---|
| 523 |
|
---|
| 524 | <variablelist>
|
---|
| 525 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 526 | <?dbfo list-presentation="list"?>
|
---|
| 527 | <?dbhtml list-presentation="table"?>
|
---|
| 528 |
|
---|
| 529 | <varlistentry id="exicyclog">
|
---|
| 530 | <term><command>exicyclog</command></term>
|
---|
| 531 | <listitem>
|
---|
[27b601a] | 532 | <para>
|
---|
[4c24eb0a] | 533 | cycles <application>Exim</application> log files
|
---|
[27b601a] | 534 | </para>
|
---|
[0bf9baf] | 535 | <indexterm zone="exim exicyclog">
|
---|
| 536 | <primary sortas="b-exicyclog">exicyclog</primary>
|
---|
| 537 | </indexterm>
|
---|
| 538 | </listitem>
|
---|
| 539 | </varlistentry>
|
---|
| 540 |
|
---|
| 541 | <varlistentry id="exigrep">
|
---|
| 542 | <term><command>exigrep</command></term>
|
---|
| 543 | <listitem>
|
---|
[27b601a] | 544 | <para>
|
---|
[4c24eb0a] | 545 | searches <application>Exim</application> log files
|
---|
[27b601a] | 546 | </para>
|
---|
[0bf9baf] | 547 | <indexterm zone="exim exigrep">
|
---|
| 548 | <primary sortas="b-exigrep">exigrep</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
| 553 | <varlistentry id="exim-prog">
|
---|
| 554 | <term><command>exim</command></term>
|
---|
| 555 | <listitem>
|
---|
[27b601a] | 556 | <para>
|
---|
| 557 | is a symlink to the <command>exim-&exim-daemon-version;</command>
|
---|
[4c24eb0a] | 558 | MTA daemon
|
---|
[27b601a] | 559 | </para>
|
---|
[0bf9baf] | 560 | <indexterm zone="exim exim-prog">
|
---|
[b960e3ec] | 561 | <primary sortas="b-exim">exim</primary>
|
---|
[0bf9baf] | 562 | </indexterm>
|
---|
| 563 | </listitem>
|
---|
| 564 | </varlistentry>
|
---|
| 565 |
|
---|
[3d8851e] | 566 | <varlistentry id="exim-current_version">
|
---|
[c6bfee88] | 567 | <term><command>exim-&exim-daemon-version;</command></term>
|
---|
[0bf9baf] | 568 | <listitem>
|
---|
[27b601a] | 569 | <para>
|
---|
[4c24eb0a] | 570 | is the <application>Exim</application> mail transport agent daemon
|
---|
[27b601a] | 571 | </para>
|
---|
[3d8851e] | 572 | <indexterm zone="exim exim-current_version">
|
---|
[c6bfee88] | 573 | <primary sortas="b-exim-&exim-daemon-version;">exim-&exim-daemon-version;</primary>
|
---|
[0bf9baf] | 574 | </indexterm>
|
---|
| 575 | </listitem>
|
---|
| 576 | </varlistentry>
|
---|
| 577 |
|
---|
| 578 | <varlistentry id="exim_checkaccess">
|
---|
| 579 | <term><command>exim_checkaccess</command></term>
|
---|
| 580 | <listitem>
|
---|
[27b601a] | 581 | <para>
|
---|
| 582 | states whether a given recipient address from a given host is
|
---|
[4c24eb0a] | 583 | acceptable or not
|
---|
[27b601a] | 584 | </para>
|
---|
[0bf9baf] | 585 | <indexterm zone="exim exim_checkaccess">
|
---|
| 586 | <primary sortas="b-exim_checkaccess">exim_checkaccess</primary>
|
---|
| 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
| 591 | <varlistentry id="exim_dbmbuild">
|
---|
| 592 | <term><command>exim_dbmbuild</command></term>
|
---|
| 593 | <listitem>
|
---|
[27b601a] | 594 | <para>
|
---|
[4c24eb0a] | 595 | creates and rebuilds <application>Exim</application> databases
|
---|
[27b601a] | 596 | </para>
|
---|
[0bf9baf] | 597 | <indexterm zone="exim exim_dbmbuild">
|
---|
| 598 | <primary sortas="b-exim_dbmbuild">exim_dbmbuild</primary>
|
---|
| 599 | </indexterm>
|
---|
| 600 | </listitem>
|
---|
| 601 | </varlistentry>
|
---|
| 602 |
|
---|
| 603 | <varlistentry id="exim_dumpdb">
|
---|
| 604 | <term><command>exim_dumpdb</command></term>
|
---|
| 605 | <listitem>
|
---|
[27b601a] | 606 | <para>
|
---|
| 607 | writes the contents of <application>Exim</application>
|
---|
[4c24eb0a] | 608 | databases to the standard output
|
---|
[27b601a] | 609 | </para>
|
---|
[0bf9baf] | 610 | <indexterm zone="exim exim_dumpdb">
|
---|
| 611 | <primary sortas="b-exim_dumpdb">exim_dumpdb</primary>
|
---|
| 612 | </indexterm>
|
---|
| 613 | </listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
| 616 | <varlistentry id="exim_fixdb">
|
---|
| 617 | <term><command>exim_fixdb</command></term>
|
---|
| 618 | <listitem>
|
---|
[27b601a] | 619 | <para>
|
---|
[4c24eb0a] | 620 | modifies data in <application>Exim</application> databases
|
---|
[27b601a] | 621 | </para>
|
---|
[0bf9baf] | 622 | <indexterm zone="exim exim_fixdb">
|
---|
| 623 | <primary sortas="b-exim_fixdb">exim_fixdb</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
| 628 | <varlistentry id="exim_lock">
|
---|
| 629 | <term><command>exim_lock</command></term>
|
---|
| 630 | <listitem>
|
---|
[27b601a] | 631 | <para>
|
---|
[4c24eb0a] | 632 | locks a mailbox file
|
---|
[27b601a] | 633 | </para>
|
---|
[0bf9baf] | 634 | <indexterm zone="exim exim_lock">
|
---|
| 635 | <primary sortas="b-exim_lock">exim_lock</primary>
|
---|
| 636 | </indexterm>
|
---|
| 637 | </listitem>
|
---|
| 638 | </varlistentry>
|
---|
| 639 |
|
---|
| 640 | <varlistentry id="exim_tidydb">
|
---|
| 641 | <term><command>exim_tidydb</command></term>
|
---|
| 642 | <listitem>
|
---|
[27b601a] | 643 | <para>
|
---|
| 644 | removes old records from <application>Exim</application>
|
---|
[4c24eb0a] | 645 | databases
|
---|
[27b601a] | 646 | </para>
|
---|
[0bf9baf] | 647 | <indexterm zone="exim exim_tidydb">
|
---|
| 648 | <primary sortas="b-exim_tidydb">exim_tidydb</primary>
|
---|
| 649 | </indexterm>
|
---|
| 650 | </listitem>
|
---|
| 651 | </varlistentry>
|
---|
| 652 |
|
---|
| 653 | <varlistentry id="eximstats">
|
---|
| 654 | <term><command>eximstats</command></term>
|
---|
| 655 | <listitem>
|
---|
[27b601a] | 656 | <para>
|
---|
| 657 | generates mail statistics from <application>Exim</application>
|
---|
[4c24eb0a] | 658 | log files
|
---|
[27b601a] | 659 | </para>
|
---|
[0bf9baf] | 660 | <indexterm zone="exim eximstats">
|
---|
| 661 | <primary sortas="b-eximstats">eximstats</primary>
|
---|
| 662 | </indexterm>
|
---|
| 663 | </listitem>
|
---|
| 664 | </varlistentry>
|
---|
| 665 |
|
---|
| 666 | <varlistentry id="exinext">
|
---|
| 667 | <term><command>exinext</command></term>
|
---|
| 668 | <listitem>
|
---|
[27b601a] | 669 | <para>
|
---|
[4c24eb0a] | 670 | queries remote host retry times
|
---|
[27b601a] | 671 | </para>
|
---|
[0bf9baf] | 672 | <indexterm zone="exim exinext">
|
---|
| 673 | <primary sortas="b-exinext">exinext</primary>
|
---|
| 674 | </indexterm>
|
---|
| 675 | </listitem>
|
---|
| 676 | </varlistentry>
|
---|
| 677 |
|
---|
| 678 | <varlistentry id="exipick">
|
---|
| 679 | <term><command>exipick</command></term>
|
---|
| 680 | <listitem>
|
---|
[27b601a] | 681 | <para>
|
---|
[4c24eb0a] | 682 | selects messages based on various criteria
|
---|
[27b601a] | 683 | </para>
|
---|
[0bf9baf] | 684 | <indexterm zone="exim exipick">
|
---|
| 685 | <primary sortas="b-exipick">exipick</primary>
|
---|
| 686 | </indexterm>
|
---|
| 687 | </listitem>
|
---|
| 688 | </varlistentry>
|
---|
| 689 |
|
---|
| 690 | <varlistentry id="exiqgrep">
|
---|
| 691 | <term><command>exiqgrep</command></term>
|
---|
| 692 | <listitem>
|
---|
[27b601a] | 693 | <para>
|
---|
[4c24eb0a] | 694 | is a utility for selective queue listing
|
---|
[27b601a] | 695 | </para>
|
---|
[0bf9baf] | 696 | <indexterm zone="exim exiqgrep">
|
---|
| 697 | <primary sortas="b-exiqgrep">exiqgrep</primary>
|
---|
| 698 | </indexterm>
|
---|
| 699 | </listitem>
|
---|
| 700 | </varlistentry>
|
---|
| 701 |
|
---|
| 702 | <varlistentry id="exiqsumm">
|
---|
| 703 | <term><command>exiqsumm</command></term>
|
---|
| 704 | <listitem>
|
---|
[27b601a] | 705 | <para>
|
---|
[4c24eb0a] | 706 | produces a summary of the messages in the mail queue
|
---|
[27b601a] | 707 | </para>
|
---|
[0bf9baf] | 708 | <indexterm zone="exim exiqsumm">
|
---|
| 709 | <primary sortas="b-exiqsumm">exiqsumm</primary>
|
---|
| 710 | </indexterm>
|
---|
| 711 | </listitem>
|
---|
| 712 | </varlistentry>
|
---|
| 713 |
|
---|
| 714 | <varlistentry id="exiwhat">
|
---|
| 715 | <term><command>exiwhat</command></term>
|
---|
| 716 | <listitem>
|
---|
[27b601a] | 717 | <para>
|
---|
| 718 | queries running <application>Exim</application>
|
---|
[4c24eb0a] | 719 | processes
|
---|
[27b601a] | 720 | </para>
|
---|
[0bf9baf] | 721 | <indexterm zone="exim exiwhat">
|
---|
| 722 | <primary sortas="b-exiwhat">exiwhat</primary>
|
---|
| 723 | </indexterm>
|
---|
| 724 | </listitem>
|
---|
| 725 | </varlistentry>
|
---|
| 726 |
|
---|
| 727 | <varlistentry id="eximon">
|
---|
| 728 | <term><command>eximon</command></term>
|
---|
| 729 | <listitem>
|
---|
[27b601a] | 730 | <para>
|
---|
| 731 | is a start-up shell script for <command>eximon.bin</command>
|
---|
| 732 | used to set the required environment variables before running the
|
---|
[4c24eb0a] | 733 | program
|
---|
[27b601a] | 734 | </para>
|
---|
[0bf9baf] | 735 | <indexterm zone="exim eximon">
|
---|
| 736 | <primary sortas="b-eximon">eximon</primary>
|
---|
| 737 | </indexterm>
|
---|
| 738 | </listitem>
|
---|
| 739 | </varlistentry>
|
---|
| 740 |
|
---|
| 741 | <varlistentry id="eximon.bin">
|
---|
| 742 | <term><command>eximon.bin</command></term>
|
---|
| 743 | <listitem>
|
---|
[27b601a] | 744 | <para>
|
---|
| 745 | is a monitor program which displays current information in an
|
---|
| 746 | <application>X</application> window, and also contains a menu
|
---|
| 747 | interface to <application>Exim</application>'s command line
|
---|
[4c24eb0a] | 748 | administration options
|
---|
[27b601a] | 749 | </para>
|
---|
[0bf9baf] | 750 | <indexterm zone="exim eximon.bin">
|
---|
| 751 | <primary sortas="b-eximon.bin">eximon.bin</primary>
|
---|
| 752 | </indexterm>
|
---|
| 753 | </listitem>
|
---|
| 754 | </varlistentry>
|
---|
| 755 |
|
---|
| 756 | </variablelist>
|
---|
| 757 |
|
---|
| 758 | </sect2>
|
---|
[f45b1953] | 759 |
|
---|
| 760 | </sect1>
|
---|