Hello everybody,

Please excuse my probably rather novice question but I couldn't find any hint 
on this. The document at http://www.postfix.org/SMTPD_PROXY_README.html says it 
should be possible to reject an email with a before-queue content filter ... 
but how would I exactly accomplish this?

What I want to do is reject what spamassassin considers spam (ok, I know the 
cons, but I really want to do it this way), so what I have in my master.cf is:

smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=spamfilter:dummy
spamfilter unix -       n       n       -       -       pipe
  flags=Rq user=spamfilter argv=/.../spamfilter -f ${sender} -- ${recipient}

And in spamfilter I have this:

#!/bin/bash
/usr/bin/spamc | /usr/lib/sendmail -i "$@"
exit $?

So how would I have to change my spamfilter in order to have Postfix reject 
what spamassassin considers spam? A header check on /X-Spam-Level: \*{5,}/ does 
not work; as in this step Postfix has already accepted the email; it would 
generate backscatter instead, not what I want...

Thanks a lot for some advice!

Reply via email to