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