[Dovecot] v1.1.1: Some files not created with dovecot-shared permissions
Hi,
I use dovecot-shared to add read permissions to the group in my mail
server, which uses virtual users. This is only to ease backups.
However, a few files are not created with the permissions in
dovecot-shared. I've seen this happen to 'subscriptions', 'maildirfolder' (when dovecot-shared exists; the change to correctly create maildirfolder in this case is very recent), and possibly 'maildirsize' (I'm not sure about this one, it might be exim that is creating it with wrong permissions.)
This has been tested in recent snapshot package, from the Debian
repository listed at http://wiki.dovecot.org/PrebuiltBinaries. Here's dovecot -n for reference: # 1.1.1: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot/main.log info_log_path: /var/log/dovecot/info.log log_timestamp: %Y-%m-%d %H:%M:%S login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_processes_count: 1 first_valid_uid: 100 mail_privileged_group: mail mail_location: maildir:/home/vmail/%d/%n/INBOX:INDEX=/home/vmail/%d/%n/dovecotidx mail_plugins: quota imap_quota auth default: mechanisms: plain login cram-md5 passdb: driver: passwd-file args: username_format=%n /home/vmail/%d/db/passwd passdb: driver: pam userdb: driver: static args: uid=104 gid=8 home=/home/vmail/%d/%n userdb: driver: passwd socket: type: listen client: path: /var/run/dovecot/auth-client mode: 438 plugin: quota: maildir
On Tue, 2008-06-24 at 17:20 -0300, Eduardo M KALINOWSKI wrote:
Hi,
I use dovecot-shared to add read permissions to the group in my mail
server, which uses virtual users. This is only to ease backups.
However, a few files are not created with the permissions in
dovecot-shared. I've seen this happen to 'subscriptions', 'maildirfolder' (when dovecot-shared exists; the change to correctly create maildirfolder in this case is very recent), and possibly 'maildirsize' (I'm not sure about this one, it might be exim that is creating it with wrong permissions.)
Fixed for maildirfolder creation: http://hg.dovecot.org/dovecot-1.1/rev/70523f420d35
As for subscriptions and maildirsize .. well, those are more difficult and I'm not sure if I should do such a change for v1.1.x releases anymore since it would change the behavior.
dovecot-shared file is supposed to be a per-mailbox configuration file. As a special case it's also copied to newly created mailboxes. But I'm not sure if it should affect global files such as maildirsize and subscriptions..
On Sun, 2008-07-20 at 21:19 +0300, Timo Sirainen wrote:
As for subscriptions and maildirsize .. well, those are more difficult and I'm not sure if I should do such a change for v1.1.x releases anymore since it would change the behavior.
dovecot-shared file is supposed to be a per-mailbox configuration file. As a special case it's also copied to newly created mailboxes. But I'm not sure if it should affect global files such as maildirsize and subscriptions..
v1.2 code tree now handles these by getting the permissions from the mail root directory, just as dovecot-acl-list permissions are already taken from it with v1.1.
Timo Sirainen escreveu:
As for subscriptions and maildirsize .. well, those are more difficult and I'm not sure if I should do such a change for v1.1.x releases anymore since it would change the behavior.
maildirsize is actually quite discardable, so it's not a big deal.
However, the subscriptions file is somewhat important to backup (even if not essential), so that the users do not have to set their subscriptions agains should disaster happen.
The solution you mentioned in the other message seems fine.
participants (2)
-
Eduardo M KALINOWSKI
-
Timo Sirainen