Question
How to enable Postfix debug mode?
Answer
It can be done by either one of the following processes:
Click on a section to expand
Via postconf utility
-
Login to the server over SSH
-
Execute the following (specifying the required IP addresses and/or recipient domain names to monitor instead ‘203.0.113.2’ and ‘example.com’):
# postconf debug_peer_level=4
# postconf debug_peer_list=203.0.113.2,example.com
Note: No spaces between values in
debug_peer_list
are allowed.To disable debug, run:
# postconf debug_peer_list=””
Editting the master.cf
file
-
Edit the
/etc/postfix/master.cf
config file, add -v right after “smtpd” in the file, like the following:smtp inet n - n - - smtpd -v
-
Apply the new settings:
# service postfix restart