Page 1 of 1

spamc[5442]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused

Posted: Thu Jan 20, 2022 10:52 am
by mister_v
I have several of the following meesages in /var/log/mail.err.

Code: Select all

 spamc[5442]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
anyone know the cause of this ?

Re: spamc[5442]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused

Posted: Thu Jan 20, 2022 5:01 pm
by chris
you are trying to connect to the spamd daemon on IPv6.
Probably only IPv4 is working.

configure spamassassin to only use IPv4
Add in file /etc/mail/spamassassin/spamc.conf:

Code: Select all

-d 127.0.0.1
This worked for me.