Mailbox sharing with symlinks¶

It’s possible to share mailboxes simply by symlinking them among user’s private mailboxes. See Filesystem permissions (in shared mailboxes) for issues related to filesystem permissions.

Maildir¶

ln -s /home/user2/Maildir/.Work /home/user1/Maildir/.shared.user2
ln -s /home/user3/Maildir/.Work /home/user1/Maildir/.shared.user3

Now user1 has a “shared” directory containing “user2” and “user3” child mailboxes, which point to those users’ “Work” mailbox.

With Maildir++ layout it’s not possible to automatically share “mailbox and its children”. You’ll need to symlink each mailbox separately. With the “fs” layout this is possible though.

mbox¶

Doing the same as in the above Maildir example:

mkdir /home/user1/mail/shared
ln -s /home/user2/mail/Work /home/user1/mail/shared/user2
ln -s /home/user3/mail/Work /home/user1/mail/shared/user3

One additional problem with mbox format is the creation of dotlock files. The dotlocks would be created under user1’s directory, which makes them useless. Make sure the locking works properly with only fcntl or flock locking (See Mbox Locking) and just disable dotlocks. Alternatively instead of symlinking an mbox file, put the shared mailboxes inside a directory and symlink the entire directory.

Logo

Navigation

Contents

  • Settings
  • Administrative Manual
  • Configuration Manual
    • Authentication
    • Dovecot Config File Syntax
    • Dovecot Dictionaries
    • FTS (Full Text Search)
    • HAProxy
    • Guides and tutorials
    • Mail Location Settings
    • Namespaces
    • Mailbox Settings
    • OS Configuration
    • Plugin configurations
    • Protocols
    • Quota Configuration
    • Sieve
    • Statistics
    • Access Control Lists
    • apparmor plugin
    • Common configuration
    • Director Settings
    • Dovecot SSL configuration
    • Dovemon
    • Event Export
    • Event Filtering
    • Forwarding parameters in IMAP/POP3/LMTP/SMTP proxying
    • General Backend Settings
    • General Settings
    • Hibernation
    • Home Directories for Virtual Users
    • IMAP Compression
    • IMAP METADATA
    • Last Login Plugin
    • Lazy Expunge
    • Dumpster
    • Mail Cache Settings
    • mail-crypt-plugin
    • NFS
    • notify-status plugin
    • stats (old_stats)
    • Performance tuning
    • Proxy Settings
    • Push Notification Framework
    • Quick Configuration
    • Quota Clone Plugin
    • Quota Plugin
    • Replication with dsync
    • Resource Usage
    • Security tuning
    • Service configuration
    • Shared mailboxes
    • Spam Reporting
    • SSL Configuration
    • System Calls Optimization
    • System Users
    • Virtual Attachments Plugin
    • Virtual Plugin
    • Virtual Users
    • Welcome plugin
    • Zlib plugin
    • OpenMetrics exporter for statistics
    • Old Statistics
  • Installation guide
  • Developer Manual

  • Edit Documentation
  • Repositories
  • Download

Related Topics

  • Documentation overview
    • Configuration Manual
      • Shared mailboxes
        • Previous: Mailbox sharing between users
        • Next: Spam Reporting

Quick search


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Revision ee17e06626965d66af343507cfc0f6f2a2d72ec3

©Dovecot Authors. | Powered by Sphinx 4.2.0 & Alabaster 0.7.13 | Page source