From: Ray Anderson <[EMAIL PROTECTED]>
My solution to this problem is this:
I'm running postfix 2.1.5-5 on Fedora Core 3 and recently had this same
question come up. I was whitelisting all 30something domains I hosted but
ran into spammers using foo@<domain name> to get around spam filtering.
My solution was to create a rule in postfix main.cf:
smtpd_recipient_restrictions =
permit_sasl_authenticated,
check_client_access pcre:/etc/postfix/non-auth.re,
-- snip --
And the contents of non-auth.re is:
/^/ PREPEND X-No-Auth: Unauthenticated Sender
Since postfix aborts checking at the first match, this has the effect of
stamping every single message with a header that I can find and react to,
which for me bypasses spamd -- note: this decision takes place _after_
virus scanning, etc.
Hope this helps someone.
-=Ray
Variations on a theme:
http://marc.theaimsgroup.com/?l=amavis-user&m=116490679931010
Of course regexp can be used in place of pcre if pcre is not support on a
particular build.
Gary V
Gary V
_________________________________________________________________
Fixing up the home? Live Search can help
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG