Mail bounces even though the mailbox has room
Incoming mail bounces with Not enough disk quota even though the mail account is under its own quota. The customer has reached their disk quota, and freeing space or raising that quota lets Dovecot write to the mailbox.
Symptoms
Senders receive a bounce with the following message.
552 5.2.2 <user@example.com> Not enough disk quotaYou see these errors in /var/log/maillog on AlmaLinux or /var/log/mail.log on Ubuntu.
Error: Mailbox INBOX: file_dotlock_create(/home/USER/files/mail/example.com/user/dovecot-uidlist) failed: Disk quota exceededsieve: msgid=<...>: failed to store into mailbox 'INBOX': Not enough disk quotaThe command urbestack-mail-account-list --name example.com --usage shows the mail account under its own quota.
Cause
Mailboxes live in the customer's home directory, so the customer's disk quota counts their mail along with their sites and files. When the customer reaches that quota, Dovecot cannot write the message even if the mailbox is under its own quota.
The server bounces the message and leaves it out of the queue. The sender must send it again.
Resolution
Check the customer's disk usage against their package's limit.
urbestack-disk-usage --name USERquota -u -w USERFree space in the customer's home directory or raise the package's disk limit. A higher package limit applies to every customer on that package.
urbestack-package-set --name PACKAGE --disk-mb 20480You can also move the customer to a larger package.
urbestack-user-set --name USER --package PACKAGECheck the customer's disk usage against the package limit again, then ask the senders to resend their messages.