On 4/19/2010 12:34 PM, Aaron Clausen wrote:
This has probably been asked a hundred times before, but a client of mine has requested the ability to reject emails if their spam score is above a certain score, rather than marking it as spam. Is this a possibility with Postfix?
Yes, but the filtering must be done before the mail is queued. That means either using either a milter or a smtpd_proxy_filter as the glue between the filtering program and postfix.
If you reject mail using a postfix content_filter, you become a backscatter source and will likely be blacklisted if your volume is more than negligible. Never reject mail when using a postfix content_filter.
Note that using a resource-intensive process such as spamassassin pre-queue reduces the peak throughput of mail, and may not be suitable for all sites.
There are several milters that can use spamassassin, search google. Amavisd-new works well as a smtpd_proxy_filter.
For something a little lighter-weight than spamassassin, you might investigate the j-chkmail milter.
-- Noel Jones