I’ve been building a new mailserver and having problems with the mailbox being read-only.

The configuration uses PAM (standard Linux user accounts) for authentication.

The fix was quite simple. In the config file /etc/dovecot/conf.d/10-mail.conf add the following line:

mail_privileged_group = mail

Then restart dovecot. Your Inbox will now be writable!