You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Michael Grant via users <us...@spamassassin.apache.org> on 2025/05/01 20:03:21 UTC

RCVD_IN_VALIDITY_RPBL_BLOCKED

I'm seeing this error over and over in my logs over the last few weeks:

spamd: 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)

I did try to disable this in root's local.cf but the error continues.

I am using my own proper bind DNS server running on my host to query, 
not forwarding requests to Linode or google.  My host is at linode 
though so I wonder if the ip address of my server I'm in got flagged 
some other network neighbor or if my spamd really did query too many 
times.  But after several weeks, the error persists.

Any ideas?  Thanks.

Michael Grant

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Bill Cole <bi...@apache.org>.
On 2025-05-02 at 08:39:19 UTC-0400 (Fri, 02 May 2025 08:39:19 -0400)
Bill Cole <us...@spamassassin.apache.org>
is rumored to have said:

> If your resolver is blocked, it is blocked everyone.

Sorry: missing the word 'for' there before 'everyone'.


-- 
 Bill Cole
 bill@scconsult.com or billcole@apache.org
 (AKA @grumpybozo@toad.social and many *@billmail.scconsult.com addresses)
 Not Currently Available For Hire

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Bill Cole <bi...@apache.org>.
On 2025-05-02 at 07:41:46 UTC-0400 (Fri, 02 May 2025 11:41:46 +0000)
Michael Grant via users <mg...@grant.org>
is rumored to have said:

> From "Bill Cole" <sa...@billmail.scconsult.com>
>> Did you do that in the "global" config at 
>> /etc/mail/spamassassin/local.cf (or something like it with 'etc' 
>> somewhere)  or in root's user config in 
>> /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the 
>> latter, you need to move it to the global config.
>
> I put it in root's user config, let me try in local.cf.
>
> Couple things I don't understand...  1) why is this only complaining 
> about root

I do not know, but the way SA responds to DNSBL blocking is to stop 
queries to that DNSBL for a while, so it could appear to be limited to a 
single user.

> and 2) if I put this in the global config 
> (/etc/spamassassin/local.cf), won't I be disabling the checking of 
> this BL for everyone?

If your resolver is blocked, it is blocked everyone.

> I feel like there's some other problem here.  Why am I blacklisted 
> from querying this BL?

That issue has been discussed extensively on this mailing list recently. 
The simple answer is that Validity has reduced the limit on how many 
queries can be done from unknown parties. If your queries go over their 
limit, they start blocking.

> These tests seem to be part of the base packages in 
> /usr/share/spamassassin/20_dnsbl_tests.cf.  Should I really be 
> disabling this test globally?

If you don't want to sign up for a Validity account, then yes.

Were it not for the fact that the Validity rules have been a part of the 
default rules channel for a long time, they would be disabled by default 
or it would be left to users whether to have any rules for them at all. 
Unfortunately, making that change now would break meta-rules that users 
may have created using the Validity rules.


-- 
  Bill Cole
  bill@scconsult.com or billcole@apache.org
  (AKA @grumpybozo@toad.social and many *@billmail.scconsult.com 
addresses)
  Not Currently Available For Hire

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Benny Pedersen via users <us...@spamassassin.apache.org>.
Benny Pedersen via users skrev den 2025-05-02 16:08:
> Michael Grant via users skrev den 2025-05-02 13:41:
>> From "Bill Cole" <sa...@billmail.scconsult.com>
>>> Did you do that in the "global" config at 
>>> /etc/mail/spamassassin/local.cf (or something like it with 'etc' 
>>> somewhere)  or in root's user config in 
>>> /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the 
>>> latter, you need to move it to the global config.
>> I put it in root's user config, let me try in local.cf.
>> 
>> Couple things I don't understand...  1) why is this only complaining 
>> about root and 2) if I put this in the global config 
>> (/etc/spamassassin/local.cf), won't I be disabling the checking of 
>> this BL for everyone?
>> 
>> I feel like there's some other problem here.  Why am I blacklisted 
>> from querying this BL?  These tests seem to be part of the base 
>> packages in /usr/share/spamassassin/20_dnsbl_tests.cf.  Should I 
>> really be disabling this test globally?
> 
> grep -r BLOCKED /var/lib/spamassassin/4.000001/
> 
> see TFLAGS reuse rules, so its upstram results ?
> 
> No, score=-2.395 tagged_above=-999 required=5 
> tests=[AUTHRES_AUTH_NONE=0.5, AUTHRES_DKIM_PASS=-0.5, DKIM_INVALID=0.1, 
> DKIM_SIGNED=0.1, KAM_DMARC_STATUS=0.1, MAILING_LIST_MULTI=-0.1, 
> RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, 
> RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, 
> RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 
> RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RELAYCOUNTRY_BAD_DE=0.5, 
> RELAYCOUNTRY_GOOD=-0.5, RELAYCOUNTRY_GREY=0.1, SPF_HELO_PASS=-0.1, 
> SPF_PASS=-0.1, USER_IN_DEF_SPF_WL=-0.2] autolearn=no autolearn_force=no
> 
> hmm

