Thank you Victor for taking the time to answer my questions. Please see
respond inline

On 24 January 2011 16:46, Victor Duchovni <victor.ducho...@morganstanley.com
> wrote:

<snip>


> > I have postfix setup to deliver all emails to @my-domain.com to an smrsh
> > script.
>
> It is not clear why forgetting who the message was really sent to is a
> good idea with messages to this domain. Can you explain what you are
> really trying to achieve and why?
>

This is because the script reads all email addresses in "To:" and "Cc:"
header
and then perform action on bob@ and charles@.

When it receives 2 emails, and both have the address of bob and  charles,
the script ended up executing action on bob and charles twice. By the same
logic,
if there are 3 recipients (same domain) in one email, postfix will deliver
to the script
3 times and cause it to execute the action thrice to each user.

<snip>

The queue manager does not run scripts, it schedules delivery agents to
> deliver email to all the recipients to which it is queued.
>
>    - Some delivery agents can process multi-recipient messages,
>      these include pipe(8) and smtp(8), but not local(8). The number
>      of recipients per-delivery is bounded by the transport's recipient
>      limit.
>
>    - Some delivery agents can run scripts, e.g. local(8) and pipe(8).
>
> So you can route the entire domain to pipe(8), or arrange for the queued
> message to have just one recipient.
>

That would be a good alternative, if I can arrange for the email to queue
one message
to one recipient. Will that overwrite the "To:" header accordingly? If so,
do you have a
pointer on how to do this?

Kind regards,
Polo


> --
>        Viktor.
>

Reply via email to