You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sysadmins@spamassassin.apache.org by Ralph Corderoy <ra...@inputplus.co.uk> on 2025/02/15 11:07:36 UTC

updates.spamassassin.org in DNS.

Hi,

Should updates.spamassassin.org still exist in DNS?  I'm seeing

    error: unable to refresh mirrors file for channel
    updates.spamassassin.org, using old file

on an old server and observe that domain name doesn't exist.o

Perhaps it's just the old server being old, but the complaint has
started in the last week.

-- 
Cheers, Ralph.

Re: updates.spamassassin.org in DNS.

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 2025-02-17 at 11:55:43 UTC-0500 (Mon, 17 Feb 2025 16:55:43 +0000)
Ralph Corderoy <sy...@spamassassin.apache.org>
is rumored to have said:

> Hi Bill,
>
>>>>>      error: unable to refresh mirrors file for channel
>>>>>      updates.spamassassin.org, using old file
> ...
>> Note that the message above is not an indication of any error.
>
> The message starting ‘error:’ or another one?

I was referring to these:


     dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as 
1923802
     dbg: channel: current version is 1923802, new version is 1923802, 
skipping channel




-- 
  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: updates.spamassassin.org in DNS.

Posted by Ralph Corderoy <ra...@inputplus.co.uk>.
Hi Bill,

> > > >      error: unable to refresh mirrors file for channel
> > > >      updates.spamassassin.org, using old file
...
> Note that the message above is not an indication of any error.

The message starting ‘error:’ or another one?

-- 
Cheers, Ralph.

Re: updates.spamassassin.org in DNS.

Posted by Giovanni Bechis <gi...@paclan.it>.
On 2/17/25 5:55 PM, Ralph Corderoy wrote:
> So that explains it.  Given this old machine is being turned off within
> the year, I can either: ignore it; workaround it by updating MIRRORED.BY
> separately; or attempt to update the machine's certificates in case all
> schemas become https again, though this still leaves other TLS
> negotiation aspects to fail in the future.
I've changed the dns entry and sa-update.s.o is listed with http:// protocol in mirrors.updates.s.o.
This should fix your issue.
  Regards
   Giovanni

Re: updates.spamassassin.org in DNS.

Posted by Ralph Corderoy <ra...@inputplus.co.uk>.
Hi Giovanni,

> > > > >      error: unable to refresh mirrors file for channel
> > > > >      updates.spamassassin.org, using old file
...
> one of the mirrors listed in mirrors.updates.spamassassin.org has
> switched to https.
> A connection failure due to OpenSSL incompatible algorithms could be
> the issue.

I think you're correct.

With -D, the overnight run gives:

 1   dbg: channel: file /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY is too old, refreshing mirrors file
 2   dbg: channel: DNS lookup on mirrors.updates.spamassassin.org
 3   
 4   dbg: http: url: https://spamassassin.apache.org/updates/MIRRORED.BY
 5   dbg: http: downloading to: /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY, replace
 6   dbg: util: executable for curl was found at /usr/bin/curl
 7   dbg: http: /usr/bin/curl -s -L -O --remote-time -g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY -- https://spamassassin.apache.org/updates/MIRRORED.BY
 8   dbg: http: process [13681], exit status: 15360
 9   dbg: channel: no mirror data available for channel updates.spamassassin.org from https://spamassassin.apache.org/updates/MIRRORED.BY
10   
11   dbg: http: url: https://sa-update.spamassassin.org/MIRRORED.BY
12   dbg: http: downloading to: /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY, replace
13   dbg: util: executable for curl was found at /usr/bin/curl
14   dbg: http: /usr/bin/curl -s -L -O --remote-time -g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY -- https://sa-update.spamassassin.org/MIRRORED.BY
15   dbg: http: process [13683], exit status: 15360
16   dbg: channel: no mirror data available for channel updates.spamassassin.org from https://sa-update.spamassassin.org/MIRRORED.BY
17   
18   error: unable to refresh mirrors file for channel updates.spamassassin.org, using old file

