on 2019/9/26 16:42, Enrico Morelli wrote:
Can you setup spamassassin for domain blacklist?

regards.
How can do that?

The SpamAssassin whitelist and blacklist options can include globs, not regular expressions. The valid metacharacters are ? and * to match 0-1 or 0-many characters respectively. This is the same as a shell glob.

To blacklist mail from foo.com and *.foo.com the following should work:

blacklist_from *@foo.com
blacklist_from *.foo.com

Don't be tempted to blacklist *foo.com, lest you inadvertently block some...@totally-legit-foo.com.

Regards.

Reply via email to