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