On 10/10/2012 11:04 AM, Paul Schmehl wrote: > I think I may not what's wrong. Here's the master.cf settings: > > In reading the docs it says to comment out the smtp line and uncomment > the one that routes to postscreen. I have both uncommented. > > # grep -v "#" /usr/local/etc/postfix/master.cf | grep smtp > smtp inet n - n - - smtpd -o > content_filter=filter:dummyr > smtps inet n - n - - smtpd > -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes > smtp unix - - n - - smtp > bsmtp unix - n n - - pipe > flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop > $recipient > relay unix - - n - - smtp > smtp inet n - n - 1 postscreen > smtpd pass - - n - - smtpd > > The problem is, I also want to route through filter.sh, so how do I do > that? > You comment out the first line. Then, do this on the pass line: smtpd pass - - n - - smtpd -o content_filter=filter:dummyr
This is all documented in the POSTSCREEN_README. Until you see postscreen lines in your syslog, it's not doing anything. The ignore actions will let you check the log for what would be blocked. Then you can use the enforce action to get results. Brian