Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to get Postfix to guarantee durability in its receipt of email?

E.g., can it be sure to fsync the mbox/Maildir file and/or directory before it acknowledges successful receipt of an email?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Do you have reason to believe that you have a problem here?

Although (unlike most MTAs) postfix can handle delivery itself, but this is a very unusual setup - more typically its passed to the 'local' program. My own preference is for procmail which provides very complex scripting abilities.

At each hop, the MDA will not acknowledge receipt until it has queued the message locally. Sure that may mean that the file is not on the disk at this point - but SMTP is not transactionally secure to begin with - if your losing messages because your server keeps crashing then this is not the way to fix the problem.

It's up to the MDA to refuse to accept the mail or deal with failure after it has accepted it.

You really need to establish if, and where that messages are getting lost after your system has acknowledged receipt. This may be a lot easier if you use a more complex MDA to log or duplicate delivery.

see also http://www.postfix.org/MAILDROP_README.htm

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.