Prompt
How do I troubleshoot delayed SMTP delivery on a busy queue?
Latest observation
Troubleshooting delayed SMTP delivery on a busy queue is mostly about figuring out where the delay is happening: before the message enters the queue, while it sits in the queue, or while the MTA is trying to deliver it.
1) Confirm the delay is real
- Check the message timestamps:
- submission time
- queue time
- first delivery attempt
- final delivery time
- Compare mail logs and queue status to see whether the message is:
- waiting in queue
- deferred/retried
- being accepted slowly by the remote server
2) Check queue health
Look for:
- Queue depth growing over time
- Oldest message age
- A high number of deferred or active messages
- Repeated retries to the same domains
If the queue is growing, the MTA may be underprovisioned or rate-limited.
3) Review MTA logs
Inspect logs for:
- connection timeouts
- DNS lookup failures
- TLS negotiation problems
- temporary remote rejections (
4xx) - local resource issues like disk or memory pressure
Common log clues:
Connection timed outHost not foundDeferred: 421Too many connectionsMailbox fullRate limited
4) Check DNS resolution
SMTP delivery often stalls due to DNS problems:
- slow or failing MX lookups
- broken resolvers
- IPv6/IPv4 fallback delays
- DNS timeouts
Test:
- MX resolution for affected domains
- reverse DNS if your MTA/provider requires it
- resolver latency
5) Check remote server behavior
If delays happen mostly for certain domains:
- the remote system may be throttling
- your IP may have a poor reputation
- the destination may enforce connection limits
- the remote server may be slow or unstable
Try:
- identifying if delays are domain-specific
- reducing concurrency to that domain
- reviewing bounce/defer patterns
6) Inspect local resource pressure
A busy queue can be slowed by:
- high CPU
- low RAM / swapping
- disk I/O bottlenecks
- full mail spool disks
- too many worker processes or too few
Check:
- CPU load
- memory and swap usage
- disk free space
- I/O wait
- file descriptor limits
7) Review queue settings and concurrency
A “busy queue” can be a configuration problem:
- too few delivery workers
- long retry intervals
- overly conservative concurrency limits
- anti-abuse throttles
- DNS cache settings
Potential fixes:
- increase delivery concurrency carefully
- tune per-domain concurrency
- adjust retry schedules
- enable DNS caching if supported
8) Identify poison messages
One bad message or recipient can slow parts of the queue:
- huge attachments
- malformed headers
- problematic recipient domains
- messages that repeatedly defer
Isolate:
- queue items repeatedly failing
- specific sender/recipient patterns
- large messages
9) Check for backlog causes outside SMTP
Delivery delay may be caused upstream by:
- application spikes
- spam filtering
- antivirus scanning
- content filtering
- queue ingestion bottlenecks
10) Use direct tests
Useful tests:
dig MX example.comtelnet/ncto port 25openssl s_client -starttls smtp ...- send a controlled test message and trace its path
- compare fast vs slow recipients
11) What to monitor
Set alerts for:
- queue size
- oldest queued message age
- defer rate
- delivery latency
- DNS failure rate
- SMTP 4xx/5xx rates
- disk and memory pressure
12) General remediation steps
- Restart or reload the MTA if it’s stuck
- Clear obvious DNS issues
- Reduce submission bursts
- Increase queue workers if safe
- Throttle problematic destinations
- Fix resource bottlenecks
- Contact remote providers if they’re rate limiting you
If you want, I can give you a step-by-step troubleshooting checklist for Postfix, Exim, or Exchange, or help interpret a specific SMTP log snippet.