[Dovecot] Autocreation the home folder
Joan
aseques at gmail.com
Mon May 13 09:42:50 EEST 2013
Sorry if this has been already asked, but I haven't been able to find a
solution, I am trying to migrate a dovecot 1.2 config to 2.1, the 'dovecot
-n > dovecot.conf' migrated all the setup without issues, and the mail is
working as expected.
The only issue I've had is with the change with the mail_location,
mail_home, that in the 2.1 versions can't be on the same path.
After reading in the wiki the various config options (
http://wiki2.dovecot.org/VirtualUsers/Home) I opted to use the 3rd:
Home directory under mail, for example:
Maildir: home=/var/vmail/domain/user/home/ mail=/var/vmail/domain/user/
mbox: There's really no good and safe way to do it.
So I changed from:
mail_location = maildir:/home/vmail/%d/%n
mail_home = /var/vmail/%d/%n
To:
mail_location = maildir:/home/vmail/%d/%n
mail_home = /var/vmail/%d/%n/home
The problem is that those home directories are not created (the mailboxes
already existed) automatically, and I am getting these errors:
==========================================================
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Home dir
not found: /var/vmail/example.com/username/home
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
root: name=User quota backend=maildir args=
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
rule: root=User quota mailbox=* bytes=20480000000 messages=0
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
rule: root=User quota mailbox=Trash ignored
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
warning: bytes=15360000000 (75%) messages=0 reverse=no
command=/etc/dovecot/quota-warning.sh 75
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
warning: bytes=17408000000 (85%) messages=0 reverse=no
command=/etc/dovecot/quota-warning.sh 85
May 10 17:08:59 server dovecot: lda(username at example.com): Debug:
maildir++: root=/home/vmail/example.com/username, index=, control=,
inbox=/home/vmail/example.com/username, alt=
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
root: name=User quota backend=maildir args=
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
rule: root=User quota mailbox=* bytes=1073741824 messages=0
May 10 17:08:59 server dovecot: lda(username at example.com): Debug: Quota
warning: bytes=805306368 (75%) messages=0 reverse=no
command=/etc/dovecot/quota-warning.sh 75
========================================================
Am I supposed to create the folders via an external script? Or is there any
option to make this automatic.
Regards,
Joan
More information about the dovecot
mailing list