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.

How to Filter Certain Domains?

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

  1. Jewdebega

    Jewdebega Member

    Joined:
    Jul 28, 2015
    Messages:
    5
    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:
    765
    Likes Received:
    20
    Trophy Points:
    18
    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:
    5
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page