[Dovecot] Change mail_location for one user?

Charles Marcus CMarcus at Media-Brokers.com
Fri Sep 13 18:59:03 EEST 2013

On 2013-09-13 2:40 AM, Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:
> Because Dovecot supports multiple userdb's, you could add a 
> passwd-file userdb _before_ passwd userdb, copy the line of sarah from 
> /etc/passwd into that new file and add the extra fields there. See 
> http://wiki2.dovecot.org/AuthDatabase/PasswdFile
> userdb {
>     driver = passwd-file
>     args = username_format=%n /etc/dovecot/imap.passwd
> }
> userdb {
>     driver = passwd
> } 

This looks very interesting to me...

I've been contemplating slowly converting users (one at a time) over to 
SIS storage - looks like this would work for doing that too?

The main thing holding me back is/was the MySQL DB I use for userdb 
doesn't natively/easily support extra fields - so, with this method, I 
could add a passwd-file userdb with the extra field(s) *before* my 
passwd userdb, then add the users to convert one by one, then once all 
are converted, change the main config and eliminate the temporary 
userdb... ?



Best regards,


More information about the dovecot mailing list