Transitioning away from mail_location = maildir:~
chaouche yacine
yacinechaouche at yahoo.com
Mon Mar 6 08:06:57 UTC 2017
Hi Chris,
>I have since learned that mail_home and mail_location should be
>different. I plan to use this:
I'm interested about any sources for this ?
I find dovecot to be very flexible, so much that you can actual have the home dir inside the maildir instead of the traditional other way around, which is actually my setup !
In /etc/dovecot/conf.d/auth-sql.conf.ext
userdb {
driver = static
args = uid=vmail gid=vmail home=/var/vmail/%d/%n/dovecot
}
In /etc/dovecot/conf.d/10-mail.conf
mail_location = Maildir:~/../
So in my case, the maildir is /var/vmail/%d/%n/ and the home dir is inside the maildir in a directory I named dovecot (home=/var/vmail/%d/%n/dovecot). This is because I migrated from courier which had the maildir directly in /var/vmail/%d/%n/, but since sieve scripts are also put there they are presented as maildir folders (which they're not of course), and this confused my users. So I used this little trick to hide the sieve scripts inside the dovecot directory and still have them working correctly.
-- Yassine.
More information about the dovecot
mailing list