On Sun, 2005-10-16 at 14:56 -0400, Glenn Leavell wrote:
dovecot: Oct 16 14:20:15 Error: imap(glenn): flock() locks not supported .. This looks like a locking issue on an index file. I had been leaving lock_method unset, letting it default to fcntl (inferred from the comments in dovecot-example.conf). I changed it to the explicit "lock_method = fcntl" and this fixed the problem.
Has the lock_method default changed from alpha3 to alpha4?
Yes. I forgot to mention this.
And is it proper to infer from the comment below in dovecot-example.conf that the default is supposed to be fcntl?
#lock_method = fcntl
Look at the dovecot-example.conf in the new tarball:
# Locking method for index files. Alternatives are fcntl, flock and dotlock. # Dotlocking uses some tricks which may create more disk I/O than other locking # methods. NOTE: If you use NFS, remember to change also mmap_disable setting! #lock_method = flock
The reason for this change was that I thought since so many people have /home mounted as NFS, the best way to inform them about NFS problems would be to fail completely until they have changed lock_method and also seen the note about mmap_disable.
Unfortunately flock() isn't supported at all with Solaris, so this is a bit of an extra trouble for Solaris users.