Mailing List Archive

Spamc - connection refused
Hello

never found the solutions for this..



Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II



Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed,
retrying (#1 of 3): Connection refused

Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed,
retrying (#2 of 3): Connection refused

Sep 28 15:11:24 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed,
retrying (#3 of 3): Connection refused



Sep 28 15:11:24 nmail spamc[4525]: connection attempt to spamd aborted after
3 retries

Sep 28 15:11:24 nmail postfix/pickup[4386]: 2B9D240051: uid=116
from=<E-MailAddress>

--



>>ii spamc 3.4.2-1+deb10u3 amd64 Client for
SpamAssassin spam filtering daemon

>>ii postfix 3.4.14-0+deb10u1 amd64 High-performance mail
transport agent



/etc/default/spamsassassin

OPTIONS="--nouser-config --create-prefs --max-children 5 --helper-home-dir
/var/lib/spamassassin --username=debian-spamd --groupname=debian-spamd
--siteconfigpath /etc/spamassassin

-socketpath=/var/spool/postfix/spamass/spamd.sock --socketowner=debian-spamd
--socketgroup=debian-spamd --socketmode=0660"



thanks
Re: Spamc - connection refused [ In reply to ]
On 9/28/2021 9:30 AM, mauric@gmx.ch wrote:
>
> Hello
>
> never found the solutions for this?.
>
> Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II
>
> *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1
> failed, retrying (#1 of 3): Connection refused*
>
> *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1
> failed, retrying (#2 of 3): Connection refused*
>
> *Sep 28 15:11:24 nmail spamc[4525]: connect to spamd on 127.0.0.1
> failed, retrying (#3 of 3): Connection refused*
>
> Sep 28 15:11:24 nmail spamc[4525]: connection attempt to spamd aborted
> after 3 retries
>
> Sep 28 15:11:24 nmail postfix/pickup[4386]: 2B9D240051: uid=116
> from=<E-MailAddress>
>
> --
>
> >>ii? spamc???????? 3.4.2-1+deb10u3 amd64????????????? Client for SpamAssassin spam filtering daemon
>
> >>ii? postfix??????? 3.4.14-0+deb10u1 amd64?????????? High-performance mail transport agent
>
> /etc/default/spamsassassin
>
> OPTIONS="--nouser-config --create-prefs --max-children 5
> --helper-home-dir /var/lib/spamassassin --username=debian-spamd
> --groupname=debian-spamd --siteconfigpath /etc/spamassassin
>
> ?socketpath=/var/spool/postfix/spamass/spamd.sock
> --socketowner=debian-spamd --socketgroup=debian-spamd --socketmode=0660"
>
> thanks
>
1) Make sure spamd is running:
netstat -an
2) Make sure firewall rules allow the connection.

-- Jared Hall
Re: Spamc - connection refused [ In reply to ]
On 9/28/2021 9:30 AM, mauric@gmx.ch wrote:
>
> Hello
>
> never found the solutions for this?.
>
> Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II
>
> *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying
> (#1 of 3): Connection refused*
>
> *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying
> (#2 of 3): Connection refused*
>
> *Sep 28 15:11:24 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying
> (#3 of 3): Connection refused*
>

This looks like spamc is trying to connect via a network port.

> **
>
> Sep 28 15:11:24 nmail spamc[4525]: connection attempt to spamd aborted after 3 retries
>
> Sep 28 15:11:24 nmail postfix/pickup[4386]: 2B9D240051: uid=116 from=<E-MailAddress>
>
> --
>
> >>ii? spamc???????? 3.4.2-1+deb10u3 amd64????????????? Client for SpamAssassin spam filtering daemon
>
> >>ii? postfix??????? 3.4.14-0+deb10u1 amd64?????????? High-performance mail transport agent
>
> /etc/default/spamsassassin
>
> OPTIONS="--nouser-config --create-prefs --max-children 5 --helper-home-dir
> /var/lib/spamassassin --username=debian-spamd --groupname=debian-spamd
> --siteconfigpath /etc/spamassassin
>
> ?socketpath=/var/spool/postfix/spamass/spamd.sock --socketowner=debian-spamd
> --socketgroup=debian-spamd --socketmode=0660"
>

But you are running spamd with a unix socket.

You should either change spamc to use the socket, or change spamd to listen on the
network port.

--
Bowie
Re: Spamc - connection refused [ In reply to ]
On Tue, 2021-09-28 at 15:30 +0200, mauric@gmx.ch wrote:
> Hello
>
> never found the solutions for this..
>
The error messages aren't a lot of use without also knowing:

- what arguments are you using on the spamc command line?
- where is the spamd instance you're trying to connect to, 
i.e. is it on localhost or somewhere else??
- what port is spamd listening on?

I run spamc and spamd on the same machine (i.e. spamd is on localhost)
and default the spamc arguments that describe how it connects to spamd,
so presumably you're doing something different.

Martin