Lines of interest:

    2.  Both URLs 2 are https schemas.

    8, 15.  curl(1) exits 15360 for both URLs.  Which is 0x3c00 or exit(60)
    in exit(3) terms.  curl's man page says:

        60  Peer certificate cannot be authenticated with known CA
            certificates.

So that explains it.  Given this old machine is being turned off within
the year, I can either: ignore it; workaround it by updating MIRRORED.BY
separately; or attempt to update the machine's certificates in case all
schemas become https again, though this still leaves other TLS
negotiation aspects to fail in the future.

Anyway, that's my question answered; thanks, list.

I did think from looking at the debug that running curl might benefit
from a -S given the -s, and exit statuses are better printed as hex.

-- 
Cheers, Ralph.

Re: updates.spamassassin.org in DNS.

Posted by Giovanni Bechis <gi...@paclan.it>.
MIRRORED.BY file is not signed and there are other possible attacks, anyway
I switched back the dns entry to plain http.
  Giovanni

On 2/15/25 11:40 PM, Kevin A. McGrail wrote:
> Interesting. Well the in update data from that site is cryptographically
> signed and verified.  Http is really fine in this case.
> 
> On Sat, Feb 15, 2025, 15:41 Giovanni Bechis <gi...@paclan.it> wrote:
> 
>> On Sat, Feb 15, 2025 at 01:45:46PM -0500, Bill Cole wrote:
>>> On 2025-02-15 at 10:11:16 UTC-0500 (Sat, 15 Feb 2025 15:11:16 +0000)
>>> Ralph Corderoy <sy...@spamassassin.apache.org>
>>> is rumored to have said:
>>>
>>>> Hi Giovanni,
>>>>
>>>>>>       error: unable to refresh mirrors file for channel
>>>>>>       updates.spamassassin.org, using old file
>>>> ...
>>>>> Which version is this server running ?
>>>>
>>>> 3.4.0.
>>>
>>> An update is in order. 3.4.0 has more serious bugs than I care to
>>> enumerate here. If that's a "vendor branch" that has backports of key
>>> updates (e.g. Debian or RedHat) then it will have many of those bugs
>>> fixed, but if your OS is no longer getting updates, you may not have all
>>> of the backported fixes.
>>>
>>> 4.0.1 is quite solid. The current 'trunk' version (will-be 4.0.2) has a
>>> few additional fixes.
>>>
>>>
>>>>> Could you try to run "sa-update -D" and post the results ?
>>>>
>>>> Thanks, that was the pointer I needed.  I've started poking around the
>>>> source too.  The key thing when running ‘sa-update -D’ as root now
>>>> is:
>>>>
>>>>      dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as
>>>> 1923802
>>>>      dbg: channel: current version is 1923802, new version is 1923802,
>>>> skipping channel
>>>
>>> I believe that's the latest version, as of this morning.
>>>
>>> You can force a re-fetch by editing the channel's .cf file to have a
>>> lower serial number.
>>>
>>>> so /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY
>>>> isn't examined.  Its mtime is 2025-01-29 05:23:18 +0000.
>>>
>>> That's slightly earlier than the last change in that file in the repo,
>>> which is 2025-01-29 13:36:52 +0000. The only change was to the record
>>> for sa-update.spamassassin.org. Aside from that, the file has not
>>> changed since 2023.
>>>
>> one of the mirrors listed in mirrors.updates.spamassassin.org has
>> switched to https.
>> A connection failure due to OpenSSL incompatible algorithms could be the
>> issue.
>>   Giovanni
>>
>>>>
>>>> I've added -D to the sa-update run by cron so will gather more debug
>>>> from the overnight run which generates the error above.
>>>
>>> Note that the message above is not an indication of any error.
>>>
>>>
>>>
>>>
>>> --
>>>    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: updates.spamassassin.org in DNS.

Posted by "Kevin A. McGrail" <km...@apache.org>.
Interesting. Well the in update data from that site is cryptographically
signed and verified.  Http is really fine in this case.

On Sat, Feb 15, 2025, 15:41 Giovanni Bechis <gi...@paclan.it> wrote:

