On Wed, Dec 03, 2008 at 01:49:49PM -0800, David Jonas wrote:

> > If they do it correctly, perhaps you have content filters or down-stream
> > SMTP senders that are broken. What software other than Postfix do
> > the messages traverse before forwarding?
> >

> I found the culprit.
> 
> To get an X-Original-To header on the forwarded emails they get run
> through pipe and back to postfix with smtpclient
> (http://www.freebsdsoftware.org/mail/smtpclient.html):
> 
> xorig     unix  -       n       n       -       -      pipe
>   flags=Ohuq user=smtpclient argv=/usr/bin/smtpclient
>   -w -S 127.0.0.1 -P 4525 -f ${sender} -- ${recipient}

The main problem is that you can't preserve SMTP error reporting
semantics with multiple recipients, as pipe(8) deliveries either
succeed for all recipients or fail for all, so you have to set
"xorig_destination_recipient_limit = 1". This is not a win, but
at low volumes, you can get away with it by adding the "." flag:

xorig     unix  -       n       n       -       -      pipe
    flags=.Ohuq user=smtpclient argv=/usr/bin/smtpclient
    -w -S 127.0.0.1 -P 4525 -f ${sender} -- ${recipient}

> We also use smtpclient to pass the messages back from spamc to a special
> port.
> 
> A quick test showed that smtpclient was stripping that dot. I sincerely
> apologize for the noise, but I did learn a lot here. Thanks for the help.
> 
> Any other options besides smtpclient to pass the message back to a
> different port? This is already a multi-instance setup, one for regular
> incoming mail/backup mx'ing and another for filtering the local and
> forwarding mail.

A policy service can prepend a header.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to