The code I am using is from here:
http://ameba.dyndns.org/rulesfromto/check_rulesfromto It will not let me set a global sender.
Sme does process emails that are address to the domain of the server and if the user is not valid it resends it back to the sender.
With the setup from dungog email blocking I am able to tell qmail that if the email user is valid take and if not block so it will not process it.
ex.
FROM TO ACTION
*@* user@domain.com OK
*@* *@domain.com DENY
With this as soon as it see that the email for user@domain.com is good it would process it. If it is not for user@domain.com but for unknown@domain.com it would not that the email.
The problem with badrcptto is that it will block all emails from domain.com where I do want email for domain.com but not for invalid users.
There is a new virus that came out last week that sends spam out and that only two of the current antivirus programs out will clean it. What is happing is that I am being hit by emails that it is over loading my sever (SME 6.5). I found that using the dungog email blocking program that I can tell smtp server that if I dont give it a user for that domain an ok it will not take the email and with that it will not process the email and over load it. If I let the email in it slows the server down do to spam filering, antivirus detection before the system knows if it is a vaild user. My system is handling the hit with the dungog module but I have a customer that is on sme 7 that is also getting hit to the point of locking the smtp server part. I am seeing more servers now getting hit and until internet users clean there system I need a way of blocking invaild users before the system processes it.
Thanks, I hope this explains it better.