On 04/10/2019 21:34 Asai via dovecot <dovecot@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.
Asai
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
Aki