SpamAssassin whitelist not work with easy_spam_fighter

mean

Verified User
Joined
Feb 14, 2007
Messages
113
Hello DA Team.

Domain Whitelist on SpamAssassin doesn't work with easy_spam_fighter
  • allow *@sender-domain.co.th
  • exim 4.94.2
  • exim.conf use "SpamBlockerTechnology* powered exim.conf, Version 4.5.35"
  • dovecot 2.3.15 (0503334ab1)
  • rspamd latest
Error Message
2021-07-29 15:15:12 1m91CC-0007yA-FC DKIM: d=sender-domain.co.th s=mail [failed key import]
2021-07-29 15:15:12 1m91CC-0007yA-FC DKIM: d=sender-domain.co.th s=mail [failed key import]
2021-07-29 15:15:12 1m91CC-0007yA-FC H=mail.domain.net [203.150.xxx.xxx] Warning: DKIM: Invalid. reason='pubkey_unavailable'. May be a temporary problem.
2021-07-29 15:15:12 1m91CC-0007yA-FC H=mail.domain.net [203.150.xxx.xxx] X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no F=<[email protected]> rejected after DATA: Your message to <[email protected]> was classified as SPAM. Please add more content, cut down on HTML links, use fewer naughty words etc. Also, ask your IT dept to make sure your mailserver has REVERSEDNS, SPF, DKIM, and is not on any black lists. Your score: 160
this block message from /etc/exim.easy_spam_fighter/check_message.conf

this rule include on exim.conf line 587
.include_if_exists /etc/exim.easy_spam_fighter/check_message.conf

this rule include on exim.conf line 705 **after check_message.conf**
domain_filter:
driver = redirect
allow_filter
no_check_local_user
domains = lsearch,ret=key;/etc/virtual/domainowners
condition = "${if exists{/etc/virtual/${domain_data}/filter}{yes}{no}}"
user = "${lookup{$domain_data}lsearch{/etc/virtual/domainowners}{$value}}"
group = "mail"
file = /etc/virtual/${domain_data}/filter
directory_transport = address_file
pipe_transport = virtual_address_pipe
retry_use_local_part
no_verify

SpamAssassin write a filter on /etc/virtual/{domain}/filter is correct
if
$sender_address matches ".*@sender-domain\\\\.co\\\\.th\\$"
then
finish
endif

I think maybe allow whitelist on SpamAssassin is not working
because domain_filter include after check_message.conf

Please advise how to resolve this issue,
without add a custom domain on /etc/virtual/whitelist_domains , /etc/virtual/esf_skip_senders , /etc/virtual/esf_skip_hosts
or disable the ESF high-score drop

Thanks
CJ.
 
Last edited:
Back
Top