| |||||||||||||||||||||||||||||||
|
> OK. > > I finished a little filter that figures out how big the message is, then > prepends the header I need as: > > X-MessageSize: **************** > > however I'm stuck on integrating it with Postfix, and would appreciate a > little direction. > > Right now, I have: > > smtp inet n - n - - smtpd -o content_filter=filter > . . . > filter unix - n n - - pipe > user=filter argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f > ${sender} ${recipient} > > Which works nicely. > > However I tried: > > filter unix - n n - - pipe > user=filter argv= /usr/local/bin/AddMsgSizeHeader > "X-MessageSize"|/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} > ${recipient} > > which doesn't work. > > I'm assuming this is because the pipe requires a shell, and postfix > isn't using one. > > Is there a way to process the message though the new filter, either > before or after it's been through spamc? let your AddMsgSizeHeader pipe the message to spamc. In short, put the "| /sur/bin/spamc ...." part in your script/program. PS. There should be no space after "argv=" > > Also, in case anybody might find it useful, I released the source code > for the filter to the Public Domain and put it up on my website at > http://cnysupport.com/ > > Thanks! > > Terry > > > >
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com