Topic: Local dovecot when using shared mailbox
============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
I've been having issue with users getting corrupted dovecot indexes. Now I've found that you should put the dovecot index on the local machine instead of in the network share. So I found an old post describing how to do this.
So I've created the folder /var/lib/dovecot/indexes and set the permissions for vmail:vmail to the folder with 700 as permissions. I've changed the mail_location to following in /etc/dovecot/dovecot.conf
mail_location = maildir:%Lh/Maildir/:INDEX=/var/lib/dovecot/indexes/%Ld/%Lu/
But I'm curios about the namespace called shared. Today the location is:
location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
So I assume that this also should be changed. So would the following be correct?
location = maildir:%%Lh/Maildir/:INDEX=/var/lib/dovecot/indexes/%%Ld/%%Lu/Shared/%%u
Also, wouldn't it be good have this as default in iRedMail? Then it wouldn't be an hassle for those that chooses to have an shared storage.
Thanks for an great project!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.