Steve James
2006-Dec-19 14:11 UTC
[Dovecot] umask 007 ineffective with newly created Maildir message
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. Thanks, Steve. -- BOFH excuse #400: We are Microsoft. What you are experiencing is not a problem; it is an undocumented feature. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20061219/c7f004f4/attachment.bin>
Steve James
2006-Dec-20 16:07 UTC
[Dovecot] umask 007 ineffective with newly created Maildir message
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. Thanks, Steve. -- BOFH excuse #400: We are Microsoft. What you are experiencing is not a problem; it is an undocumented feature. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20061220/65894c28/attachment.bin>
Timothy White
2006-Dec-21 08:59 UTC
[Dovecot] umask 007 ineffective with newly created Maildir message
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