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