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!

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

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

Tags:
  1. USA_Webmaster

    USA_Webmaster Well-Known Member

    Joined:
    Dec 10, 2015
    Messages:
    45
    Likes Received:
    4
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    USA_Webmaster likes this.
  3. USA_Webmaster

    USA_Webmaster Well-Known Member

    Joined:
    Dec 10, 2015
    Messages:
    45
    Likes Received:
    4
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice