Can postfix guarantee durability (fsync)?

2010-09-20 Thread Yang Zhang
Can postfix be configured to guarantee durable email receipt? E.g., can it be sure to fsync the mbox/Maildir file and/or directory before it acknowledges successful receipt of an email? -- Yang Zhang http://yz.mit.edu/

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Wietse Venema
Yang Zhang: Can postfix be configured to guarantee durable email receipt? This is required by internet mail RFC and therefore not configurable. Wietse E.g., can it be sure to fsync the mbox/Maildir file and/or directory before it acknowledges successful receipt of an email?

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Jeroen Geilman
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

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Yang Zhang
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

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Yang Zhang
Can you pinpoint the exact RFC section you're referring to? Thanks. On Mon, Sep 20, 2010 at 11:51 AM, Wietse Venema wie...@porcupine.org wrote: Yang Zhang: Can postfix be configured to guarantee durable email receipt? This is required by internet mail RFC and therefore not configurable.    

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Wietse Venema
Yang Zhang: 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

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Wietse Venema
Yang Zhang: Can you pinpoint the exact RFC section you're referring to? Thanks. I will give you as home work to study the following documents: RFC 821 RFC 2821 RFC 5321 These have lots of other good stuff about Internet mail. Wietse On Mon, Sep 20, 2010 at 11:51 AM, Wietse Venema

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Yang Zhang
On Mon, Sep 20, 2010 at 12:33 PM, Wietse Venema wie...@porcupine.org wrote: Yang Zhang: Can you pinpoint the exact RFC section you're referring to? Thanks. I will give you as home work to study the following documents: RFC 821 RFC 2821 RFC 5321 These have lots of other good stuff about

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Yang Zhang
On Mon, Sep 20, 2010 at 12:31 PM, Wietse Venema wie...@porcupine.org wrote: Yang Zhang: 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

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Ralf Hildebrandt
* Yang Zhang yanghates...@gmail.com: No. Postfix replies 250 OK: queued as 12345 when the message is QUEUED. Doesn't this contradict your original reply that durability is guaranteed? If there's no fsync, then the message may not have been persisted to non-volatile storage, and will be

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Stan Hoeppner
Yang Zhang put forth on 9/20/2010 3:46 PM: On Mon, Sep 20, 2010 at 12:33 PM, Wietse Venema wie...@porcupine.org wrote: Yang Zhang: Can you pinpoint the exact RFC section you're referring to? Thanks. I will give you as home work to study the following documents: RFC 821 RFC 2821 RFC 5321

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread Wietse Venema
Ralf Hildebrandt: * Yang Zhang yanghates...@gmail.com: No. Postfix replies 250 OK: queued as 12345 when the message is QUEUED. Doesn't this contradict your original reply that durability is guaranteed? If there's no fsync, then the message may not have been persisted to non-volatile

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread mouss
Le 20/09/2010 22:46, Yang Zhang a écrit : On Mon, Sep 20, 2010 at 12:33 PM, Wietse Venemawie...@porcupine.org wrote: Yang Zhang: Can you pinpoint the exact RFC section you're referring to? Thanks. I will give you as home work to study the following documents: RFC 821 RFC 2821 RFC 5321

Re: Can postfix guarantee durability (fsync)?

2010-09-20 Thread mouss
Le 20/09/2010 21:15, Yang Zhang a écrit : On Mon, Sep 20, 2010 at 12:02 PM, Jeroen Geilmanjer...@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