On Thu, Nov 13, 2008 at 04:53:54PM -0500, Rob Klingsten wrote:

> >>I've got a problem and I can't seem to find the cause. Basically, if I 
> >>address a message with:
> >>
> >>TO: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> >>
> >>Each recipient gets the same number of copies of the message as there 
> >>are recipients... so 3 recipients, they each get 3 copies.  If it was 10 
> >>recipients, there'd be 10 copies each, etc.
> >>
> >>I'm using Postfix 2.5.3 and virtual users in Mysql.  I'm not doing 
> >>anything really strange, most configuration is default.  The only 
> >>'strange' thing is I'm handing incoming mail to dspam 3.8.0 as a content 
> >>filter and then handing it back into Postfix via the sendmail command 
> >>and delivering it to virtual users via maildrop.
> >
> >There's your problem. The sendmail re-injection undoutedly is broken and
> >is mis-routing mail to header recipients... Try a "Bcc:" that user will
> >get no mail at all, but the "To/Cc:" users will get an extra copy.
> >
> >This is really bad, DO NOT use "sendmail -t" to re-inject mail, instead
> >send to the envelope recipient(s) which are known via command-line
> >arguments or similar non-header context.
> 
> Ok, just when you think you have it all figured out ... :(
> 
> Thank you very much for the info, I will go back to the drawing board 
> for my delivery stage from dspam.  Thought it was all working well.

If dspam runs for one user at a time, when the mail goes back for
delivery send it to that user, not to anyone in the headers...

If dspam processes multiple users in parallel, it must capture the
envelope and pass it back to sendmail(1). DO NOT lose the envelope
sender, the "From:" header is not the envelope sender. Dspam must
present the envelope sender to the sendmail re-injection command.

-- 
        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