Home Directory Creation

Aki Tuomi aki.tuomi at open-xchange.com
Fri Oct 4 21:38:09 EEST 2019


> 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.
>  
>  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


More information about the dovecot mailing list