Plesk

How to enable Postfix debug mode

Question

How to enable Postfix debug mode?

Answer

Via postconf utility

  1. Login to the server over SSH

  2. 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

  1. 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

  2. Apply the new settings:

    # service postfix restart

    Note: Postfix restart will lead to email service downtime for a while. Consider doing it in less working hours.

Exit mobile version