Skip to main content

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

Comments

3 comments

  • cPanelMichael
    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
  • USA_Webmaster
    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
    Thanks
    0
  • cPanelMichael
    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.