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
Am 20.08.2014 um 23:57 schrieb Gionatan Danti:> 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. >You could use sudo to grant your backup user the required rights to read those files. ==> /etc/sudoers backupuser ALL=NOPASSWD: /usr/bin/rsync -- Alex JOST
Possibly Parallel Threads
- Deleting messages from filesystem with sdbox mail format
- Rsync temporary file name
- Deleting messages from filesystem with sdbox mail format
- [EXT] Re: Deleting messages from filesystem with sdbox mail format
- Questions about hardlinks, alternate storage and compression