> 2009/7/22 Jari Fredriksson <ja...@iki.fi> > >> Hi all, >> I've got a firewall with antispam functionalities which >> already adds X.... headers. >> I need to know if I can bypass SpamAssassin checks when >> it finds specific headers. > > It depends on how you call SpamAssassin. If from procmail > or maildrop, that is easy to arrange. > > In my installation, SA is called by Postfix. Any idea? > Thanks in advance. >
Dunno. My postfix calls maildrop on delivery, and that calls SpamAssassin. It's easy to program for maildrop. If you postfix calls SpamAssasin directly as configured in /etc/postfix/master.cf I have no ideas. However, when 1st took SpamAssassin in use, I configure in /etc/postfix/master.cf just like you do, and I found it dangerous. It first worked as announced, but something, some day, made it bounce ALL my incoming email to the sender. In addition to deliver it to me. Hazardous. I at once removed SpamAssassin from /etc/postfix/master.cf and moved SA to maildrop. /etc/postfix/master.cf can not have logic. It always calls SpamAssasin, and if you need logic, you need something else: procmail or maildrop.