with query deny rule i get

No, score=-2.498 tagged_above=-999 required=5 
tests=[AUTHRES_AUTH_NONE=0.5, AUTHRES_DKIM_PASS=-0.5, DKIM_INVALID=0.1, 
DKIM_SIGNED=0.1, KAM_DMARC_STATUS=0.1, MAILING_LIST_MULTI=-0.1, 
RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, 
RCVD_IN_MSPIKE_WL=0.001, RELAYCOUNTRY_BAD_DE=0.5, 
RELAYCOUNTRY_GOOD=-0.5, SPF_HELO_PASS=-0.1, SPF_PASS=-0.1, 
USER_IN_DEF_SPF_WL=-0.2] autolearn=no autolearn_force=no

so now all is blocked if users is not users with are signed up ?

go away :)


Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Benny Pedersen via users <us...@spamassassin.apache.org>.
Michael Grant via users skrev den 2025-05-02 13:41:
> From "Bill Cole" <sa...@billmail.scconsult.com>
>> Did you do that in the "global" config at 
>> /etc/mail/spamassassin/local.cf (or something like it with 'etc' 
>> somewhere)  or in root's user config in 
>> /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the 
>> latter, you need to move it to the global config.
> I put it in root's user config, let me try in local.cf.
> 
> Couple things I don't understand...  1) why is this only complaining 
> about root and 2) if I put this in the global config 
> (/etc/spamassassin/local.cf), won't I be disabling the checking of this 
> BL for everyone?
> 
> I feel like there's some other problem here.  Why am I blacklisted from 
> querying this BL?  These tests seem to be part of the base packages in 
> /usr/share/spamassassin/20_dnsbl_tests.cf.  Should I really be 
> disabling this test globally?

grep -r BLOCKED /var/lib/spamassassin/4.000001/

see TFLAGS reuse rules, so its upstram results ?

No, score=-2.395 tagged_above=-999 required=5 
tests=[AUTHRES_AUTH_NONE=0.5, AUTHRES_DKIM_PASS=-0.5, DKIM_INVALID=0.1, 
DKIM_SIGNED=0.1, KAM_DMARC_STATUS=0.1, MAILING_LIST_MULTI=-0.1, 
RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, 
RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, 
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 
RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RELAYCOUNTRY_BAD_DE=0.5, 
RELAYCOUNTRY_GOOD=-0.5, RELAYCOUNTRY_GREY=0.1, SPF_HELO_PASS=-0.1, 
SPF_PASS=-0.1, USER_IN_DEF_SPF_WL=-0.2] autolearn=no autolearn_force=no

hmm



Re[2]: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Michael Grant via users <us...@spamassassin.apache.org>.
From "Bill Cole" <sa...@billmail.scconsult.com>
>Did you do that in the "global" config at /etc/mail/spamassassin/local.cf (or something like it with 'etc' somewhere)  or in root's user config in /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the latter, you need to move it to the global config.
I put it in root's user config, let me try in local.cf.

Couple things I don't understand...  1) why is this only complaining 
about root and 2) if I put this in the global config 
(/etc/spamassassin/local.cf), won't I be disabling the checking of this 
BL for everyone?

I feel like there's some other problem here.  Why am I blacklisted from 
querying this BL?  These tests seem to be part of the base packages in 
/usr/share/spamassassin/20_dnsbl_tests.cf.  Should I really be disabling 
this test globally?

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 2025-05-12 at 14:20:02 UTC-0400 (Mon, 12 May 2025 19:20:02 +0100)
Nix <ni...@esperi.org.uk>
is rumored to have said:

> On 1 May 2025, Bill Cole told this:
>
>> On 2025-05-01 at 16:03:21 UTC-0400 (Thu, 01 May 2025 20:03:21 +0000)
>> Michael Grant via users <mg...@grant.org>
>> is rumored to have said:
>>
>>> I'm seeing this error over and over in my logs over the last few weeks:
>>>
>>> spamd: 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 "" to disable queries)
>>>
>>> I did try to disable this in root's local.cf but the error continues.
>>
>> Did you do that in the "global" config at /etc/mail/spamassassin/local.cf (or something like it with 'etc' somewhere)  or in root's
>> user config in /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the latter, you need to move it to the global config.
>>
>> OR, double-check your config line. it needs to precisely match the quoted string. Note that if your mail server is using
>> SpamAssassin via the 'spamd' daemon, you should restart spamd after making configuration changes. That is also true for milters like
>> MIMEDefang or MailMunge which have persistent daemons.
>
> Well... yes, only my spamd installation saw constant complaints (no
> persisting of the dnsblock config) until I chowned
> /etc/mail/spamassassin/helpers/.spamassassin/ to 1777.  Look:
>
> drwxrwxrwt 2 root root  130 May 12 19:16 .
> drwxr-xr-x 4 root root   53 Jul  7  2024 ..
> -rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_bl.score.senderscore.com
> -rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_sa-accredit.habeas.com
> -rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_sa-trusted.bondedsender.org
>
> It looks like (trunk) spamd is creating the block entries in the
> systemwide dir, but doing it after setuiding to the per-mail-user UID!
> This is... unlikely to work unless you make the helper/.spamassassin dir
> 1777 (as above), which feels... extremely wrong.

