[Dovecot] Locking /var/mail/user issue with postfix and dovecot

Ben Morrow ben at morrow.me.uk
Fri Oct 26 00:24:03 EEST 2012


At  1PM -0500 on 25/10/12 you (Stan Hoeppner) wrote:
> 
> Yes, actually I did, but I missed one part of it because I assumed you
> had Dovecot setup properly.
> 
> It doesn't matter if the mbox locks are write or read or both.  Locks
> are the problem, period, because you have two daemons fighting over the
> same files.  The fix is absolutely trivial:
> 
> Switch Postfix to use the Dovecot Local Deliver Agent (LDA) in place of
> the Postfix local/virtual delivery agent.  Using Dovecot LDA eliminates
> the file locking issue.  Thus it also increases throughput as lock
> latency is eliminated.

Nonsense. deliver and imap are still separate processes accessing the
same mbox, so they still need to use locks. The only difference is that
since they are both dovecot programs, they will automatically be using
the *same* locking strategies, and things will Just Work.

Ben




More information about the dovecot mailing list