On 18.10.21 10:53, Linkcheck wrote:
I am setting up a new postfix/dovecot/spamassassin server to replace
an outdated one. It works correctly but I have two outstanding
warnings in the logs that I would like to eliminate if possible. I
have trawled through dozens of postings online but found no resolution
for either warning. The server is debian 10 buster.
1) "spamd: handle_user (userdir) unable to find user: 'dave'"
Postfix is using dovecot to resolve users but 'dave' is not a user.
spamd by default tries to find recipients' home directories and user
preferences in them.
try passing following option to spamd:
-x, --nouser-config, --user-config
The processing completes without it but I don't know what the process
is trying to do with the user that causes this message, nor how to
resolve it. I also have this on the old server and was advised to
ignore it but this seems ill-advised: if there is a message it's there
for a purpose or is in error.
2) "spamc: connect to spamd on ::1 failed, retrying (#1 of 3):
Connection refused"
This warning appears on receipt of a message. I do not have this
message on the old server. I believe spamc is trying to connect to
spamd using ipv6, which is turned off in postfix and, as far as I can
determine, in spamassassin as well.
The options in /etc/default/spamassassin are:
OPTIONS="--create-prefs -4 --max-children 5 --helper-home-dir
/var/lib/spamassassin -u debian-spamd"
invalid --helper-home-dir option:
-H directory, --helper-home-dir=directory
I have tried adding options to make:
OPTIONS="--create-prefs -4 --ipv4-only --max-children 5
--helper-home-dir /var/lib/spamassassin -u debian-spamd -d 127.0.0.1"
spamd (server) options may not help with spamc. Especially not when you
instruct spamd to listen on ipve address and spamc tries to connect ipv6
address
This made no difference. I also have /etc/default/spamass-milter with
the options:
OPTIONS="-u spamass-milter -i 127.0.0.1 -4"
In postfix master.cf I have:
spamfilter unix - n n - - pipe
flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender}
${recipient}
you don't seem yo use spamass-milter, you should probably.
with /usr/bin/spamfilter.sh containing:
SENDMAIL=/usr/sbin/sendmail
SPAMASSASSIN=/usr/bin/spamc
MAX_MESSAGE_SIZE="-s 8000000"
logger <<<"Spam filter piping to SpamAssassin, then to: $SENDMAIL $@"
${SPAMASSASSIN} ${MAX_MESSAGE_SIZE} | ${SENDMAIL} "$@"
exit $?
from spamc man page:
-d host[,host2], --dest=host[,host2]
In TCP/IP mode, connect to spamd server on given host (default:
localhost). Several hosts can be specified if separated by commas.
obviously "localhost" resolves to ::1 where spamd does not listen.
make spamd listen on ::1 or instruct spamd to connect to 127.0.0.1
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Atheism is a non-prophet organization.