Applicable to:
- Plesk for Linux
Question
Default mail folders (Drafts, Sent, Spam, etc.) are automatically listed as subfolders of Inbox in email clients (Thunderbird, Outlook, etc.) and can't be re-arranged.
How to move the default folders out from the Inbox in email clients?
Answer
By default, on a Plesk for Linux server, Dovecot stores the mail folders in the "Inbox" folder.
Jira item to re-work this behavior: PPM-5450 'Do not include all IMAP directories into INBOX (the "prefix" setting)'
This behavior can be changed by editing prefix in Dovecot namespace configuration:
- Connect to your Plesk server via SSH.
-
Create a new
.conffile for Dovecot, for example:# touch /etc/dovecot/conf.d/98-custom-namespace.conf
-
Open it in a text editor. In this example, we are using vi editor:
# vi /etc/dovecot/conf.d/98-custom-namespace.conf
-
Add the following namespace configuration:
CONFIG_TEXT: namespace inbox {
separator = .
prefix =
inbox = yes
mailbox Sent {
auto = subscribe # autocreate and autosubscribe the Sent mailbox
special_use = \Sent
}
mailbox Spam {
auto = create # autocreate Spam, but don't autosubscribe
special_use = \Junk
}
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Trash {
auto = create
special_use = \Trash
}
}Here, we remove the prefix "INBOX".
This configuration will override the default namespace configuration in/etc/dovecot/dovecot.conf. - Save the changes and close the file.
-
Apply the new configuration changes using the
plesk repair mailutility:# plesk repair mail -y
Per-client solution
- Open Thunderbird.
-
Right-click on the mailbox name and click Server Settings > Advanced.
-
In IMAP server directory field, input INBOX:
- Restart Thunderbird mail client.
Comments
Please sign in to leave a comment.