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!

What's the scope of wildcards for whitelists/blacklists?

Discussion in 'E-mail Discussion' started by Kent Brockman, Apr 15, 2019.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,196
    Likes Received:
    10
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    As per the docs at Spam Filters - Version 72 Documentation - cPanel Documentation, you specify what wildcards can be used. That's ok.

    But will it work to whitelist something like *@paypal.*?
    Cause I need to whitelist, i.e., use cases like *@paypal.com, *@paypal.com.ar and *@paypal.es. Should it work or I need to add it one by one?

    Thanks in advance.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,715
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Kent Brockman


    *@paypal is usable to whitelist this is noted in the documentation you linked as well:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,196
    Likes Received:
    10
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Lauren. It's not completely or explicitly defined. I'm talking about putting the asterisk both at the beginning and at the end of the string, like in *@paypal.* , while the documentation talks about putting it only at the beginning.
    So, should it work? Have you tested it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,715
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Kent Brockman


    It's not explicitly listed as something that will be recognized but I don't see any indication that it wouldn't work. I have not tested it though.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,196
    Likes Received:
    10
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Maybe nobody thought of such an use case before :) Can you test it please or reach any of the dev people to confirm for yes or not?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,715
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Kent Brockman

    It appears to work, I tested this from a domain that for all purposes should have been flagged as spam and got the following:

    Code:
    2019-04-16 13:41:26 1hGT1K-000940-4R H=mtestserverhostname (centos6.11-78-0-11.tld) [IPREMOVED]:34967 Warning: "SpamAssassin as MYUSER detected message as NOT spam (-90.3)"
    The same message sent without the whitelist rule added comes up as definite spam:

    Code:
    2019-04-16 13:44:37 1hGT4O-00098w-Se H=mytestserverhostname (centos6.11-78-0-11.tld) [IPREMOVED]:55602 Warning: "SpamAssassin as myuser detected message as spam (10.5)"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,196
    Likes Received:
    10
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Awesome, thanks a lot for the testing!!
    Hope you can consider adding the example to the docs for better clarification.
    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
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