New user mailbox permission

Gionatan Danti g.danti at assyoma.it
Wed Aug 20 21:57:44 UTC 2014


Hi all,
I have a problem with my Dovecot installation. First, some informations:
- OS: CentOS 6.5 x86_64
- Dovecot: dovecot-2.0.9-7.el6.x86_64

Config:
mail_location = sdbox:~/dbox
user_query = SELECT username, password, 'vmail' as uid, 'vmail' as gid, 
'/var/vmail/%d/%n' as home, CONCAT('*:storage=', (quota DIV 1000)) as 
quota_rule FROM mailbox WHERE username='%u'

What I want to do is to create a backup user to rsync the mailstore to a 
remote location. If possible, I don't want to use the root user for this 
operation. I already added the backup user to "vmail" group.

The problem is that when a new user is created, it's base directory 
permission are 0700 (vmail:vmail).
 From what I read here 
(http://wiki2.dovecot.org/SharedMailboxes/Permissions, "Permissions to 
new /domain/user directories"), simply using the setgid bit is not 
sufficient because I am not using an absolute path for mail_location.

My questions are:
1) all I need to do is to switch to an absolute mail_location?
2) it is possibile to solve my problem _without_ altering mail_location?

Thanks.

-- 
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti at assyoma.it - info at assyoma.it
GPG public key ID: FF5F32A8


More information about the dovecot mailing list