Eduardo M KALINOWSKI
2008-Jun-24 20:20 UTC
[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
Timo Sirainen
2008-Jul-20 18:19 UTC
[Dovecot] v1.1.1: Some files not created with dovecot-shared permissions
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.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080720/7d4da634/attachment-0002.bin>
Eduardo M KALINOWSKI
2008-Jul-21 12:35 UTC
[Dovecot] v1.1.1: Some files not created with dovecot-shared permissions
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.
Reasonably Related Threads
- maildir++ specification compliance.
- maildirfolder file created in maildir root during auto-creation with 2.3.4.1 but not 2.2.27
- Dovecot dsync not replicating ".dovecot.sieve -> .sieve/managesieve.sieve" / setactive
- v1.0.13: maildirfolder not being created
- dsync not replicating ".dovecot.sieve -> .sieve/managesieve.sieve"