By merubuntu
Hi.
Now I have the mail server working IMAP mode. I’m interested in configure the mail server in order to set default mail folders (like Inbox, Trash and Sent folders) per mail account.
Is there a way or command in Ubuntu to deal with it? Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try this
Open /etc/dovecot/conf.d/20-imap.conf
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 }
Thank you very much, @sianios. It worked like a charm!!! Best regards from San Luis Potosi, Mexico.
Open /etc/dovecot/conf.d/20-imap.conf There you will find the protocol imap section and change the mail_plugins line to mail_plugins = $mail_plugins autocreate Then add the following at the end of the file.
autocreate = Trash
autocreate2 = Junk
autocreate3 = Drafts
autocreate4 = Sent
autosubscribe = Trash
autosubscribe2 = Junk
autosubscribe3 = Drafts
autosubscribe4 = Sent
}```
Now the new users will get the folders above by default.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.