π ~1 min read
Table of contents
Symptom & Impact
Outbound email remains in queue for long periods, delaying alerts and automated notifications from production systems.
Environment & Reproduction
mailq shows increasing deferred items and periodic queue runs fail to complete successful deliveries.
Root Cause Analysis
DNS resolution issues, blocked outbound SMTP, invalid smart host configuration, or TLS negotiation problems are common triggers.
Quick Triage
Check mailq, tail /var/log/maillog, and test connectivity to target SMTP relays on required ports.
Step-by-Step Diagnosis
Analyze deferred reasons per queue ID and verify resolver plus relay reachability from the host. image_ref=0

Solution – Primary Fix
Correct relayhost and DNS settings, restart sendmail, and force queue processing with sendmail -q -v. image_ref=1
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Switch local notifications to msmtp or nullmailer when full MTA capability is unnecessary.
Verification & Acceptance Criteria
Queue drains to expected baseline, and test messages are delivered within defined operational latency.
Rollback Plan
Revert to previous sendmail.mc, rebuild configuration, and restart service if new relay settings fail.
Prevention & Hardening
Continuously monitor queue depth and SMTP response codes with alerts for prolonged defer spikes.
Related Errors & Cross-Refs
Frequently linked to reverse DNS mismatches, SPF rejections, and expired relay-side certificates.
Related tutorial: View the step-by-step tutorial for freebsd-12.
View all freebsd-12 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
See man sendmail, FreeBSD mail chapter, and relay provider SMTP troubleshooting guides.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.