Justin Fielding wrote:

I am suffering from dictionary spam attacks causing qmail-scanner with clamav and SA to overload the servers memory and now and then crash it. When the spammer connects and starts firing off all these emails, before qmail can just dump the ones to non-exising addresses, they go through clamav and spamassassin. Quite often these spams will have attachments too with spyware inside, so these are scanned. It would be great to have the qmail-scanner script give the option to check for a mailboxes validity, and if it does not exist, reject it at the smtp level. This could be done by recompiling qmail-smtpd, but I have a plesk system which uses a custom qmail-smtpd so I can't patch.


Please listen to what you said: "I won't patch my qmail install to do what I want, so I think Q-S should be 'fixed' to do it for me"...


I agree that dictionary attacks are a real problem for relay servers in general (not just Qmail: doesn't help to be running sendmail or postfix if all your Internet mail server does is relay to an Exchange/or other backend) - and the best solution is to patch qmail-smtpd with one of the recipient-check patches - as outlined on http://www.qmail.org.

Indeed Q-S can't really do what you want anyway. To reject bad recipients, you need to do it as follows:

MAIL FROM: <....>
ok
RCPT TO: <[EMAIL PROTECTED]>
5xx unknown recipient
QUIT

But Q-S doesn't have "hooks" into that part of the SMTP transaction - it only gets called after the DATA command is sent. So best-case is that after the client has *finished* sending the e-mail - Q-S could reject it. But that won't work either! What if there were 5 recipients - and only one was a bogus user? Q-S can't reject it then - the 4 valid users WOULD LOSE MAIL.

It's not the best tool for the job. It's not even possible for it to do the job!

Jason


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to