Get your free beta license ↗
Mail · Dovecot

Mail bounces even though the mailbox has room

Last updated 30 Nov 2026
Summary

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.

Output
552 5.2.2 <user@example.com> Not enough disk quota

You see these errors in /var/log/maillog on AlmaLinux or /var/log/mail.log on Ubuntu.

Output
Error: Mailbox INBOX: file_dotlock_create(/home/USER/files/mail/example.com/user/dovecot-uidlist) failed: Disk quota exceeded
Output
sieve: msgid=<...>: failed to store into mailbox 'INBOX': Not enough disk quota

The 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

  1. Check the customer's disk usage against their package's limit.

    urbestack-disk-usage --name USER
    quota -u -w USER
  2. Free 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 20480
  3. You can also move the customer to a larger package.

    urbestack-user-set --name USER --package PACKAGE
  4. Check the customer's disk usage against the package limit again, then ask the senders to resend their messages.