13 msgHOLD queue GUI
4 msgSpam being sent from our mail server
3 msgcatch-all mail address
4 msgsending mail is working but only local.
8 msg2 postfix boxes as frontservers for MS Exchange...
3 msgdelayed delivery
2 msglibspf2 and policyd
3 msgBypassing content_filter for trusted networks
8 msgChanging UUCP-Sytsle-Adresses to Domain-Style-A...
9 msgList of main.cf options
6 msg'too many errors after RSET' with Outlook
2 msgVirtual Users w/ LDAP and Authentication

Multiple content filters?
\ Terry Carmen (24 Sep 2007)
. \ Victor Duchovni (24 Sep 2007)
. . \ Terry Carmen (24 Sep 2007)

2 msgI don't know what to make of this
3 msgPostfix and Dspam, point me in the right direct...
14 msgPostfix in base FreeBSD system
4 msgWeird 'Connection timed out while sending messa...
4 msgrewriting and redirecting incoming address
4 msgmaster.cf config question
7 msgLDAP smtpd_recipient_restrictions
Subject:Multiple content filters?
Group:Postfix-users
From:Terry Carmen
Date:24 Sep 2007


 
I'm trying to run two content_filters without much success and was
wondering if anybody had any ideas?

So far I've tried:

smtp inet n - n - - smtpd -o
content_filter=filter

filter unix - n n - - pipe
argv=/usr/local/bin/AddMsgSizeHeader "X-ActualMessageSize" | user=filter
argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Which makes AddMsgSizeHeader complain about it's arguments (it gets fed
everything up to EOL)



As well as:
smtp inet n - n - - smtpd -o
content_filter=AddMsgSize -o content_filter=filter

filter unix - n n - - pipe
user=filter argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f
${sender} ${recipient}

AddMsgSize unix - n n - - pipe
user=filter argv=/usr/local/bin/AddMsgSizeHeader "X-ActualMessageSize"


which ignores the second filter and considers the message to be
delivered once it's been through the first filter.

What I'm trying to do is feed the message though AddMsgSize first, which
just adds a header containing the message size, then run it through
filter, which feeds it to spamassassin.

Anybody have any thoughts?

Thanks!

Terry





© 2004-2008 readlist.com