Jump to main content
Avanan Administration Guide
Debugging Postfix
View Mail Logs
-
To see which emails are being tried to send via Postfix:
-
# journalctl -u postfix -f
-
or
-
# tail -f /var/log/mail.log
Check the Configuration
-
To check the syntax of the Postfix configuration file:
-
# postfix check
-
If you need to review the configuration, this command shows only the used parameters:
-
# postconf -n
Show the Mail Queue
-
# mailq
-
or
-
# postqueue -p
Flush the Mail Queue
During testing, emails may remain stuck in the queue because of incorrect relay parameters or temporary connectivity issues.
-
To retry delivery of queued emails:
-
# postqueue -f
Delete the Mail Queue
-
To delete all queued emails:
-
# postsuper -d ALL
-
To delete a specific queued email with ID:
-
# postsuper -d QUEUE_ID