Articles in this section

How to enable or disable Postfix debug mode?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

  • How to enable Postfix debug mode?
  • How to disable Postfix debug mode?

Answer

Via the 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 via postconf, run the following command:

    # postconf debug_peer_list=""

By editing the master.cf file
  1. To enable Postfix debug mode via the master.cf file, you should open the /etc/postfix/master.cf config file by using your favorite command-line text editor

  2. Add -v (for verbose) right after smtpd, as shown in the following example:

    ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (no) (never) (100)
    # ==========================================================================
    smtp inet n - n - - smtpd -v

    Note: To disable this Postfix debug mode, simply remove the -v you have added, save the changes and restart Postfix

  3. Save the changes to the file
  4. Apply the changes by restarting Postfix via this command:

    # systemctl restart postfix

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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.