[Dovecot] umask not applied

Thomas lists at abelonline.de
Thu Nov 15 17:19:06 EET 2007


Quoting Timo Sirainen <tss at iki.fi>:

> On 15.11.2007, at 17.03, Thomas wrote:
>
>> Quoting Timo Sirainen <tss at iki.fi>:
>>> 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.




More information about the dovecot mailing list