> -----Original Message-----
> From: Steve Halligan [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:02
> To: Spamassassin-Talk (E-mail)
> Subject: [SAtalk] Postfix as an MTA with SA -- forwarding spam
> 
> 
> I am running Postfix as a gateway MTA (no local delivery) and 
> am using SA to
> mark spam as it passes through.

<Aol>Me too</Aol>
 
> It is my understanding that the various Procmail tricks one can do to
> accomplish this do not apply when Postfix is merely a Gateway 
> MTA.  Correct?

You can setup a content filter that works well when the mailserver is a
gateway (postfix is
really good for this kind of thing).
I currently use a modified copy of spamcheck.py that checks the mail, then
reroutes it
to our spamtrap mailbox when it detects the spam.  Previously I've used
amavisd, plus other
scripts, but fell out with that for various reasons.

My master.cf has:

spamcheck unix  -       n       n       -       -       pipe
    flags=R user=mail argv=/usr/local/bin/spamcheck.py -s${sender}
-r${recipient} -llocalhost:10025
10025     inet  n       -       n       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8

And my main.cf has:

content_filter = spamcheck

That's pretty much it, except spamcheck.py is modified to relay using smtp
rather than lmtp, and to redirect
spam (email if you want a copy).

I've stopped bothering with the virus checking because it's very CPU
intensive, and I haven't had a positive hit for 3 months
since configuring postfix to bounce executable attachments (since 'virus' is
a subset of 'executable' by dropping one you
pretty much eliminate the other).

Tony



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to