Frank Bonnet
2011-Mar-24 16:17 UTC
[Dovecot] lda_mailbox_autocreate and lda_mailbox_autosubscribe
Hello I use real unix users on the mailhub and I would like to automate home directories creation for new users. I found lda_mailbox_autocreate and lda_mailbox_autosubscribe statements in 15-lda.conf file ( dovecot 2.0.11 ) which seem to be the right things for me :-) I use Postfix 2.8.1 with Dovecot LDA mailbox_command = /usr/local/libexec/dovecot/dovecot-lda All Mailboxes are located in /user/$USER/mail/ Does those two statements means that if a home directory does not exists it will be created at the first login of the new user ? I mean if new user "toto" has no homedir at all , dovecot will create /user/toto/mail at the very first successful connection ? Thanks a lot
Timo Sirainen
2011-Mar-24 17:05 UTC
[Dovecot] lda_mailbox_autocreate and lda_mailbox_autosubscribe
On Thu, 2011-03-24 at 17:17 +0100, Frank Bonnet wrote:> I use real unix users on the mailhub and I would like to > automate home directories creation for new users.This is done automatically, as long as filesystem permissions allow it. But since you're using real unix users, this may be troublesome unless you set the parent directory permissions to something like 01777.> I found lda_mailbox_autocreate and lda_mailbox_autosubscribe > statements in 15-lda.conf file ( dovecot 2.0.11 ) which seem to be the right > things for me :-) > > Does those two statements means that if a home directory > does not exists it will be created at the first login of the > new user ?Nope.
David Warden
2011-Mar-24 17:20 UTC
[Dovecot] lda_mailbox_autocreate and lda_mailbox_autosubscribe
On Mar 24, 2011, at 12:17 PM, Frank Bonnet wrote:> Hello > > I use real unix users on the mailhub and I would like to > automate home directories creation for new users. >Have you looked at pam_mkhomedir which will create a user's home directory if it doesn't already exist? It sounds like that's more in line with what you're looking for. http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_mkhomedir.html has config options. If you're on RHEL/CentOS check out man authconfig.> I found lda_mailbox_autocreate and lda_mailbox_autosubscribe > statements in 15-lda.conf file ( dovecot 2.0.11 ) which seem to be the right > things for me :-) > > I use Postfix 2.8.1 with Dovecot LDA > mailbox_command = /usr/local/libexec/dovecot/dovecot-lda > > All Mailboxes are located in /user/$USER/mail/ > > Does those two statements means that if a home directory > does not exists it will be created at the first login of the > new user ? > > I mean if new user "toto" has no homedir at all , dovecot will > create /user/toto/mail at the very first successful connection ? > > Thanks a lot > >-David Warden