Update not required. These are optional changes. Note: These changes were done a while ago. Newer versions of the exim.conf (4.3.2) can be found here: http://files.directadmin.com/services/SpamBlocker/ They can also be managed with CustomBuild 2.0 (recommended manager) http://help.directadmin.com/item.php?id=576 ============================================================================================= ============================================================================================= Changes to the exim.pl and exim.conf. If you chose to update, uou must update BOTH your exim.pl, and install a new exim.conf. You can patch from 4.2.2 to 4.2.3. If you're going from 4.2.1 or older, then do a fresh install of 4.2.2. Note: - exim.conf 4.2.3 requires exim.pl 19. - exim.pl 19 requires exim.conf 4.2.3. You must update them together. ============================================================================================= New exim.pl version 19: ---------------------------- files1.directadmin.com/services/exim.pl.19 This version has a few extra functions that the exim.conf can use (comparing to version 17) new: get_username block_cracking_notify - DA still needs to do something about it, but the mail.task.queue is notified changed: find_uid - only returns DA usernames. Installation: ======= We recommend using CustomBuild to mange the exim.conf and exim.pl. http://help.directadmin.com/item.php?id=576 (note: this guide is for 4.3) ============================================================================================= New exim.conf 4.2.3 ------------------------ files1.directadmin.com/services/SpamBlocker/4.2.3/exim.conf-SpamBlockerTechnology-v4.2.3.txt files1.directadmin.com/services/SpamBlocker/4.2.3/exim.conf-SpamBlockerTechnology-v4.2.2-to-v4.2.3.diff - set the disable_ipv6=false by default so CB can regex it based on the directadmin.conf ipv6 setting. - acl_smtp_auth to only allow 1 AUTH attempt per connection - /etc/virtual/blacklist_usernames (does not need to exist). Must contain a DA Username, eg "fred" followed by the unix time it was added to the blacklist, eg: fred:1409557166 (may change it to be fred:1409557166:more=info&in=the&url=format, which won't affect exim as it stops at the first : character) Will drop authorized smtp connections if DA User is in that file for the given smtp auth id (username or user@domain.com). Also applies to script based sends.. email will not make it into the queue, will be discarded and message logged to mainlog. - acl_not_smtp = acl_script Script based ACL, will check the User send count, and drop if at limit. This is where the blacklist_usernames is checked as well. - For incoming email, will check if the local domain is supsended and give a proper message. - BlockCracking, just add these to files to /etc cd /etc wget -O exim.blockcracking.tar.gz http://files.directadmin.com/services/blockcracking/exim.blockcracking-1.0.tar.gz tar xvzf exim.blockcracking-1.0.tar.gz cd exim.blockcracking cp variables.conf.default variables.conf and adjust the /etc/exim.blockcracking/variables.conf as desired. - any relay_hosts relayed emails will now have the header added: add_header = X-Relay-Host: $sender_host_address - removed the spamcheck_director, forcing people to use the file: /etc/exim.spamassassin.conf - added .include_if_exists /etc/exim.dkim.conf, for easier dkim setup. List of the major features: exim.conf-SpamBlockerTechnology-v4.2.3.features.txt Installation: ======= We recommend using CustomBuild to install version 4.2: http://help.directadmin.com/item.php?id=576 (note: guide is for 4.3) Manual methods, not recommended: Fresh install: --------------- cd /etc cp exim.conf exim.conf.4.2.2 wget -O exim.conf http://files.directadmin.com/services/SpamBlocker/4.2.3/exim.conf-SpamBlockerTechnology-v4.2.3.txt cd /etc/virtual touch bad_sender_hosts bad_sender_hosts_ip blacklist_domains blacklist_senders whitelist_domains whitelist_hosts whitelist_hosts_ip whitelist_senders use_rbl_domains skip_av_domains skip_rbl_domains chown mail:mail bad_sender_hosts bad_sender_hosts_ip blacklist_domains blacklist_senders whitelist_domains whitelist_hosts whitelist_hosts_ip whitelist_senders use_rbl_domains skip_av_domains skip_rbl_domains chmod 644 bad_sender_hosts bad_sender_hosts_ip blacklist_domains blacklist_senders whitelist_domains whitelist_hosts whitelist_hosts_ip whitelist_senders use_rbl_domains skip_av_domains skip_rbl_domains If you have any customizations, add them in again, as needed. Note that the SpamAssassin section has been moved to /etc/exim.spamassassin.conf, so ensure this file exists. Patch install: --------------- OR just patch your 4.2.2 file if you have many custom changes in your exim.conf, saving you the need to re-add them: cd /etc cp exim.conf exim.conf.4.2.2 wget http://files.directadmin.com/services/SpamBlocker/exim.conf-SpamBlockerTechnology-v4.2.2-to-v4.2.3.diff patch -p0 < exim.conf-SpamBlockerTechnology-v4.2.2-to-v4.2.3.diff and type in "exim.conf" when it asks which file to patch (as the diff was created against files with different names)