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. 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"
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"
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}
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 $?
This has been copied from the old server.
I would appreciate advice on how to remove these two errors. What other
information do you require, please?
--
Dave Stiles
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. 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"
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"
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}
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 $?
This has been copied from the old server.
I would appreciate advice on how to remove these two errors. What other
information do you require, please?
--
Dave Stiles