Updating Exim to 4.72
Updating Exim to 4.72 is essential, as it contains security measures that nullify current issues with versions 4.69 and older. Before applying this update, make sure you have the PCRE package installed. This can be done via yum or apt. For Fedora or CentOS:
% yum install pcre-devel
For Ubuntu/Debian:
% apt-get install libpcre3 libpcre3-dev libpcre++-dev
---
To update Exim, do the following:
1.) Download the new Exim package from: http://kb.atmail.com/attach/eximatmail.tgz
% wget 'http://kb.atmail.com/attach/eximatmail.tgz'
2.) Replace your current package with the new package:
% mv /usr/local/atmail/server_source/eximatmail.tgz /usr/local/atmail/server_source/eximatmail.tgz.old
% mv /usr/local/atmail/server_source/exim-4.69/ /tmp/exim-4.69/
% mv eximatmail.tgz /usr/local/atmail/server_source/eximatmail.tgz
3.) Make a backup of your current configure file:
% cp -R /usr/local/atmail/mailserver/configure /usr/local/atmail/mailserver/configure.backup
4.) Stop Atmail:
% /etc/init.d/atmailserver stop
5.) Rebuild:
% php /usr/local/atmail/server_source/scripts/buildexim.php
5.) After rebuilding, open up your /usr/local/atmail/mailserver/configure file. Find this line:
# Stop the SMTP if load > X
smtp_load_reserve = 20
6.) Below this, add:
dkim_verify_signers = $sender_address_domain
7.) Find:
acl_smtp_data = acl_check_content
8.) Below this, add:
acl_smtp_dkim = acl_check_dkim
9.) Find:
deny message = relay not permitted
10.) Below this, add:
acl_check_dkim:
deny message = Invalid DKIM
dkim_status = fail
accept
11.) Restart Atmail:
% /etc/init.d/atmailserver restart
Congratulations! Now you have the new version, with improved security and DKIM capabilities.

