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.
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 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
df -h /var; df -i /var- Remove junk (logs, spam queue)
- Extend the volume and restart
postfix
Detailed fix by platform
Shell
- bash
df -h /var /var/spool/postfix df -i /var sudo postsuper -d ALL deferred # only for spam floods
How to diagnose
- Space — Free?
- Inodes — Free?
- 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:
Similar errors
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- self-signed certificate (SMTP TLS) Nodemailer: Error: self signed certificate in certificate chain (code: 'ESOCKET') / unable to verify the first certificate
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 18 Nov 2026