Re: Home Directory Creation

2019-10-05 Thread Asai via dovecot
On 10/4/2019 10:31 PM, Aki Tuomi via dovecot wrote: 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

Re: Home Directory Creation

2019-10-04 Thread Aki Tuomi via dovecot
On 05/10/2019 05:20 Asai via dovecot < dovecot@dovecot.org> wrote: As experiment, you could maybe use mail_lua plugin to create the user directory on demand, make a lua script with

Re: Home Directory Creation

2019-10-04 Thread Asai via dovecot
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

Re: Home Directory Creation

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

Re: Home Directory Creation

2019-10-04 Thread Asai via dovecot
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: Home Directory Creation

2019-10-04 Thread Sami Ketola via dovecot
> On 4 Oct 2019, at 0.47, Asai via dovecot 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 documenta

Re: Home Directory Creation

2019-10-03 Thread Asai via dovecot
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? Thanks, Asai

Re: Home Directory Creation

2019-10-03 Thread Asai via dovecot
Looks like this still old reply from TImo applies: https://dovecot.org/list/dovecot/2013-May/090397.html The welcome plugin could maybe of help: https://doc.dovecot.org/plugin-settings/welcome-plugin/ Regards, Stephan. Thanks, Stephan, looks like Timo's already answered it. OK, so the n

Re: Home Directory Creation

2019-10-03 Thread Stephan Bosch via dovecot
On 03/10/2019 22:43, Asai via dovecot wrote: Tried your config here and it works. My debug log looks as follows for the first brief IMAP session: Oct  3 22:28:56 drieka dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21949, secured, session= Oct  3 22:28:56 drieka

Re: Home Directory Creation

2019-10-03 Thread Asai via dovecot
Tried your config here and it works. My debug log looks as follows for the first brief IMAP session: Oct  3 22:28:56 drieka dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21949, secured, session= Oct  3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Added user

Re: Home Directory Creation

2019-10-03 Thread Stephan Bosch via dovecot
On 03/10/2019 17:26, Asai via dovecot wrote: Mr. Timo, I would presume you are busy with many responsibilities, but might you have a few minutes to consider this problem? Or is there any other Dovecot expert who may be able to offer advice on how to get the home directories created?  Than

Re: Home Directory Creation

2019-10-03 Thread Asai via dovecot
Mr. Timo, I would presume you are busy with many responsibilities, but might you have a few minutes to consider this problem? Or is there any other Dovecot expert who may be able to offer advice on how to get the home directories created?  Thank you for those who have helped offer advice on

Re: Home Directory Creation

2019-10-02 Thread Asai via dovecot
Hello, I spent the afternoon troubleshooting this, and after hours, I still can't see what I'm missing. On the older version of Dovecot (2.2) it worked fine to create a new user, then Dovecot would create the home folder under the maildir folder as outlined in the documentation, simply by cr

Re: Home Directory Creation

2019-10-02 Thread Asai via dovecot
On 10/1/2019 11:42 PM, Aki Tuomi via dovecot wrote: Can you configure mail_debug=yes, try again, and post the logs? Aki Hello Aki, This is the only piece of relevant info I've been getting in the logs, and I'm trying to figure out how I can get more debug data on this: Oct 02 07:34:09 im

Re: Home Directory Creation

2019-10-01 Thread Aki Tuomi via dovecot
On 2.10.2019 4.00, Asai via dovecot wrote: > Hello, > > I hate to have to ask this, but... why isn't the home directory being > created automatically? > > Due to legacy compatibility we've had to use this type of home dir > config: > > mail_location = maildir:/vmail/%d/%n > mail_home = /vmail/%d/

Re: Home Directory Creation

2019-10-01 Thread Asai via dovecot
Asai via dovecot skrev den 2019-10-02 03:00: https://doc.dovecot.org/configuration_manual/home_directories_for_virtual_users/#home-directories-for-virtual-users mail_home = /var/vmail/%d/%n mail_location = maildir:~/mail little diff Hello, Thanks for replying.  I understand that that's i

Re: Home Directory Creation

2019-10-01 Thread Benny Pedersen via dovecot
Asai via dovecot skrev den 2019-10-02 03:00: mail_location = maildir:/vmail/%d/%n mail_home = /vmail/%d/%n/home Can anyone point me in the right direction? https://doc.dovecot.org/configuration_manual/home_directories_for_virtual_users/#home-directories-for-virtual-users mail_home = /var/v

Home Directory Creation

2019-10-01 Thread Asai via dovecot
Hello, I hate to have to ask this, but... why isn't the home directory being created automatically? Due to legacy compatibility we've had to use this type of home dir config: mail_location = maildir:/vmail/%d/%n mail_home = /vmail/%d/%n/home We're in the middle of upgrading to new hardware,

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-02 Thread Angel L. Mateo
El 01/12/11 18:26, Stephen Bowman escribió: How does everyone handle this case? Users are authenticated by LDAP, and do not have accounts on the IMAP/dovecot server. When a new user is added to LDAP, the home directory (/home/newuser) needs to be created on the IMAP/dovecot server so dovecot

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Sven Hartge
Timo Sirainen wrote: > On 2.12.2011, at 1.03, Sven Hartge wrote: >> Timo Sirainen wrote: >>> I hope some day there won't be any problems with Dovecot using >>> multiple UIDs. >> >> Meaning? > There are different problems with multiple UIDs that are more > difficult to solve than with a single

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Timo Sirainen
On 2.12.2011, at 1.03, Sven Hartge wrote: > Timo Sirainen wrote: >> On 2.12.2011, at 0.41, Sven Hartge wrote: > >>> Or switch to a virtual setup, where the users don't get real users on >>> the imap server (they can't log in, so they don't need any real user >>> on that server) and every mail is

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Sven Hartge
Timo Sirainen wrote: > On 2.12.2011, at 0.41, Sven Hartge wrote: >> Or switch to a virtual setup, where the users don't get real users on >> the imap server (they can't log in, so they don't need any real user >> on that server) and every mail is owned by your virtual mail user. > Well, it of co

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Timo Sirainen
On 2.12.2011, at 0.41, Sven Hartge wrote: > Or switch to a > virtual setup, where the users don't get real users on the imap server > (they can't log in, so they don't need any real user on that server) and > every mail is owned by your virtual mail user. Well, it of course makes things easier, b

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Sven Hartge
Stephen Bowman wrote: > How does everyone handle this case? > Users are authenticated by LDAP, and do not have accounts on the > IMAP/dovecot server. When a new user is added to LDAP, the home > directory (/home/newuser) needs to be created on the IMAP/dovecot > server so dovecot can create the

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Timo Sirainen
On 1.12.2011, at 19.26, Stephen Bowman wrote: > How does everyone handle this case? > > Users are authenticated by LDAP, and do not have accounts on the IMAP/dovecot > server. When a new user is added to LDAP, the home directory (/home/newuser) > needs to be created on the IMAP/dovecot server

Re: [Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Tom Hendrikx
On 01-12-11 18:26, Stephen Bowman wrote: > How does everyone handle this case? > > Users are authenticated by LDAP, and do not have accounts on the > IMAP/dovecot server. When a new user is added to LDAP, the home > directory (/home/newuser) needs to be created on the IMAP/dovecot > server so dov

[Dovecot] LDAP Authentication - Home Directory Creation

2011-12-01 Thread Stephen Bowman
How does everyone handle this case? Users are authenticated by LDAP, and do not have accounts on the IMAP/dovecot server. When a new user is added to LDAP, the home directory (/home/newuser) needs to be created on the IMAP/dovecot server so dovecot can create the mail directories inside it (/h