19 Dec
2006
19 Dec
'06
11:45 a.m.
Using dovecot 1.0rc15, together with postfix and dovecot-lda.
umask is set to 0007. This should ensure directories and files get created with read/write permissions for both user and group.
However, dovecot-lda writes files with 600 permissions, instead of 660. So dovecot does not seem to respect the umask configuration property for local mail delivery.
In my particular case, I have vmail:vmail own the mail directories, and a backup user part of the vmail group. However the backup user cannot read the mails and thus back them up properly.
Suggestions:
- respect the umask for file delivery as well
- alternatively, take the parent directory's permissions, strip executable bits, and apply to file
Thanks Thomas