Ive got two servers with a shared glusterfs disk, both running dovecot and serving mail from this shared disk. Users read mail only from one of these servers but mail gets delivered to both. Occasionally I get problems when accessing the inbox maildir folder:
IMAP(user): open(/home/user/Maildir/dovecot-uidlist) failed: Permission denied
The user cant open the inbox. Accessing other folders works fine. If I delete the dovecot index files and restart dovecot everything works fine.
What can I do to make this setup more reliable?
My dovecot settings on both servers:
mmap_disable = no
dotlock_use_excl = yes
mail_nfs_storage = yes
mail_nfs_index = no
If all else fails I could create a bash script to clean up dovecot index files if there are errors in the logs...