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