Bug#1034347: spamd timeout after reboot: dns: bad dns reply: bgread: recv() failed

2023-04-20 Thread Martin Michlmayr
* Noah Meyerhans  [2023-04-20 09:31]:
> > Can you please add this fix as an update to bookworm.
> 
> Requested an unblock for bookworm at 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034639

Thank you, that's an excellent summary.  Thanks for taking the time
to fix and write this!

-- 
Martin Michlmayr
https://www.cyrius.com/



Bug#1034347: spamd timeout after reboot: dns: bad dns reply: bgread: recv() failed

2023-04-20 Thread Noah Meyerhans
On Wed, Apr 19, 2023 at 07:50:32AM +0800, Martin Michlmayr wrote:
> * Martin Michlmayr  [2023-04-13 18:23]:
> > A Google search has led to:
> > https://bugzilla.redhat.com/show_bug.cgi?id=1985587
> > The proposed patch seems relevant to Debian's spamd service file too:
> > https://src.fedoraproject.org/rpms/spamassassin/pull-request/12#request_diff
> 
> I've now tested this change to the systemd file and it makes it work
> as expected.
> 
> Can you please add this fix as an update to bookworm.

Requested an unblock for bookworm at 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034639



Bug#1034347: spamd timeout after reboot: dns: bad dns reply: bgread: recv() failed

2023-04-18 Thread Martin Michlmayr
* Martin Michlmayr  [2023-04-13 18:23]:
> A Google search has led to:
> https://bugzilla.redhat.com/show_bug.cgi?id=1985587
> The proposed patch seems relevant to Debian's spamd service file too:
> https://src.fedoraproject.org/rpms/spamassassin/pull-request/12#request_diff

I've now tested this change to the systemd file and it makes it work
as expected.

Can you please add this fix as an update to bookworm.

-- 
Martin Michlmayr
https://www.cyrius.com/



Bug#1034347: spamd timeout after reboot: dns: bad dns reply: bgread: recv() failed

2023-04-13 Thread Martin Michlmayr
Package: spamd
Version: 4.0.0-4
Severity: important

After upgrading to bookworm, I'm getting timeouts from spamd.  This is
solved by:

sudo systemctl restart spamd.service

I have to do this after each reboot.

getmail tells me that procmail (which calls "spamc") time outs:

Delivery error...  child operation error: waiting child pid 24988 timed out)

The log show:

2023-04-13T17:05:45.739957+08:00 jirafa spamd[2629]: check: (run_eval) exceeded 
time limit, skipping further tests
2023-04-13T17:05:45.742269+08:00 jirafa spamd[2629]: async: aborting after 
298.682 s, past original deadline: URIBL, 
A/braze.eu.dob.sibl.support-intelligence.net, rules: URIBL_RHS_DOB
2023-04-13T17:05:45.742424+08:00 jirafa spamd[2629]: async: aborting after 
298.669 s, past original deadline: URIBL, 
A/www.ajwernick.co.uk.multi.surbl.org, rules: URIBL_MW_SURBL, URIBL_CR_SURBL, 
URIBL_WS_SURBL, URIBL_PH_SURBL, SURBL_BLOCKED, URIBL_ABUSE_SURBL
...
2023-04-13T17:05:46.076924+08:00 jirafa spamd[2629]: dns: sendto() to 
[127.0.0.1]:53 failed: Connection refused, failing over to [::1]:53
2023-04-13T17:05:46.077523+08:00 jirafa spamd[2629]: dns: sendto() to [::1]:53 
failed: Connection refused, failing over to [127.0.0.1]:53
2023-04-13T17:05:46.077901+08:00 jirafa spamd[2629]: dns: bad dns reply: 
bgread: recv() failed: Connection refused at 
/usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 752,  line 116.
2023-04-13T17:05:46.079571+08:00 jirafa spamd[2629]: dns: bad dns reply: 
bgread: recv() failed: Connection refused at 
/usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 752,  line 116.
2023-04-13T17:05:49.092655+08:00 jirafa spamd[2629]: dns: bad dns reply: 
bgread: recv() failed: Connection refused at 
/usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 752,  line 116.

A Google search has led to:
https://bugzilla.redhat.com/show_bug.cgi?id=1985587
The proposed patch seems relevant to Debian's spamd service file too:
https://src.fedoraproject.org/rpms/spamassassin/pull-request/12#request_diff

(I haven't tested it, though.)

-- 
Martin Michlmayr
https://www.cyrius.com/