[Dovecot] imap locking spool?

Mark Hedges hedges at scriptdolphin.org
Wed Mar 4 01:11:20 EET 2009



On Tue, 3 Mar 2009, Timo Sirainen wrote:
> > > You can change those settings. For example:
> > >
> > > mbox_read_locks = flock
> > > mbox_write_locks = dotlock flock
> > >
> > > Now Dovecot is compatible with openwebmail. And with
> > > procmail both are still protected by the dotlock.
> >
> > No, openwebmail only has the choice of either dotlock or
> > flock, but not both.  So in this case, procmail could
> > deliver using dotlock but openwebmail wouldn't know
> > because it's only watching for flock.  Welcome to my
> > hell!
>
> Ah. Well, the last choice is then:
>
> mbox_read_locks = dotlock
> mbox_write_locks = dotlock
>
> Dotlocking for reading isn't really optimal, but shouldn't
> really make much of a difference usually.

I tried that before, that would be great if it worked for
imap, but I've verified that the dotlock file does not get
created in /var/spool/mail/username.lock when I open the
imap connection, at least for reading.  It is created when I
open the popmail connection (but that was already working.)
That's why I'm asking.

Mar  3 15:08:53 anubis dovecot: auth(default): client in: AUTH  1   PLAIN   service=imap    secured lip=127.0.0.1   rip=127.0.0.1   lport=143   rport=49237 resp=<hidden>
Mar  3 15:08:53 anubis dovecot: auth(default): client out: OK   1   user=despam_test_anubis
Mar  3 15:08:53 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): lookup service=dovecot
Mar  3 15:08:53 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): #1/1 style=1 msg=Password:
Mar  3 15:08:53 anubis dovecot: auth(default): master in: REQUEST   8   22446   1
Mar  3 15:08:53 anubis dovecot: auth(default): passwd(despam_test_anubis,127.0.0.1): lookup
Mar  3 15:08:53 anubis dovecot: auth(default): master out: USER 8   despam_test_anubis  system_user=despam_test_anubis  uid=511 gid=100 home=/home/anubis/despam_test_anubis
Mar  3 15:08:53 anubis dovecot: IMAP(despam_test_anubis): Effective uid=511, gid=100, home=/home/anubis/despam_test_anubis
Mar  3 15:08:53 anubis dovecot: IMAP(despam_test_anubis): mbox: data=~/mail:INBOX=/var/spool/mail/despam_test_anubis
Mar  3 15:08:53 anubis dovecot: IMAP(despam_test_anubis): fs: root=/home/anubis/despam_test_anubis/mail, index=, control=, inbox=/var/spool/mail/despam_test_anubis
Mar  3 15:08:53 anubis dovecot: imap-login: Login: user=<despam_test_anubis>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar  3 15:08:53 anubis dovecot: auth(default): client in: AUTH  1   PLAIN   service=imap    secured lip=127.0.0.1   rip=127.0.0.1   lport=143   rport=49238 resp=<hidden>
Mar  3 15:08:53 anubis dovecot: auth(default): client out: OK   1   user=despam_test_anubis
Mar  3 15:08:53 anubis dovecot: IMAP(despam_test_anubis): Disconnected: Logged out bytes=126/611



More information about the dovecot mailing list