OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: virtual delivery agent, multiple maildirs

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Sun Oct 02 2005 - 10:43:18 CDT


On Sun, Oct 02, 2005 at 03:55:38PM +0200, mouss wrote:

> >is there any patch available that would make vda deliver to every
> >maildir resulting from database query, not only single one like it
> >does now?
>
> why not use an MDA such as maildrop? this way you can do whatever you want.
>

Because this would be wrong. A delivery agent performing final delivery
to mailboxes must do so *atomically* for each queue file recipient,
because Postfix will either consider the delivery successful or failed
for each queue file recipient, there is no "half-delivered" state.

If the delivery involves storing the message in multiple mailboxes, there
is a strong possibility of partial success (quotas, file size limits, ...)
so each mailbox needs a separate recipient in the queue file, i.e. use
virtual(5) to expand and then virtual(8) or similar to do 1-to-1 delivery.

--
        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:majordomopostfix.org?body=unsubscribe%20postfix-users>

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.