# Mail bounces even though the mailbox has room

UrbeStack sysadmin note about Dovecot. Last updated 30 Nov 2026.

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

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

```
urbestack-disk-usage --name USER
```

```
quota -u -w USER
```

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
```

You can also move the customer to a larger package.

```
urbestack-user-set --name USER --package PACKAGE
```

Check the customer's disk usage against the package limit again, then ask the senders to resend their messages.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
