To make use of the newest exim settings and enhancements, you can update your exim.conf by running the following as root:
wget -O /etc/exim.conf http://files.directadmin.com/services/exim.conf wget -O /etc/exim.pl http://files.directadmin.com/services/exim.pl chmod 755 /etc/exim.pl cd /etc/virtual touch blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders if [ ! -e limit ]; then echo 0 > limit; fi mkdir -p usage chown mail:mail limit blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders limit usage
If you are running dovecot, you will need to re-patch your exim.conf:
patch -p0 < /usr/local/directadmin/customapache/exim.conf.dovecot.patch patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch
Note that you only need to run the patch appropriate to the build system you have. If you have custombuild, run the 2nd one. If you don’t know what you have, then run them both, as it won’t hurt anything if you patch twice.
Note that there are entries in the /etc/exim.conf that should be manually set for your system.
See the readme file for more information. (See the section labelled MANDATORY CHANGES to the SpamBlocker.exim.conf file)
Then restart exim:
/etc/init.d/exim restart
Now you can limit the number of emails sent by each user (prevent spams):
echo 300 > /etc/virtual/limit_username
where username is the User you wish to give the special limit to. This overrides the default /etc/virtual/limit file for that User.
If you think you might have a spammer, check your /etc/virtual/usage directory for a larger than normal filesize.
Any authenticated sends will show up with this command:
cd /var/log/exim grep 'A=login:' mainlog* | less
which will show all emails sent from your server which used smtp-authentication. This is useful to find any email accounts who’s passwords may have been compromised (guessed), or simply just abusive Users.