Whitelist spam pattern matching in SpamAssassin
Can any of you suggest a way to whitelist any email from a domain OR subdomain of that domain, without whitelisting a domain that just happens to end with the same string?
Eg, I get emails from forums@cpanel.net or support@tickets.cpanel.net, and possibly other subdomains of cpanel.net. I want to whitelist all variations (including those I don't know), so I do this:
But that also inadvertently whitelists, say, spam@spammercpanel.net (assuming a spammer is clever enough to buy a domain that ends with "cpanel.net"). And that's just one example, I currently have 29 whitelists that are like that. I know that I could double down, like:
but before I double my list of whitelist addresses, is there a better way? Can I do some sort of pattern matching? Like:
whitelist_from *@*cpanel.netBut that also inadvertently whitelists, say, spam@spammercpanel.net (assuming a spammer is clever enough to buy a domain that ends with "cpanel.net"). And that's just one example, I currently have 29 whitelists that are like that. I know that I could double down, like:
whitelist_from *@cpanel.net
whitelist_from *@*.cpanel.netbut before I double my list of whitelist addresses, is there a better way? Can I do some sort of pattern matching? Like:
whitelist_from *@(\w.)?cpanel.net-
I was going to direct you to a thread that i just saw you commented out, as maybe Exim filters would be more helpful here, but I see you found that :D 0
Please sign in to leave a comment.
Comments
2 comments