From: Paul Hutchings
Sent: 26 February 2004 20:28
To: '[EMAIL PROTECTED]'
Subject: RE: Limiting outbound SMTP spam checks
Dean,
Tried to mail you but got this -
<[EMAIL PROTECTED]>: host lists.onenw.org[216.162.198.201] said: 554 <relay.mira.co.uk>: Helo command rejected: Access denied (in reply to RCPT TO command)
kinda curious why since we're "nice n clean" but hey your server your rules :-)
Take a look at http://www.advosys.ca/papers/printable/postfix-filtering.html - the trick is to not call the content filter from master.cf, but to call it using check_recipient_access within smtpd_recipient_restrictions in the postfix main.cf, this will let you specify which domains you want to call spamassassin for.
There may be other ways of doing it but I know this works for us on a relay in our DMZ handling all mail in and out.
regards,
Paul
-----Original Message-----
From: Dean Ericksen [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2004 20:08
To: [EMAIL PROTECTED]
Subject: Limiting outbound SMTP spam checks
I have a non-traditional network architecture - I need to run spamassassin against all inbound SMTP (generally messages to sympa email lists), but not invoke spamd when sending outbound messages. I realize this must be easy, but I can't get my head around it right now.
The smtp entry in my (postfix) "master.cf" file is:
smtp inet n - y - - smtpd
-o content_filter=postfixfilter:
postfixfilter unix - n n - - pipe
flags=Rq user=postfixfilter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}
...and "/usr/bin/postfixfilter" looks like:
#!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?
Any thoughts appreciated.
-Dean
ONE/Northwest
