This is an update to two previous post regarding the removal of the Inbox Prefix, and Creating the default Mailboxes automatically in Dovecot.
If you have created the files mentioned in those posts, please delete them before you continue.
# nano /etc/dovecot/conf.d/99-mailboxes.conf
You can then add the following to the file…
namespace inbox {
  separator = .
  prefix = 
  inbox = yes
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe 
    special_use = \Junk
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
}
then restart Dovecot…
# systemctl restart dovecot
Ideally you should do this on a new server and migrate your data over.