Hi to all.
First of all.. I'm new on the mailing list.. So.. Sorry in advance for any
mistake or error on posting here..
The question (or doubt..) is about sharing mail folder. I use a test mail
server. Is not the production server (always dovecot + postfix +
spamassassin + clamav)
Well.. In test mail server i can use the share folder, follow the conf
istruction on wiki dovecot. And work fine.
But i need to know if is possible for user_a at mydomain.com to share only 1 or
2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared,
.INBOX_FOLDER_C not shared)
When i do some test sharing folder, the user with wich user_a at mydomain.com
share the mailbox can view all the subfolder of user_a at mydomain.com
Following my dovecot versione e config.
Thank's in advance
My dovecot version is 2.0.19
My dovecot conf is :
# 2.0.19: /etc/dovecot/dovecot.conf
doveconf: Fatal: open(/etc/dovecot/dovecot.conf) failed: Permission denied
calloni at dovecot:~$ sudo -i
[sudo] password for calloni:
root at dovecot:~# dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-49-generic i686 Ubuntu 12.04.4 LTS ext4
dict {
acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
first_valid_uid = 150
last_valid_uid = 150
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%u
mail_plugins = acl
mail_uid = vmail
namespace {
inbox = yes
location
prefix
separator = /
type = private
}
namespace {
list = yes
location = maildir:%%h:INDEX=~/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = no
type = shared
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = proxy::acl
}
postmaster_address = postmaster at jodovit.local
protocols = " imap pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = mail
mode = 0600
user = vmail
}
}
service dict {
unix_listener dict {
group = mail
mode = 0600
user = vmail
}
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
Thi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 Jun 2014, Gianluca Calloni wrote:> But i need to know if is possible for user_a@mydomain.com to share only 1 or > 2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared, > .INBOX_FOLDER_C not shared)What's the dovecot-acl in .INBOX and the three directories mentioned above? Or: doveadm acl get -u user_a@mydomain.com INBOX doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_A doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_B doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_C Did you've share "INBOX" instead of the the subfolders A and B? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU43RXHz1H7kL/d9rAQIm2Af+KLrxxvgAk8TH2f0U6ldu2NidjnncWDv9 Y6vxbuoT/3gC9hL0XlwT/KE+oh/aKsu1tkDhTSq5TQuGVZ5L26CTntIDE9WPq9jf I6lyTzaP6gT3RjhrV0MZeMGLUerWijVs+sPmZMnqTzIIMGFaSqNv6hfAeVjhw98Y 3RMfNbOudTCrg7DGM/jQ3jTXGyJEhL5aI4mFG7JUPE1eYX8ZbTgHePQQtzaFiseK 6en6o25IYpduoQhwq5KEZFkiNLVZFE0ntbwhgUkF8ovzyp3WzioTihi7n4W/IC3x SXfeq2hdq1KMqmXa1zbNKUHz/lPv+dJlXUl94LKxACwm9+zkkrS4vQ==R2bc -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 Jun 2014, Gianluca Calloni wrote:> But i need to know if is possible for user_a at mydomain.com to share only 1 or > 2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared, > .INBOX_FOLDER_C not shared)What's the dovecot-acl in .INBOX and the three directories mentioned above? Or: doveadm acl get -u user_a at mydomain.com INBOX doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_A doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_B doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_C Did you've share "INBOX" instead of the the subfolders A and B? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU43RXHz1H7kL/d9rAQIm2Af+KLrxxvgAk8TH2f0U6ldu2NidjnncWDv9 Y6vxbuoT/3gC9hL0XlwT/KE+oh/aKsu1tkDhTSq5TQuGVZ5L26CTntIDE9WPq9jf I6lyTzaP6gT3RjhrV0MZeMGLUerWijVs+sPmZMnqTzIIMGFaSqNv6hfAeVjhw98Y 3RMfNbOudTCrg7DGM/jQ3jTXGyJEhL5aI4mFG7JUPE1eYX8ZbTgHePQQtzaFiseK 6en6o25IYpduoQhwq5KEZFkiNLVZFE0ntbwhgUkF8ovzyp3WzioTihi7n4W/IC3x SXfeq2hdq1KMqmXa1zbNKUHz/lPv+dJlXUl94LKxACwm9+zkkrS4vQ==R2bc -----END PGP SIGNATURE-----
HI Steffen. In folder /var/vmail/example.com/user_a i've a dovecot-acl file with " user=test at example.com lrwstipekxa " IN mysql table user_shares i set: +---------------------+------------------+-------+ | from_user | to_user | dummy | +---------------------+------------------+-------+ | user_a at example.com | test at example.com | 1 | +---------------------+------------------+-------+ and the doveadm acl command: doveadm acl get -u user_a at example.com INBOX ID Global Rights user=test at example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a at example.com INBOX.FOLDER_A ID Global Rights user=test at example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a at example.com INBOX.FOLDER_B ID Global Rights user=test at example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a at example.com INBOX.FOLDER_C ID Global Rights user=test at example.com admin create delete expunge insert lookup post read write write-deleted write-seen Of course, user test at example.com can see all subfolder. Reading your post.. I can set an dovecot-acl file in each subfolder to set the permission? Thank's -----Messaggio originale----- Da: dovecot [mailto:dovecot-bounces at dovecot.org] Per conto di Steffen Kaiser Inviato: marted? 3 giugno 2014 15:45 A: Dovecot Mailing List Oggetto: Re: [Dovecot] Info about sharing mail folder -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 Jun 2014, Gianluca Calloni wrote:> But i need to know if is possible for user_a at mydomain.com to share > only 1 or > 2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared, > .INBOX_FOLDER_C not shared)What's the dovecot-acl in .INBOX and the three directories mentioned above? Or: doveadm acl get -u user_a at mydomain.com INBOX doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_A doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_B doveadm acl get -u user_a at mydomain.com INBOX.FOLDER_C Did you've share "INBOX" instead of the the subfolders A and B? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU43RXHz1H7kL/d9rAQIm2Af+KLrxxvgAk8TH2f0U6ldu2NidjnncWDv9 Y6vxbuoT/3gC9hL0XlwT/KE+oh/aKsu1tkDhTSq5TQuGVZ5L26CTntIDE9WPq9jf I6lyTzaP6gT3RjhrV0MZeMGLUerWijVs+sPmZMnqTzIIMGFaSqNv6hfAeVjhw98Y 3RMfNbOudTCrg7DGM/jQ3jTXGyJEhL5aI4mFG7JUPE1eYX8ZbTgHePQQtzaFiseK 6en6o25IYpduoQhwq5KEZFkiNLVZFE0ntbwhgUkF8ovzyp3WzioTihi7n4W/IC3x SXfeq2hdq1KMqmXa1zbNKUHz/lPv+dJlXUl94LKxACwm9+zkkrS4vQ==R2bc -----END PGP SIGNATURE-----
HI Steffen. In folder /var/vmail/example.com/user_a i've a dovecot-acl file with " user=test@example.com lrwstipekxa " IN mysql table user_shares i set: +---------------------+------------------+-------+ | from_user | to_user | dummy | +---------------------+------------------+-------+ | user_a@example.com | test@example.com | 1 | +---------------------+------------------+-------+ and the doveadm acl command: doveadm acl get -u user_a@example.com INBOX ID Global Rights user=test@example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a@example.com INBOX.FOLDER_A ID Global Rights user=test@example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a@example.com INBOX.FOLDER_B ID Global Rights user=test@example.com admin create delete expunge insert lookup post read write write-deleted write-seen doveadm acl get -u user_a@example.com INBOX.FOLDER_C ID Global Rights user=test@example.com admin create delete expunge insert lookup post read write write-deleted write-seen Of course, user test@example.com can see all subfolder. Reading your post.. I can set an dovecot-acl file in each subfolder to set the permission? Thank's -----Messaggio originale----- Da: dovecot [mailto:dovecot-bounces@dovecot.org] Per conto di Steffen Kaiser Inviato: martedì 3 giugno 2014 15:45 A: Dovecot Mailing List Oggetto: Re: [Dovecot] Info about sharing mail folder -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 Jun 2014, Gianluca Calloni wrote:> But i need to know if is possible for user_a@mydomain.com to share > only 1 or > 2 subfolder (E.g. .INBOX.FOLDER_A and .INBOX.FOLDER_B shared, > .INBOX_FOLDER_C not shared)What's the dovecot-acl in .INBOX and the three directories mentioned above? Or: doveadm acl get -u user_a@mydomain.com INBOX doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_A doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_B doveadm acl get -u user_a@mydomain.com INBOX.FOLDER_C Did you've share "INBOX" instead of the the subfolders A and B? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU43RXHz1H7kL/d9rAQIm2Af+KLrxxvgAk8TH2f0U6ldu2NidjnncWDv9 Y6vxbuoT/3gC9hL0XlwT/KE+oh/aKsu1tkDhTSq5TQuGVZ5L26CTntIDE9WPq9jf I6lyTzaP6gT3RjhrV0MZeMGLUerWijVs+sPmZMnqTzIIMGFaSqNv6hfAeVjhw98Y 3RMfNbOudTCrg7DGM/jQ3jTXGyJEhL5aI4mFG7JUPE1eYX8ZbTgHePQQtzaFiseK 6en6o25IYpduoQhwq5KEZFkiNLVZFE0ntbwhgUkF8ovzyp3WzioTihi7n4W/IC3x SXfeq2hdq1KMqmXa1zbNKUHz/lPv+dJlXUl94LKxACwm9+zkkrS4vQ==R2bc -----END PGP SIGNATURE-----