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