I might quibble with "extremely" but, yes. The sticky bit is doing important work there. I hope that others who have per-user checking set up have not 'solved' this with a simple 0777. Making the directory 1775 root:users is arguably slightly better.

I'm not entirely sure how that gets fixed, but we definitely should fix it. The basic issue is that by the time we are doing any work with rules (which may be user-defined) we have handed the spamc connection to a child spamd process running as the recipient. In principle, we should treat anything that child does as tainted by default and only allow the child to change global config with very tight supervision.


-- 
Bill Cole

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Nix <ni...@esperi.org.uk>.
On 1 May 2025, Bill Cole told this:

> On 2025-05-01 at 16:03:21 UTC-0400 (Thu, 01 May 2025 20:03:21 +0000)
> Michael Grant via users <mg...@grant.org>
> is rumored to have said:
>
>> I'm seeing this error over and over in my logs over the last few weeks:
>>
>> spamd: 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 "" to disable queries)
>>
>> I did try to disable this in root's local.cf but the error continues.
>
> Did you do that in the "global" config at /etc/mail/spamassassin/local.cf (or something like it with 'etc' somewhere)  or in root's
> user config in /root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the latter, you need to move it to the global config.
>
> OR, double-check your config line. it needs to precisely match the quoted string. Note that if your mail server is using
> SpamAssassin via the 'spamd' daemon, you should restart spamd after making configuration changes. That is also true for milters like
> MIMEDefang or MailMunge which have persistent daemons.

Well... yes, only my spamd installation saw constant complaints (no
persisting of the dnsblock config) until I chowned
/etc/mail/spamassassin/helpers/.spamassassin/ to 1777.  Look:

drwxrwxrwt 2 root root  130 May 12 19:16 .
drwxr-xr-x 4 root root   53 Jul  7  2024 ..
-rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_bl.score.senderscore.com
-rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_sa-accredit.habeas.com
-rw-r--r-- 1 nix  users   0 May 12 19:16 dnsblock_sa-trusted.bondedsender.org

It looks like (trunk) spamd is creating the block entries in the
systemwide dir, but doing it after setuiding to the per-mail-user UID!
This is... unlikely to work unless you make the helper/.spamassassin dir
1777 (as above), which feels... extremely wrong.

Re: RCVD_IN_VALIDITY_RPBL_BLOCKED

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 2025-05-01 at 16:03:21 UTC-0400 (Thu, 01 May 2025 20:03:21 +0000)
Michael Grant via users <mg...@grant.org>
is rumored to have said:

> I'm seeing this error over and over in my logs over the last few 
> weeks:
>
> spamd: 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 "" to disable queries)
>
> I did try to disable this in root's local.cf but the error continues.

Did you do that in the "global" config at 
/etc/mail/spamassassin/local.cf (or something like it with 'etc' 
somewhere)  or in root's user config in 
/root/.spamassassin/{userprefs,local.cf,whatever} ? If it was the 
latter, you need to move it to the global config.

OR, double-check your config line. it needs to precisely match the 
quoted string. Note that if your mail server is using SpamAssassin via 
the 'spamd' daemon, you should restart spamd after making configuration 
changes. That is also true for milters like MIMEDefang or MailMunge 
which have persistent daemons.

> I am using my own proper bind DNS server running on my host to query, 
> not forwarding requests to Linode or google.  My host is at linode 
> though so I wonder if the ip address of my server I'm in got flagged 
> some other network neighbor or if my spamd really did query too many 
> times.  But after several weeks, the error persists.
>
> Any ideas?  Thanks.

My bet is on one of the issues implied above:

1. "dns_query_restriction deny bl.score.senderscore.com" is in the wrong 
file

2. The config line has a typo

3. Some long-lived process is retaining a stale image of the config



-- 
  Bill Cole
  bill@scconsult.com or billcole@apache.org
  (AKA @grumpybozo@toad.social and many *@billmail.scconsult.com 
addresses)
  Not Currently Available For Hire