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!

How to Filter Certain Domains?

Discussion in 'E-mail Discussion' started by Jewdebega, Jul 28, 2015.

  1. Jewdebega

    Jewdebega Member

    Joined:
    Jul 28, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston, TX
    cPanel Access Level:
    Website Owner
    Presently, I'm using account level filters to discard email from domains I have no reason or desire to receive emails from (e.g. *.biz, *.science) I'm using a matching regex code, such as: .+@.+\.biz

    However, there are some domains where I want to "whitelist" certain subdomains. For example, I want to receive emails from *@123.us, but I do not want to receive any emails from any address containing another *.us address. What recommendations does the community have for achieving this?
     
  2. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    998
    Likes Received:
    44
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    If youre using account level filtering, then can you not setup a rule that says

    "if from = 123.us, then deliver to inbox"
    "Stop processing Rules"

    and use this rule as a whitelist rule, so adding more domains as required.
     
    Jewdebega likes this.
  3. Jewdebega

    Jewdebega Member

    Joined:
    Jul 28, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston, TX
    cPanel Access Level:
    Website Owner
    I feel a bit idiotic now. Yes, that would absolutely work. Created the first filter as a "whitelist" and set any matches to stop processing the rules. If no matches, the subsequent discard rules take place. Thanks!
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I'm happy to see the suggestion provided in the earlier response was helpful. Thank you for updating us with the outcome.
     
    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