On Mon, Sep 20, 2010 at 12:02 PM, Jeroen Geilman <jer...@adaptr.nl> wrote:
> On 09/20/2010 08:37 PM, Yang Zhang wrote:
>>
>> Can postfix be configured to guarantee durable email receipt?
>>
>> E.g., can it be sure to fsync the mbox/Maildir file and/or directory
>>
>
> No, but it does guarantee durability from the receiving SMTP session to the
> delivering process.
> This CAN be delivery to a mailbox.
>
>> before it acknowledges successful receipt of an email?
>>
>
> That would be the end of the SMTP session.
> No MTA guarantees final mail delivery *before* returning the SMTP status,
> that would make queueing a travesty of epic proportions.
> You want queueing.
> Yes, really, you do .

That's fine. My main concern (worded poorly) was preventing data
loss/allowing for eventual delivery, not ensuring final mbox/Maildir
delivery. I just assumed there was no intermediate queuing.

Since there's queuing, does Postfix also handle resuming delivery on recovery?

Just to be clear, if I have this Maildir in my mailbox postmap:

  j...@mydomain.com joe/

and most other settings are the Ubuntu 10.04 postfix defaults, then
postfix will have done an fsync by the time the "250 OK: queued as
12345" comes back, such that if I then immediately power cycle the
server, when it comes back up, the mail will make its way to the final
mbox/Maildir?
-- 
Yang Zhang
http://yz.mit.edu/

Reply via email to