Marcin Hłybin
2012-Sep-17 10:02 UTC
[Dovecot] Mailbox directory permissions (LDA, 0600 -> 0660, virtual users)
Hello, I have a quite common dovecot configuration with virtual users support: 1. User configuration is stored in MySQL database. 2. Mailboxes are owned by vmail:vmail with permission 0600 or drwx------. Is it possible to change mailbox mode to 0660? Dovecot version is 2.1.7 Part of SQL configuration: user_query = \ SELECT \ CONCAT_WS('/', home, u.uid, d.domain_name, u.user_name) AS home, \ 500 AS uid, \ 500 AS gid \ FROM users u \ LEFT JOIN domains d ON u.domain_id = d.id \ WHERE \ u.user_name = '%n' AND \ d.domain_name = '%d' AND \ u.active = 1 Regards. -- M.
Marcin Hłybin
2012-Sep-17 10:09 UTC
[Dovecot] Mailbox directory permissions (LDA, 0600 -> 0660, virtual users)
On 2012-09-17 12:02, Marcin H?ybin wrote:> 1. User configuration is stored in MySQL database.Obviously, I meant 0700 to be changed to 0770. -- M.
Timo Sirainen
2012-Sep-17 12:46 UTC
[Dovecot] Mailbox directory permissions (LDA, 0600 -> 0660, virtual users)
On 17.9.2012, at 13.02, Marcin H?ybin wrote:> I have a quite common dovecot configuration with virtual users support: > 1. User configuration is stored in MySQL database. > 2. Mailboxes are owned by vmail:vmail with permission 0600 or drwx------. > > Is it possible to change mailbox mode to 0660?Yeah, although since they're already sharing UIDs I don't see much point? http://wiki2.dovecot.org/SharedMailboxes/Permissions anyway describes how it all works.