On 12/19/06, Steve James s.james@bigfoot.com wrote:
This is for Dovecot 1.0.rc15 from Debian Backports on 3.1 Stable, x86; Filesystems are local reiserfs; IMAPs client is KMail 1.9.5
Non-default settings in dovecot.conf:
protocols = imaps ssl_cert_file = /etc/dovecot/mail.cert.pem ssl_key_file = /etc/dovecot/mail.key.pem mail_location = maildir:/var/mail/ambrosia.plus.com/%n mail_extra_groups = mail first_valid_uid = 1000 first_valid_gid = 1000 umask = 007 maildir_copy_with_hardlinks = yes
To reproduce:-
- Using your IMAP client with two IMAP accounts, copy a message from a folder in one account, to a folder in the other account
- See that the newly created message file is -rw-------
If a message is moved between folders on the _same_ account, however, the group permissions are preserved (ie not masked off). So it seems that the umask option is ineffective when the imap daemon creates a new maildir message file.
Might this be because it's doing "maildir_copy_with_hardlinks = yes" ?? When you go between accounts, this won't happen, as the copy happens client side.
Tim
Linux Counter user #273956 Don't email joeblogs@scouts.org.au