Global Spam Filter: Reject All Email that isn't from .com or .net or .org or other .TLD
You know how there is like 100s and 100s of domain endings? The .loan, .ninja, .guru, etc..? How do I reject all email that isn't from a traditional .com, .net, .org, etc.. domain?
Do I really need to create additional rule filter and manually add all domain extensions?Here is an example rule I use:
https://i.imgur.com/qKupfkN.png
It would be a bloody nightmare if I had to create 100s of rules just for those second level (hipster) domains. SpamAssassin doesn't always work and I get emails that tell me buy a product to regrow my hair.
It would be a bloody nightmare if I had to create 100s of rules just for those second level (hipster) domains. SpamAssassin doesn't always work and I get emails that tell me buy a product to regrow my hair.
-
Hello, You may want to use the "does not end with" operator when setting up a filter for the "from" address. This way, you can reject all emails that do not come from TLDs you want to allow instead of manually adding rules for all other TLDs. We document how to setup email filters at: How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
Thanks for suggestion, it is most helpful. Might you know @cPanelMichael, if a single rule would properly work if using a comma (or even wildcard *) to separate top level domains? Do you recommend wildcard and comma? So a rule might look like either: https://i.imgur.com/zinW4DM.png
Thanks0 -
Hello, You'd need to add separate entries for each TLD using the OR statement unless you were comfortable developing a custom regular expression to use as part of the filter rule. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments