Quoting Timo Sirainen <[EMAIL PROTECTED]>:

On 15.11.2007, at 17.03, Thomas wrote:

Quoting Timo Sirainen <[EMAIL PROTECTED]>:
It doesn't. dovecot-shared file should be enough to solve your  problem.

OK, that was a good tip. It works. Now the only thing I need is dovecot to create the file automatically when I create a new account.

Depending how how you create the new account, you might be able to do
it there. For example if you have some add-mail-user script, you  could
have that do it. Or add to /etc/skel/ if you use system users.

I thought of the process when dovecot creates a new maildir-folder for a user. It does that when the first e-mail for this user arrives. The following determines the path where this is done.

userdb static {
      args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}

Is there some way to let dovecot execute a script when it creates a new account. I couldnt find anything in the documentation.

Dovecot doesn't "create new accounts", but you can execute a script
that's run before each imap session: http://wiki.dovecot.org/
PostLoginScripting

You are right it doesn't, but it creates the folders and files. See above. PostLoginSripting is not a "nice" solution but I could check the presence of dovecot-shared at every login though.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Reply via email to