> On Sat, Feb 15, 2025 at 01:45:46PM -0500, Bill Cole wrote:
> > On 2025-02-15 at 10:11:16 UTC-0500 (Sat, 15 Feb 2025 15:11:16 +0000)
> > Ralph Corderoy <sy...@spamassassin.apache.org>
> > is rumored to have said:
> >
> > > Hi Giovanni,
> > >
> > >>>      error: unable to refresh mirrors file for channel
> > >>>      updates.spamassassin.org, using old file
> > > ...
> > >> Which version is this server running ?
> > >
> > > 3.4.0.
> >
> > An update is in order. 3.4.0 has more serious bugs than I care to
> > enumerate here. If that's a "vendor branch" that has backports of key
> > updates (e.g. Debian or RedHat) then it will have many of those bugs
> > fixed, but if your OS is no longer getting updates, you may not have all
> > of the backported fixes.
> >
> > 4.0.1 is quite solid. The current 'trunk' version (will-be 4.0.2) has a
> > few additional fixes.
> >
> >
> > >> Could you try to run "sa-update -D" and post the results ?
> > >
> > > Thanks, that was the pointer I needed.  I've started poking around the
> > > source too.  The key thing when running ‘sa-update -D’ as root now
> > > is:
> > >
> > >     dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as
> > > 1923802
> > >     dbg: channel: current version is 1923802, new version is 1923802,
> > > skipping channel
> >
> > I believe that's the latest version, as of this morning.
> >
> > You can force a re-fetch by editing the channel's .cf file to have a
> > lower serial number.
> >
> > > so /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY
> > > isn't examined.  Its mtime is 2025-01-29 05:23:18 +0000.
> >
> > That's slightly earlier than the last change in that file in the repo,
> > which is 2025-01-29 13:36:52 +0000. The only change was to the record
> > for sa-update.spamassassin.org. Aside from that, the file has not
> > changed since 2023.
> >
> one of the mirrors listed in mirrors.updates.spamassassin.org has
> switched to https.
> A connection failure due to OpenSSL incompatible algorithms could be the
> issue.
>  Giovanni
>
> > >
> > > I've added -D to the sa-update run by cron so will gather more debug
> > > from the overnight run which generates the error above.
> >
> > Note that the message above is not an indication of any error.
> >
> >
> >
> >
> > --
> >   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: updates.spamassassin.org in DNS.

Posted by Giovanni Bechis <gi...@paclan.it>.
On Sat, Feb 15, 2025 at 01:45:46PM -0500, Bill Cole wrote:
> On 2025-02-15 at 10:11:16 UTC-0500 (Sat, 15 Feb 2025 15:11:16 +0000)
> Ralph Corderoy <sy...@spamassassin.apache.org>
> is rumored to have said:
> 
> > Hi Giovanni,
> >
> >>>      error: unable to refresh mirrors file for channel
> >>>      updates.spamassassin.org, using old file
> > ...
> >> Which version is this server running ?
> >
> > 3.4.0.
> 
> An update is in order. 3.4.0 has more serious bugs than I care to 
> enumerate here. If that's a "vendor branch" that has backports of key 
> updates (e.g. Debian or RedHat) then it will have many of those bugs 
> fixed, but if your OS is no longer getting updates, you may not have all 
> of the backported fixes.
> 
> 4.0.1 is quite solid. The current 'trunk' version (will-be 4.0.2) has a 
> few additional fixes.
> 
> 
> >> Could you try to run "sa-update -D" and post the results ?
> >
> > Thanks, that was the pointer I needed.  I've started poking around the
> > source too.  The key thing when running ‘sa-update -D’ as root now 
> > is:
> >
> >     dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as 
> > 1923802
> >     dbg: channel: current version is 1923802, new version is 1923802, 
> > skipping channel
> 
> I believe that's the latest version, as of this morning.
> 
> You can force a re-fetch by editing the channel's .cf file to have a 
> lower serial number.
> 
> > so /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY
> > isn't examined.  Its mtime is 2025-01-29 05:23:18 +0000.
> 
> That's slightly earlier than the last change in that file in the repo, 
> which is 2025-01-29 13:36:52 +0000. The only change was to the record 
> for sa-update.spamassassin.org. Aside from that, the file has not 
> changed since 2023.
> 
one of the mirrors listed in mirrors.updates.spamassassin.org has switched to https.
A connection failure due to OpenSSL incompatible algorithms could be the issue.
 Giovanni

