I'm researching migrating some Exim servers to Postfix and would like to 
implement automatic blocking of compromised and spammers' accounts with 
notifications to staff.  Any suggestions?

On the Exim user list today someone suggested 
https://github.com/Exim/exim/wiki/BlockCracking.

Blocking compromised accounts (outgoing spam) and auth cracking

Nowadays users' passwords often are stolen (with drive-by exploits, Windows 
malware, phishing) and used for spamming. Spam sent with authentication via 
your server causes it to be blacklisted without notice and sometimes no appeal. 
Simple rate limiting authenticated users constrains honest users while still 
allowing spam to trickle through, your server still ends up in blacklists. Each 
server needs automatic detection and blocking of compromised accounts (stolen 
passwords). I amended and implemented (for Exim version 4.67 or higher) Andrew 
Hearn's idea to check not rate of messages or all recipients, but rate of 
attempts to send to nonexistent recipient email addresses. Vast majority of 
spammers never try to validate every recipient address. Spammers harvest 
strings looking like email addresses from webpages and disks of trojaned 
Windowses, then sell huge lists of email addresses to each other. These lists 
contain very much email addresses which don't exist anymore or never existed: 
Message-Ids, corrupted strings in memory and files. In short, spammers' lists 
of email addresses are much dirtier than lists honest users send to. Honest 
users are very unlikely to attempt to send to 100 nonexistent email addresses 
in one hour. Below I explain in detail (for novices at Exim) what to change in 
Exim config for automatic blocking of compromised and spammers' accounts, with 
automatic email notification to sysadmin or your abuse or support staff.
...


Thanks,
Chuck

Reply via email to