Exim-4.24

Introduction to Exim

The Exim package contains a Mail Transport Agent written by the University of Cambridge, released under the GNU Public License.

Package information

Installation of Exim

Before building Exim, we need to create the group and user exim which will run the exim daemon:

groupadd exim &&
useradd -d /dev/null -g exim -s /bin/false exim

Install Exim with the following commands:

sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \
  sed -e 's/^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | \
  sed -e 's/^EXIM_USER.*$/EXIM_USER=exim/' | \
  sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile &&
make &&
make install &&
cp doc/exim.8 /usr/share/man/man8 &&
ln -s exim-4.24-1 /usr/sbin/exim &&
ln -s exim /usr/sbin/sendmail

Command explanations

sed -e ... > Local/Makefile: Many of Exim's configuration options are compiled in. Here, we specify the minimum set of options, BIN_DIRECTORY, CONFIGURE_FILE and EXIM_USER. We also defer building the Exim monitor program, which requires the X Window System support, by commenting out the EXIM_MONITOR line in the Makefile.

ln -s exim /usr/sbin/sendmail: Create a link to sendmail for applications which need it. Exim will accept most Sendmail command-line options.

Configuring Exim

Config files

/etc/exim.conf, /etc/aliases

Configuration Information

Create the Exim configuration files with the following commands:

cat >> /etc/aliases << "EOF"
postmaster: root
MAILER-DAEMON: root
EOF
exim -v -bi &&
/usr/sbin/exim -bd -q1m
[Note]

Note

To protect an existing /etc/aliases file, we will append these aliases to it if it exists. This file should be checked and duplicate aliases removed, if present.

To automate the running of exim at startup, install /etc/rc.d/init.d/exim init script included in the blfs-bootscripts-5.1 package.

make install-exim

Contents

The Exim package contains exim, exim_dumpdb, exim_fixdb, exim_tidydb, exinext, exiwhat, exim_dbmbuild, exicyclog, exigrep, eximstats, exiqsumm, exiqgrep, exim_lock and exim_checkaccess.

Description

exim

exim is the Mail Transport Agent daemon.

exim_dumpdb

exim_dumpdb writes the contents of exim databases to the standard output.

exim_fixdb

exim_fixdb modifies data in exim databases.

exim_tidydb

exim_tidydb removes old records from exim databases.

exinext

exinext queries remote host retry times.

exiwhat

exiwhat queries running exim processes.

exim_dbmbuild

exim_dbmbuild creates and rebuilds exim databases.

exicyclog

exicyclog cycles exim log files.

exigrep

exigrep searches exim log files.

eximstats

eximstats generates mail statistics from exim log files.

exiqsumm

exiqsumm produces a summary of the messages on the mail queue.

exiqgrep

exiqgrep is an utility for selective queue listing.

exim_lock

exim_lock locks a mailbox file.

exim_checkaccess

exim_checkaccess states whether a given recipient address from a given host is acceptable or not.