Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

maildirsize not being created with correct permissions

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


eduardo at kalinowski

Jul 1, 2008, 2:30 PM

Post #1 of 2 (183 views)
Permalink
maildirsize not being created with correct permissions

I have this transport set:

virtual_user_maildir:
debug_print = "T: virtual_user_maildir for $local_part@$domain"
driver = appendfile
directory = /home/vmail/$domain/$local_part/INBOX
create_directory
delivery_date_add
envelope_to_add
return_path_add
maildir_format
directory_mode = 0750
mode = 0640
mode_fail_narrower = false
user = vmail
group = mail
# Store quota information
maildir_use_size_file = true
maildir_quota_directory_regex = ^(?:cur|new|\.(?!Trash|Spam).*)$
# Store message sizes in filename
maildir_tag = ,S=$message_size
quota_size_regex = ,S=(\d+)
# Use maildirfolder files
maildirfolder_create_regex = /\.[^/]+/?$

The messages and folders are correctly created with the specified modes,
but the maildirsize file is created with mode 600 (user and group are
OK, though). I'd like it to have group read permission to ease backups,
but exim does not seem to be creating the file with the requested mode.
Exim version is 4.68. Any suggestions?

--
Extreme fear can neither fight nor fly.
-- William Shakespeare, "The Rape of Lucrece"

Eduardo M KALINOWSKI
eduardo[at]kalinowski.com.br
http://move.to/hpkb



--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at spodhuis

Jul 1, 2008, 4:10 PM

Post #2 of 2 (166 views)
Permalink
Re: maildirsize not being created with correct permissions [In reply to]

On 2008-07-01 at 18:30 -0300, Eduardo M KALINOWSKI wrote:
> The messages and folders are correctly created with the specified modes,
> but the maildirsize file is created with mode 600 (user and group are
> OK, though). I'd like it to have group read permission to ease backups,
> but exim does not seem to be creating the file with the requested mode.
> Exim version is 4.68. Any suggestions?

Arguably, the mode for the maildirsize file should match the mode for
the mail files themselves. File a bug, because it's hard-coded to 0600.

If you're happy building from source, the quick hack is to edit
src/transports/tf_maildir.c -- search for O_CREAT, the first one exists
with O_EXCL and handles creating the temporary file which is renamed
into place. The mode is given as octal 0600 there, change it to 0640.

-Phil

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.