[Dovecot] umask 007 ineffective with newly created Maildir message

Timothy White dovecot.user at weirdo.bur.st
Thu Dec 21 08:59:19 UTC 2006


On 12/19/06, Steve James <s.james at 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:-
>   1. Using your IMAP client with two IMAP accounts, copy a message from a
> folder in one account, to a folder in the other account
>   2. 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 at scouts.org.au


More information about the dovecot mailing list