queue write Email / SMTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

Postfix: fatal: queue file write error / No space left on device (queue or /var full)

Postfix can't write to its queue directory because the disk, inode table or quota is full.

Exact message you may see fatal: queue file write errorpostfix/cleanup: fatal: queue file write errorNo space left on device mail queuepostfix/qmgr: warning: mail queue is full disk spacefatal: mail queue directory write error
Seen on: Postfix Linux

Meaning

Free space on the filesystem holding /var/spool/postfix (logs, huge queue, core files), check inodes (df -i), clear old mail logs, and purge spam from the queue. Expand the volume and monitor free space. Restart Postfix when done.

Common causes

  • Disk or inodes full
  • Huge queue from a spam flood
  • Unrotated logs
  • Quota on the mail spool volume
  • Container volume too small

⚡ Quick fix

  1. df -h /var; df -i /var
  2. Remove junk (logs, spam queue)
  3. Extend the volume and restart postfix

Detailed fix by platform

Shell

  1. bash
    df -h /var /var/spool/postfix
    df -i /var
    sudo postsuper -d ALL deferred   # only for spam floods

How to diagnose

  1. Space — Free?
  2. Inodes — Free?
  3. Queue — Spam flood?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

4.3.1 — Exchange: 452 4.3.1 Insufficient system resources (disk space or back pressure on the transport queue) (Email / SMTP)4.3.1aliases — Postfix/sendmail: fatal: open database /etc/aliases.db: No such file or directory (run newaliases) (Email / SMTP)aliasesENOSPC — no space left on device (Docker / Linux) (Docker)ENOSPCExim retry — Exim: retry time not reached for any host (message deferred, previous failure still in the retry window) (Email / SMTP)Exim retryfrozen — Exim: message is frozen — recipient or sender can't be bounced (frozen bounce messages pile up) (Email / SMTP)frozenmail_location — Dovecot: Failed to autocreate mailbox / mkdir(...) failed: Permission denied (mail_location, vmail user) (Email / SMTP)mail_locationmailq — Postfix queue keeps growing: many deferred messages (postqueue -p, flush, find the reason) (Email / SMTP)mailqPostfix: bind 0.0.0.0 port 25: Address already in use — Postfix: fatal: bind 0.0.0.0 port 25: Address already in use (Email / SMTP)Postfix: bind 0.0.0.0…queue wri…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.