Question about SpamAssassin whitelists

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,248
50
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello friends.

Today I'm facing this requirement. For a given account, I need to whitelist ALL emails coming from Yahoo Mail servers. they have lots of IP addresses in different ranges. So I decided to use the whitelist_from feature within SpamAssassin screen in the end user cPanel. The issue is: I have to whitelist every Latam Yahoo domain:
  • yahoo.com
  • yahoo.es
  • yahoo.cl
  • yahoo.com.ar
  • yahoo.com.co
  • yahoo.com.mx
  • yahoo.com.pe
  • yahoo.com.ve

Does it accept wildcards of type: *@yahoo.*

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Per the user_pref file for an account with SpamAssassin enabled:

Code:
# Whitelist and blacklist addresses are now file-glob-style patterns, so
# "[email protected]", "*@isp.com", or "*.domain.net" will all work.
You are welcome to try using a wildcard for the TLD location after Yahoo. Let us know if it works.

Thank you.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,248
50
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Well, I did the tests and the wildcards ONLY works for filters of type *@mydomain.com
I tried *.yahoo* and it doesn't work.
I'll have to declare the domains one by one.