Skip to main content

How to share IMAP folders with other users



  • cPanelWilliam
    Hello! At this time, shared mail folders aren't supported with cPanel as it's not something that can be implemented easily within the product without causing issues with authentication. I apologize for this inconvenience. With that said, we do have an open feature request on this topic: If you're unsure of how to go about implementing this within Dovecot, I would recommend contacting a systems administrator for added guidance.
  • keat63
    This could work in a fashion. You both require access to the same IMAP mailbox. Lets say you are the manager and you have your own private mailbox, only you have access. But you both share access to the admin mailbox. You could simply drop from your private mailbox to a folder on the admin mailbox. Now you can both see the dropped email. However, technically, you would have access to his complete mailbox. Another way would be to create a whole new shared email account just for this purpose, where you would drag and drop. Retaining the admins privicy.
  • Rachel S
    Enable Mailbox Sharing Below config may help to achieve this: To enable mailbox sharing, you must check you have plugin acl enabled in Dovecot config file /etc/dovecot/dovecot.conf as mentioned below: For Dovecot-1.2: # Part of file: /etc/dovecot/dovecot.conf protocol lda { mail_plugins = ... acl } protocol imap { mail_plugins = ... acl imap_acl } For Dovecot-2.x: # Part of file: /etc/dovecot/dovecot.conf mail_plugins = ... acl protocol imap { mail_plugins = ... imap_acl } Restarting the Dovecot service is a must. Test shared folder Example: share's Sent folder to user Note: Dots must be inserted before each IMAP command. # telnet localhost 143 # <- Type this. * OK [...] Dovecot ready. . login passwd # <- Type this. # Login with full email address and password . OK [... ACL ..] Logged in . SETACL Sent rli # <- Type this. # Share folder `Sent` with user, # 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, you should see the shared folder. Some more details: Once you shared the folder with the SETACL command, dovecot will insert a record in MySQL database. With OpenLDAP backend, it's stored in iredadmin.share_folder. With MySQL/MariaDB/PostgreSQL backends, it's stored in vmail.share_folder. # mysql -uroot -p mysql> USE vmail; mysql> SELECT * FROM share_folder; +-----------------+--------------------+-------+ | from_user | to_user | dummy | +-----------------+--------------------+-------+ | | | 1 | +-----------------+--------------------+-------+

Please sign in to leave a comment.