Postfix: warning: database /etc/postfix/transport.db is older than source file (run postmap)
A hash/lookup table was edited but its compiled .db file wasn't rebuilt, so Postfix uses the old data.
warning: database /etc/postfix/transport.db is older than source file /etc/postfix/transportdatabase is older than source file postmappostfix warning database older than sourcehash:/etc/postfix/virtual is older than source Meaning
Rebuild with postmap /etc/postfix/transport (or postalias for aliases) after every edit, then postfix reload. Automate in deployment scripts. The warning appears in /var/log/mail.log at each lookup until fixed.
Common causes
- Edited map without running postmap
- Deployment copied source only
- File timestamp issues
- Container image missing built maps
- Permissions prevented writing .db
⚡ Quick fix
sudo postmap /etc/postfix/transportsudo postfix reload- Add postmap to the deployment step
Detailed fix by platform
Shell
- bash
sudo postmap /etc/postfix/transport /etc/postfix/virtual /etc/postfix/sasl_passwd sudo postfix reload
How to diagnose
- .db — Newer than source?
- postmap — Run?
- Reload — Done?
🔧 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
- aliases Postfix/sendmail: fatal: open database /etc/aliases.db: No such file or directory (run newaliases)
- loops back Postfix: mail for example.com loops back to myself (status=bounced, local loop)
- lost connection Postfix: lost connection after EHLO / SSL_accept error from client (TLS handshake problems)
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
- SES: Maximum sending rate exceeded Amazon SES: Throttling — Maximum sending rate exceeded (454 Throttling failure)
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