Ubuntu postfix+dovecot – Create default Inbox, Sent, and Trash folder per account


Open /etc/dovecot/conf.d/20-imap.conf

sudo nano /etc/dovecot/conf.d/20-imap.conf

Search for mail_plugins and make the following changes on that line

mail_plugins = $mail_plugins
mail_plugins = $mail_plugins autocreate

Then add the following at the end of the file

plugin {
     autocreate = Trash
     autocreate2 = Junk
     autocreate3 = Drafts
     autocreate4 = Sent
     autosubscribe = Trash
     autosubscribe2 = Junk
     autosubscribe3 = Drafts
     autosubscribe4 = Sent

Restart dovecot

sudo service dovecot restart


More readings


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.