> 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
> As 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 > > AkiThanks, Aki. I've tried it out and it looks promising.? The only issue is debugging, and the documentation isn't entirely clear to me.? I need to figure out how to output some debug data to some kind console or file. Asai
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 05/10/2019 05:20 Asai via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <blockquote type="cite"> <div> As experiment, you could maybe use mail_lua plugin to create the user directory on demand, </div> </blockquote> <blockquote type="cite"> <div> make a lua script with </div> </blockquote> <blockquote type="cite"> <div> function mail_user_created(user) </div> <div> -- create directory for user:home </div> <div> end </div> </blockquote> <blockquote type="cite"> <div> See <a href="https://doc.dovecot.org/plugin-settings/mail-lua-plugin/" rel="noopener" target="_blank">https://doc.dovecot.org/plugin-settings/mail-lua-plugin/</a> and <a href="https://wiki.dovecot.org/Design/Lua" rel="noopener" target="_blank">https://wiki.dovecot.org/Design/Lua</a> </div> </blockquote> <blockquote type="cite"> <div> Aki </div> </blockquote> <div> Thanks, Aki. </div> <div> <br> </div> <div> I've tried it out and it looks promising. The only issue is debugging, </div> <div> and the documentation isn't entirely clear to me. I need to figure out </div> <div> how to output some debug data to some kind console or file. </div> <div> <br> </div> <div> Asai </div> </blockquote> <div> <br> </div> <div> And of course you could also use a postlogin script. See https://doc.dovecot.org/admin_manual/post_login_scripting/ </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
Possibly Parallel Threads
- Home Directory Creation
- Home Directory Creation
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password
- Home Directory Creation
- bash script hook lda_mailbox_autocreate for generate mail-crypt user encrypted private key with user password