John Hardin wrote:
On Thu, 16 Oct 2008, Randy wrote:

McDonald, Dan wrote:
On Thu, 2008-10-16 at 08:02 -0700, linuxbox wrote:

> rawbody spam_domains /blockeddomain\.com/i

uri spam_domains /blockeddoamin\.com/i

If you need to block a domain from sending e-mail, then use the mail server to handle it. It is better to block messages from even getting to your filtering applications.

How does the MTA block on a domain name _in the message body_ without passing it to a filtering application?

Your answer, while valid, isn't germane to the OP's question.

Postfix can do this so my suggestion stands. Look for body_checks in Postfix. However, this isn't "germane" if the OP simply chooses mark messages as spam with spammassassin. The key word he used was "block" and when I read block I look at the MTA.

OP original quote.

"Hello there. I have a problem with blocking an email with spamassassin. normally when i want to block a domain in an email, be it html or plain text
i would have a rule such as this, and this works perfectly: "

Reply via email to