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