mbox locking

Aki Tuomi aki.tuomi at open-xchange.com
Tue Oct 9 19:07:01 EEST 2018


> On 09 October 2018 at 17:18 Martin Johannes Dauser <mdauser at cs.sbg.ac.at> wrote:
> 
> 
> On Tue, 2018-10-09 at 15:30 +0200, Selmeci Tamás wrote:
> > On Tue, 9 Oct 2018 12:08:00 +0200 Sami Ketola <sami.ketola at dovecot.fi
> > > wrote:
> > 
> > > How do you deliver then mails to the server? 
> > > 
> 
> > 
> > OpenSMTPD and Dovecot run on the same machine. OpenSMTPD receives
> > incoming mails and stores them in a mailbox (/var/spool/mail/user).
> > Dovecot then fetches mails from this mailbox file.
> > 
> 
> Regarding locks, OpenSMTPD's config should match methods AND order of
> dovecot's mbox_write_locks. 
> 
> Methods known by dovecot are dotlock, flock, fcntl and lockf. I
> couldn't find out, which methods are used by OpenSMTPD.
> 
> Dovecot's mbox_read_locks should match too, but dotlock isn't used.
> 
> https://wiki.dovecot.org/MailLocation/mbox
> https://wiki.dovecot.org/MboxLocking
> https://wiki.dovecot.org/MailboxFormat/mbox
> 
> Martin

You could use LMTP instead of direct delivery, too.

Aki


More information about the dovecot mailing list