This tutorial is available in other languages. Help translate more
简体中文 /
Note
0.9.0
, mailbox sharing are enabled by default, you don't
need to modify any config file.0.7.0
, mailbox sharing related settings are configured
in Dovecot but not enabled, what you need to do is enabling acl
plugin
as mentioned below.To enable mailbox sharing, please make sure you have plugin acl
enabled
in Dovecot config file /etc/dovecot/dovecot.conf
like below:
# Part of file: /etc/dovecot/dovecot.conf
protocol lda {
mail_plugins = ... acl
}
protocol imap {
mail_plugins = ... acl imap_acl
}
# Part of file: /etc/dovecot/dovecot.conf
mail_plugins = ... acl
protocol imap {
mail_plugins = ... imap_acl
}
Restarting Dovecot service is required.
Example: share from@domain.ltd
's Sent
folder to user testing@domain.ltd
.
Warning
Do not forget the dot before each IMAP command.
# telnet localhost 143 # <- Type this.
* OK [...] Dovecot ready.
. login from@domain.ltd passwd # <- Type this.
# Login with full email address and password
. OK [... ACL ..] Logged in
. SETACL Sent testing@domain.ltd rli # <- Type this.
# Share folder `Sent` with user testing@domain.ltd,
# with permissions: read (r), lookup (l) and insert (i).
. OK Setacl complete.
^] # <- Press `Ctrl + ]` to exit telnet.
telnet> quit
Log into Roundcube webmail or SOGo as user testing@domain.ltd
, you should
see the shared folder.
Some more details:
After you shared folder with SETACL
command, dovecot will insert a record
in MySQL database.
iredadmin.share_folder
.vmail.share_folder
.# mysql -uroot -p
mysql> USE vmail;
mysql> SELECT * FROM share_folder;
+-----------------+--------------------+-------+
| from_user | to_user | dummy |
+-----------------+--------------------+-------+
| from@domain.ltd | testing@domain.ltd | 1 |
+-----------------+--------------------+-------+
acl
to manage mailbox sharing.Sharing
.