> On 4 Oct 2019, at 0.47, Asai via dovecot <dovecot at dovecot.org> wrote: > > One thing Timo mentioned in this post (https://dovecot.org/list/dovecot/2013-May/090397.html) is: "You could also change your new user creation to trigger mkdiring the user's home." > > Does anyone know where I can find any documentation on this, or has anyone done this? >It depends heavily on how do you add users to your system. If you are using LDAP to store the user information then you can create the home directory at the same time you add the user to ldap. Sami
On 10/4/2019 12:58 AM, Sami Ketola via dovecot wrote:> It depends heavily on how do you add users to your system. If you are > using LDAP to store the user information then you can create the home > directory at the same time you add the user to ldap. > > SamiHello, Sami. Thanks for your reply. We're just using a SQL backend to store user info.? How does this get done with LDAP? Perhaps we can do the same with a SQL backend. Asai -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191004/a63d3466/attachment.html>
> On 04/10/2019 21:34 Asai via dovecot <dovecot at dovecot.org> wrote: > > > On 10/4/2019 12:58 AM, Sami Ketola via dovecot wrote: > > > It depends heavily on how do you add users to your system. If you are using LDAP to store the user information then you can create the home directory at the same time you add the user to ldap. > > > > Sami > > > > Hello, Sami. > > Thanks for your reply. > > We're just using a SQL backend to store user info. How does this get done with LDAP? Perhaps we can do the same with a SQL backend. > > AsaiAs experiment, you could maybe use mail_lua plugin to create the user directory on demand, make a lua script with function mail_user_created(user) -- create directory for user:home end See https://doc.dovecot.org/plugin-settings/mail-lua-plugin/ and https://wiki.dovecot.org/Design/Lua Aki
Maybe Matching Threads
- Home Directory Creation
- Home Directory Creation
- Home Directory Creation
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password