Skip to main content

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

Comments

6 comments

  • cPanelLauren
    Hi @Kent Brockman *@paypal is usable to whitelist this is noted in the documentation you linked as well: [QUOTE] Note: When you add addresses to the whitelist, use * as a wildcard to represent multiple characters and ? to represent a single-character wildcard. The following examples demonstrate how to properly use wildcards in the whitelist:
    0
  • Kent Brockman
    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?
    0
  • cPanelLauren
    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.
    0
  • Kent Brockman
    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?
    0
  • cPanelLauren
    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: 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: 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)"
    0
  • Kent Brockman
    Awesome, thanks a lot for the testing!! Hope you can consider adding the example to the docs for better clarification. Thanks!
    0

Please sign in to leave a comment.