Possible SMTPAUTH Attack Solution
Posted: 25 Jun 2015, 18:26
Long ago my dial up ISP told me to insure I check POP before trying to send mail. Most e-mail applications do this in that order.
How about monitoring successful POP3/IMAP logins and immediately adding the IP to say /etc/csf/csf.smtpauthallow say for X hours/days/configurable.
Then only advertising SMTPAUTH to IP addresses that are listed in /etc/csf/csf.smtpauthallow
I understand that if someone tries to send e-mail on their first login that it might fail due to the time period it would take to add it to /etc/csf/csf.smtpauthallow. After that first login though I would leave the IP in /etc/csf/csf.smtpauthallow for a month or two. One SMTP login failure per month per account is a small price to pay to stop these 1000's of SMTPAUTH attempts every day.
I'm getting about 5,000 per day. It's only a problem on some days between 12-3 am when a load of them all happen at once and csf can't keep up with the blocks overloading the server. I have to kill them, stop csf, and wait a while.
I have clients all over the world so I can't block SMTPAUTH for very many countries. I tried blocking a few countries and that caused problems for some of my clients. I wish I could just not advertise SMTPAUTH to nobody except to the people who have already logged into POP3 or IMAP.
How about monitoring successful POP3/IMAP logins and immediately adding the IP to say /etc/csf/csf.smtpauthallow say for X hours/days/configurable.
Then only advertising SMTPAUTH to IP addresses that are listed in /etc/csf/csf.smtpauthallow
I understand that if someone tries to send e-mail on their first login that it might fail due to the time period it would take to add it to /etc/csf/csf.smtpauthallow. After that first login though I would leave the IP in /etc/csf/csf.smtpauthallow for a month or two. One SMTP login failure per month per account is a small price to pay to stop these 1000's of SMTPAUTH attempts every day.
I'm getting about 5,000 per day. It's only a problem on some days between 12-3 am when a load of them all happen at once and csf can't keep up with the blocks overloading the server. I have to kill them, stop csf, and wait a while.
I have clients all over the world so I can't block SMTPAUTH for very many countries. I tried blocking a few countries and that caused problems for some of my clients. I wish I could just not advertise SMTPAUTH to nobody except to the people who have already logged into POP3 or IMAP.