Header for message size?
\ Terry Carmen (20 Sep 2007)
. \ Victor Duchovni (20 Sep 2007)
. . \ Noel Jones (20 Sep 2007)
. . . \ Victor Duchovni (20 Sep 2007)
. . . . \ Duane Hill (20 Sep 2007)
. . . . . \ Victor Duchovni (20 Sep 2007)
. . . . . \ (Wietse Venema) (20 Sep 2007)
. . . . . . \ Noel Jones (20 Sep 2007)
. . . . . . . \ Victor Duchovni (20 Sep 2007)
. . . . . . . \ Terry Carmen (21 Sep 2007)
. . . . . . . . \ Terry Carmen (21 Sep 2007)
. . . . . . . . \ mouss (21 Sep 2007)
. . . . . \ Terry Carmen (20 Sep 2007)
. . . . . . \ Victor Duchovni (20 Sep 2007)
. . . . . . \ mouss (20 Sep 2007)

3 msgaddress rewriting
2 msgaddress_verify_relayhost and relay_domains
5 msgpflogsumm reports
11 msgChanging Queue IDs
3 msganother authentication failure( with sasl)
2 msgBypass Spam checks for certain destinations
11 msgPostfix 'too nice' with content_filter
7 msgprofiling a milter (dkim in particular)
7 msgspammers tacking on headers how to block?
7 msg[Fwd: Re: RFC 821]
1 msgRe:
4 msg(No Subject)
2 msgRFC 821
7 msgSuspending mail delievery to a specific user
2 msgRe: OT - massive newsletter
12 msgList management issue: possibly Off Topic
2 msgbad protocol error Testing SASL configuration
2 msgwarning: smtpd_sasl_auth_enable is true, but SA...
1 msgQuota Problem
Subject:Re: Header for message size?
Group:Postfix-users
From:mouss
Date:21 Sep 2007


 
Terry Carmen wrote:
> 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