Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by USA_Webmaster, Jan 18, 2018.

Tags:
  1. USA_Webmaster

    USA_Webmaster Active Member

    Joined:
    Dec 10, 2015
    Messages:
    37
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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:

    [​IMG]

    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    USA_Webmaster likes this.
  3. USA_Webmaster

    USA_Webmaster Active Member

    Joined:
    Dec 10, 2015
    Messages:
    37
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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:

    [​IMG]

    Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page