[Avcheck] Spamassassin & Avcheck with Postfix

Michael Tokarev mjt@tls.msk.ru
Fri, 06 Dec 2002 05:25:12 +0300


Martin Jaggi wrote:
> Hi 
> 
> I want to use avcheck together with spamassassin 2.41 as deamon (spamd) and
> spamc as client. 

Never tried spamassassin myself.

> First try in master.cf:
> avcheck   unix  -       n       n       -       5       pipe
>         flags=q user=avclient argv=/usr/local/bin/spamc -u avclient -e
> /var/spool/drweb/avcheck
>         -d /var/spool/drweb/./tst -s DrWeb:/var/spool/drweb/run/sock
>         -f ${sender} -S :10025 -- ${recipient}

I.e., spamassassin calls avcheck to reinject message back to postfix.
Cute.  Note that this speeds up reinjections significantly ;)

> This works, but if the sender address is longer as normal, then the
> reinjection to postfix fails:
> 
> Dec  6 00:01:05 mx1 postfix/smtpd[67526]: reject: RCPT from
> localhost.lan.ch[127.0.0.1]: 504 <sen>: Recipient address rejected: need
> fully-qualified address;
> from=<sentto-7469849-31-1039064023-onelist=jaggi.ch@returns.groups.yahoo.com
> 
>>to=<one>
> 
> to= should be <onelist@jaggi.ch>. I think the problem is postfix, it cuts
> the recipient parameter.

Hmm...  No, postfix does NOT cut random pieces in SMTP.  The problem is NOT
inside postfix.

I just looked at avcheck - no, it seems it should not cut recipients this
bad.  Verified this using sender address shown above and my address as
recipient.

I think the best is to try to find WHERE the bug - and yes this is a bug - is.
If you're able to do little programming, add a code to both spamc and avcheck
to log a command line in order to see who's doing this bad thing.

I'm sorry I can't help you here directly as I don't have a time to install
spamassassin, but I'm very interested to find out where the bug is.

BTW, can spamassassin's daemon accept email using SMTP?  I.e., why
there is a need to run a program (spamc) in order to contact with
spamd?

/mjt