📖 ~1 min read
Table of contents
Symptom & Impact
Postfix service is active but outbound/inbound messages accumulate in deferred queue.
Environment & Reproduction
Seen after relay path changes, custom spool mounts, or policy tightening.
systemctl status postfix
postqueue -p | head -n 30
mailq | wc -l
Root Cause Analysis
SELinux policy denies Postfix process access to required network or filesystem resources.
Quick Triage
Correlate queue errors with audit denials.
journalctl -u postfix -n 80 --no-pager
ausearch -m avc -ts recent | tail -n 40
getenforce
Step-by-Step Diagnosis
Check relevant SELinux booleans, labels, and relay connectivity.
getsebool -a | grep postfix
ls -Zd /var/spool/postfix
ss -lntp | grep ':25 '

Solution – Primary Fix
Set required Postfix SELinux booleans and relabel spool path.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo setsebool -P allow_postfix_local_write_mail_spool on
sudo restorecon -Rv /var/spool/postfix
sudo systemctl restart postfix

Solution – Alternative Approaches
Generate minimal local policy module if denial is valid and repeated.
sudo ausearch -m avc -ts recent | audit2allow -M postfix_local
sudo semodule -i postfix_local.pp
Verification & Acceptance Criteria
Deferred queue drains and new messages are delivered successfully.
postqueue -f
mailq
journalctl -u postfix -n 40 --no-pager
Rollback Plan
Remove custom module/booleans if policy broadening is deemed unsafe.
sudo semodule -r postfix_local || true
sudo setsebool -P allow_postfix_local_write_mail_spool off
Prevention & Hardening
Review AVC alerts during change windows and avoid disabling SELinux.
sealert -a /var/log/audit/audit.log | head -n 60
getenforce
Related Errors & Cross-Refs
Related to DNS resolver issues, firewall SMTP blocks, and relay credential failures.
Related tutorial: View the step-by-step tutorial for rhel-10.
View all rhel-10 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
RHEL mail server and SELinux policy tuning documentation for Postfix.
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.