Global Spam Filter: Reject All Email that isn't from .com or .net or .org or other .TLD

USA_Webmaster

Well-Known Member
Dec 10, 2015
64
10
58
USA
cPanel Access Level
Root Administrator
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:



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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
  • Like
Reactions: USA_Webmaster

USA_Webmaster

Well-Known Member
Dec 10, 2015
64
10
58
USA
cPanel Access Level
Root Administrator
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:



Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.