Dear everyone,

    I wonder if I have some misconfiguration in my SA set-up, and if
someone would be able to send me off in the right direction, or has seen
it before.  As shown below, some messages are scanned by SA with just
the user name, while others are scanned using the full login.

Fri Mar 11 11:28:56 2011 [2252] info: spamd: clean message (0.0/6.0) for
bob.pieters:5002 in 1.2 seconds, 22828 bytes.
Fri Mar 11 11:28:57 2011 [2253] info: spamd: clean message (-0.0/5.0)
for bob.piet...@klunky.co.uk:5002 in 1.1 seconds, 22390 bytes.
Fri Mar 11 11:40:59 2011 [2252] info: spamd: clean message (0.0/6.0) for
bob.pieters:5002 in 1.4 seconds, 51665 bytes.
Fri Mar 11 11:41:00 2011 [2253] info: spamd: clean message (0.0/5.0) for
bob.piet...@klunky.co.uk:5002 in 1.1 seconds, 51214 bytes.
Fri Mar 11 11:51:30 2011 [2252] info: spamd: clean message (1.1/6.0) for
bob.pieters:5002 in 6.3 seconds, 11829 bytes.
Fri Mar 11 11:58:05 2011 [2252] info: spamd: clean message (0.0/6.0) for
bob.pieters:5002 in 1.3 seconds, 28802 bytes.
Fri Mar 11 11:58:07 2011 [2253] info: spamd: clean message (-0.0/5.0)
for bob.piet...@klunky.co.uk:5002 in 1.2 seconds, 28198 byt

SA runs with these options (taken from the /etc/default/spamassassin
file on Debian Squeeze):-

OPTIONS="--create-prefs -x -q --max-children 3 --sql-config 
--nouser-config --username spamd --helper-home-dir ${SAHOME} -s
/var/log/spamd.log --virtual-config-dir=${SAHOME}/users/%d/%u"

I noticed that erroneous directories are created via dovecot in
/var/vmail like:
/var/vmail/bob.piet...@klunky.co.uk/
/var/vmail/bob.pieters/

however, all directories created sans the domain name (user name only)
remain empty. I have deleted these now and again, and eventually these
are re-created.  I imagine that its dovecot that is responsible for
creating these directories, but is it SA that is passing the wrong email
address?  SA runs as a milter, and as a pipe from postfix into dovecot:
# grep spam /etc/postfix/master.cf
dovecot-spamass   unix  -       n       n       -       -       pipe
    flags=DRhu user=vmail:vmail argv=/usr/bin/spamc -u ${recipient} -e
/usr/lib/dovecot/deliver -d ${recipient}

Does anyone know why this would happen. I've noticed it for quite
sometime, but never got around to sorting it out.  I dpn't know if this
is really a problem with my SA set-up, or a postfix or dovecot
mis-configuration.  Apologies for one of those long-winded questions on
a Friday afternoon.

Best wishes, S.

Reply via email to