Flexible storage base directory used to store users' mail data, easy
to change, useful for large-scale deployment. e.g.:
Your mail data are all stored in /home/vmail01, but disk storage is
nearly full, it's easy to make new users use new storage like
/home/vmail02, /home/vmail03 or whatever:
- Prevous maildir: /home/vmail01/z/zh/zha/zhang/
- Current maildir: /home/vmail02/h/hu/hua/huang/
You can set the storage base directory in either MySQL (column:
vmail.storagebasedirectory) or OpenLDAP backend (attribute:
The FHS (file hierarchy standard) suggests to put mails under /var/mail.
It´s better to move /home/vmail01/ to /var/mail/vmail01 ...
Don´t forget to change /etc/dovecot/dovecot.conf:
mail_location = maildir:/var/mail/vmail01/%d/%n/Maildir
namespace private -> /var/mail/vmail01
AMAVIS: If you are using custom settings in /etc/amavis/conf.d/20-debian_defaults move them to /etc/amavis/conf.d/50-user file (20-debian_defaults changing during an update).