Removing the Inbox Prefix in Dovecot

This is how you remove the Inbox Prefix server-side when using Dovecot.

Firstly let’s create the file…

vi /etc/dovecot/conf.d/10-prefix.conf

Now we need to add the following to it…

namespace inbox {
separator = .
prefix =
inbox = yes
}

Finally restart Dovecot…

service dovecot restart

And you’re done.

Creating Default Mailboxes Automatically

This is how you can create default mailboxes automatically when using Dovecot and Plesk…

nano /etc/dovecot/conf.d/10-mailboxes.conf

And add the following…

namespace inbox {
  mailbox Drafts {
  special_use = \Drafts
  auto=subscribe
  }
  mailbox Trash {
    special_use = \Trash
    auto=subscribe
  }
  mailbox Sent {
    special_use = \Sent
    auto=subscribe
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
}

Then restart Dovecot…

service dovecot restart

Now when you add an email user in Plesk these mailboxes will be created automatically for them.