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