Problems with permissions after upgrade Mail and others
Posted: Mon 26. Oct 2026, 20:44
I've been running into a lot of problems with permissions after upgrading to Ubuntu 24.04 on one of my servers.
The most important is recovering the mail folders and the reception of emails (last received on Saturday, before the upgrade, but I now realize the problems started earlier).
The mail client I was using was Rainloop, but since it's been removed and the substitute as well, I've just switched to Roundcube today after finding no mail folders. Someting like 15 days ago I was still able to access all the folders on Rainloop.
The error I have now is and I don't know which user has to actually own and have permissions for it.
Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2026-10-26 20:15:15]
Error: mkdir(/var/mail/vhosts/domain.tld/user) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned by 0:0 mode=0755)
I'm having problems with Nextcloud and other software as well, including some sql queries in adminer for a certain user, and some of the permissions that appear as user user should actually be www-data www-data according to the software documentation, so I'm not sure about what happened.
The most important is recovering the mail folders and the reception of emails (last received on Saturday, before the upgrade, but I now realize the problems started earlier).
The mail client I was using was Rainloop, but since it's been removed and the substitute as well, I've just switched to Roundcube today after finding no mail folders. Someting like 15 days ago I was still able to access all the folders on Rainloop.
The error I have now is and I don't know which user has to actually own and have permissions for it.
Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2026-10-26 20:15:15]
Error: mkdir(/var/mail/vhosts/domain.tld/user) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned by 0:0 mode=0755)
I'm having problems with Nextcloud and other software as well, including some sql queries in adminer for a certain user, and some of the permissions that appear as user user should actually be www-data www-data according to the software documentation, so I'm not sure about what happened.