[Avcheck] Spamassassin & Avcheck with Postfix

Martin Jaggi martin.jaggi@lan.ch
Fri, 6 Dec 2002 00:47:09 +0100


Hi 

I want to use avcheck together with spamassassin 2.41 as deamon (spamd) and
spamc as client. 

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}

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.

Now I use this:

localhost:10025 inet n  -       n       -       -       smtpd -o
content_filter=spamss

avcheck   unix  -       n       n       -       5       pipe
        flags=q user=avclient argv=/var/spool/drweb/avcheck
        -d /var/spool/drweb/./tst -s DrWeb:/var/spool/drweb/run/sock
        -f ${sender} -S :10025 -- ${recipient}

spamss  unix    -       n       n       -       5       pipe
        flags=q user=avclient argv=/usr/local/bin/spamc -u avclient -e
/usr/local/sbin/sendmail -i
        -f ${sender} -- ${recipient}

Has anyone found a better solution ?

Regards,

Martin Jaggi
Network Engineer, CCNA, Compaq ASE
______________________________________________________________________
martin.jaggi@lan.ch, phone: +41(0)32 327 3311, fax: +41(0)32 327 3310
LAN Services AG,  Bahnhofplatz 6,  2501 Biel/Bienne, Switzerland

There are only 10 types of people in the world:
those who understand binary, and those who don't.