How to disable Validity RBL lookups in SpamAssassin

Jan 24, 2021
14
0
21
56
Hi,

Spamassassin uses the validity RBL by default. I am exceeding the 10k limit and have no interesting in subscribing to validity.
Code:
RCVD_IN_VALIDITY_RPBL_BLOCKED  0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked.  See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information.

How do I stop SpamAssassin from querying this RBL?

cpanel has some instructions up, not sure if they translate to proxmox MG or not.
https://support.cpanel.net/hc/en-us...stop-SpamAssassin-from-querying-Validity-RBLs
 
I have same problem RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED and RCVD_IN_VALIDITY_SAFE_BLOCKED

pmg pmg-smtp-filter[2598607]: WARNING: check: dns_block_rule RCVD_IN_VALIDITY_SAFE_BLOCKED hit, creating /root/.spamassassin/dnsblock_sa-accredit.habeas.com (This means DNSBL blocked you due to too many queries. Set all affected rules score to 0, or use "dns_query_restriction deny sa-accredit.habeas.com" to disable queries)
pmg pmg-smtp-filter[2598607]: WARNING: check: dns_block_rule RCVD_IN_VALIDITY_RPBL_BLOCKED hit, creating /root/.spamassassin/dnsblock_bl.score.senderscore.com (This means DNSBL blocked you due to too many queries. Set all affected rules score to 0, or use "dns_query_restriction deny bl.score.senderscore.com" to disable queries)
pmg-smtp-filter[1756808]: WARNING: check: dns_block_rule RCVD_IN_VALIDITY_CERTIFIED_BLOCKED hit, creating /root/.spamassassin/dnsblock_sa-trusted.bondedsender.org (This means DNSBL blocked you due to too many queries. Set all affected rules score to 0, or use "dns_query_restriction deny sa-trusted.bondedsender.org" to disable queries)

so I edited /etc/pmg/templates/local.cf.in

add

dns_query_restriction deny multi.uribl.com
dns_query_restriction deny bl.score.senderscore.com
dns_query_restriction deny sa-accredit.habeas.com
dns_query_restriction deny sa-trusted.bondedsender.org

pmgconfig sync --restart 1
 
Last edited: