David Somers writes:

For ages I've been running my email through regular spamassassin... the appropriate bits of my maildroprc being:

import SENDER

if ($SENDER ne "")
{
        FROM=$SENDER
}
else
{
        FROM="unknown"
}

CLEAN_FROM=escape($FROM);

if ($SIZE < 65536)
{
        exception {
                xfilter "/usr/bin/spamassassin"
        }
}

Since the amound of spam I'm getting has been on the increase, I thought I would change to running spamassassin in spamd/spamc mode.

So... changed maildroprc to do xfilter "/usr/bin/spamc"

But now its going horribly wrong.


Jan 17 16:49:15 caslon courieresmtpd: started,ip=[64.4.35.19]
Jan 17 16:49:16 caslon courierd: newmsg,id=0022905E.43CD11FC.00002371: dns; hotmail.com (bay12-f19.bay12.hotmail.com [64.4.35.19]) Jan 17 16:49:16 caslon courierd: started,id=0022905E.43CD11FC.00002371,from=<[EMAIL PROTECTED]>,module=local,[EMAIL PROTECTED]/home/mail/XXX.com/dsomers!!,addr=<[EMAIL PROTECTED]> Jan 17 16:49:16 caslon courierd: Waiting. shutdown time=none, wakeup time=none, queuedelivering=1, inprogress=1 Jan 17 16:49:16 caslon courierlocal: id=0022905E.43CD11FC.00002371,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: getpwuid() failed: Success Jan 17 16:49:16 caslon courierlocal: id=0022905E.43CD11FC.00002371,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: maildrop: error writing to filter. Jan 17 16:49:16 caslon courierlocal: id=0022905E.43CD11FC.00002371,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,size=1710,success: Message delivered.
Jan 17 16:49:16 caslon courierd: completed,id=0022905E.43CD11FC.00002371


Its strange that getpwuid is failing in courierlocal, since in the previous

No, it's not.

line, courier correctly knows the location (yep: I'm doing virtual hosting here).

The 'getpwuid() failed' message is coming from spamc. The next logged message, from maildrop, is the key.

You're invoking spamc inside an exception block. spamc bombs out with this message, maildrop correctly detects and logs this error, but because you are ignoring exception the message is considered to be delivered succesfully.

Something is broken in spamc.  You should look in that direction.


Attachment: pgpdMUV3ru8WW.pgp
Description: PGP signature

Reply via email to