Olli Räisänen
2011-Nov-24 09:22 UTC
[Dovecot] How to create home directories for virtual users?
Hello, I,m using Dovecot 1.2.9, now finishing a migration from Courier IMAP. Documentation (http://wiki.dovecot.org/VirtualUsers/Home) says that home directory should not be the same as mail directory. When I create new user accounts with PostfixAdmin the mail directory is not a problem but is there some smart way to create the home directory as well (locating it for instance in '/srv/vmail/%d/%n/home')? Regards, Olli
Simon Brereton
2011-Nov-24 14:42 UTC
[Dovecot] How to create home directories for virtual users?
On Nov 24, 2011 4:22 AM, "Olli R?is?nen" <olli.raisanen at telemail.fi> wrote:> > Hello, > > I,m using Dovecot 1.2.9, now finishing a migration from Courier IMAP. > Documentation (http://wiki.dovecot.org/VirtualUsers/Home) says that home > directory should not be the same as mail directory. When I create new user > accounts with PostfixAdmin the mail directory is not a problem but isthere> some smart way to create the home directory as well (locating it forinstance> in '/srv/vmail/%d/%n/home')?Why do you need a home directory for virtual users? Simon
Timo Sirainen
2011-Nov-24 15:37 UTC
[Dovecot] How to create home directories for virtual users?
On 24.11.2011, at 16.42, Simon Brereton wrote:>> Documentation (http://wiki.dovecot.org/VirtualUsers/Home) says that home > > Why do you need a home directory for virtual users?It says right there in the wiki.
Tom Hendrikx
2011-Nov-24 16:13 UTC
[Dovecot] How to create home directories for virtual users?
On 24-11-11 10:22, Olli R?is?nen wrote:> Hello, > > I,m using Dovecot 1.2.9, now finishing a migration from Courier IMAP. > Documentation (http://wiki.dovecot.org/VirtualUsers/Home) says that home > directory should not be the same as mail directory. When I create new user > accounts with PostfixAdmin the mail directory is not a problem but is there > some smart way to create the home directory as well (locating it for instance > in '/srv/vmail/%d/%n/home')? >How about using /srv/vmail/%d/%n for homedir, and /srv/vmail/%d/%n/mail as mailstore? Otherwise, postfixadmin has a post-create hook that is able to execute arbitrary scripts, creating homedirs should be among the included examples. -- Tom
Olli Räisänen
2011-Nov-24 19:23 UTC
[Dovecot] How to create home directories for virtual users?
Tom Hendrikx kirjoitti 2011-11-24 kello 18:13:47:> > How about using /srv/vmail/%d/%n for homedir, and /srv/vmail/%d/%n/mail > as mailstore?Well, yes - at least the home directory will be created that way. Still, PostfixAdmin will not store the path in the maibox table home field. Perhaps it is enough to include the path in the Dovecot user_query?> Otherwise, postfixadmin has a post-create hook that is able to execute > arbitrary scripts, creating homedirs should be among the included > examples.If you are referring to maildir_name_hook in config.inc.php script, no, homedirs are not included (in Postfix Admin version 2.3.4). Thank you anyway, Tom! I must consider your advice. Olli