> >
> > I've added -D to the sa-update run by cron so will gather more debug
> > from the overnight run which generates the error above.
> 
> Note that the message above is not an indication of any error.
> 
> 
> 
> 
> -- 
>   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: updates.spamassassin.org in DNS.

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 2025-02-15 at 10:11:16 UTC-0500 (Sat, 15 Feb 2025 15:11:16 +0000)
Ralph Corderoy <sy...@spamassassin.apache.org>
is rumored to have said:

> Hi Giovanni,
>
>>>      error: unable to refresh mirrors file for channel
>>>      updates.spamassassin.org, using old file
> ...
>> Which version is this server running ?
>
> 3.4.0.

An update is in order. 3.4.0 has more serious bugs than I care to 
enumerate here. If that's a "vendor branch" that has backports of key 
updates (e.g. Debian or RedHat) then it will have many of those bugs 
fixed, but if your OS is no longer getting updates, you may not have all 
of the backported fixes.

4.0.1 is quite solid. The current 'trunk' version (will-be 4.0.2) has a 
few additional fixes.


>> Could you try to run "sa-update -D" and post the results ?
>
> Thanks, that was the pointer I needed.  I've started poking around the
> source too.  The key thing when running ‘sa-update -D’ as root now 
> is:
>
>     dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as 
> 1923802
>     dbg: channel: current version is 1923802, new version is 1923802, 
> skipping channel

I believe that's the latest version, as of this morning.

You can force a re-fetch by editing the channel's .cf file to have a 
lower serial number.

> so /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY
> isn't examined.  Its mtime is 2025-01-29 05:23:18 +0000.

That's slightly earlier than the last change in that file in the repo, 
which is 2025-01-29 13:36:52 +0000. The only change was to the record 
for sa-update.spamassassin.org. Aside from that, the file has not 
changed since 2023.

>
> I've added -D to the sa-update run by cron so will gather more debug
> from the overnight run which generates the error above.

Note that the message above is not an indication of any error.




-- 
  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: updates.spamassassin.org in DNS.

Posted by Ralph Corderoy <ra...@inputplus.co.uk>.
Hi Giovanni,

> >      error: unable to refresh mirrors file for channel
> >      updates.spamassassin.org, using old file
...
> Which version is this server running ?

3.4.0.

> Could you try to run "sa-update -D" and post the results ?

Thanks, that was the pointer I needed.  I've started poking around the
source too.  The key thing when running ‘sa-update -D’ as root now is:

    dbg: dns: 0.4.3.updates.spamassassin.org => 1923802, parsed as 1923802
    dbg: channel: current version is 1923802, new version is 1923802, skipping channel

so /var/lib/spamassassin/3.004000/updates_spamassassin_org/MIRRORED.BY
isn't examined.  Its mtime is 2025-01-29 05:23:18 +0000.

I've added -D to the sa-update run by cron so will gather more debug
from the overnight run which generates the error above.

-- 
Cheers, Ralph.

Re: updates.spamassassin.org in DNS.

Posted by Giovanni Bechis <gi...@paclan.it>.
On 2/15/25 12:07 PM, Ralph Corderoy wrote:
> Hi,
> 
> Should updates.spamassassin.org still exist in DNS?  I'm seeing
> 
>      error: unable to refresh mirrors file for channel
>      updates.spamassassin.org, using old file
> 
> on an old server and observe that domain name doesn't exist.o
> 
> Perhaps it's just the old server being old, but the complaint has
> started in the last week.
> 
Which version is this server running ?
Could you try to run "sa-update -D" and post the results ?
  Thanks
   Giovanni