Difference between revisions of "Verbose logging for specific SMTP connections"

(Created page with "{{BC|Certified}} __FORCETOC__ <div class="col-md-12 ibox-content"> =Verbose logging for specific SMTP connections= <hr> {{KB|{{ZC}}|{{ZCS 9.0}}|{{ZCS 8.8}}|}} {{WIP}} <hr> ==...")
 
m
 
Line 4: Line 4:
 
=Verbose logging for specific SMTP connections=
 
=Verbose logging for specific SMTP connections=
 
<hr>
 
<hr>
{{KB|{{ZC}}|{{ZCS 9.0}}|{{ZCS 8.8}}|}}
+
{{KB|{{WIP}}|{{ZCS 9.0}}|{{ZCS 8.8}}|}}
{{WIP}}
 
 
<hr>
 
<hr>
  
 
==Problem==
 
==Problem==
 
How to enable Postfix debug logging for a particular client or sender server?  
 
How to enable Postfix debug logging for a particular client or sender server?  
 +
  
 
==Solution==
 
==Solution==
Line 20: Line 20:
  
 
'''2)''' Add sender's IP or hostname or domain name in the debug_peer_list.   
 
'''2)''' Add sender's IP or hostname or domain name in the debug_peer_list.   
  postconf -e debug_peer_list='123.185.10.201,example.com'  
+
  postconf -e debug_peer_list='192.168.0.124,example.com'  
  
 
'''Note:''' We can define one or more IP addresses, domains, or net/masks.  White spaces are not allowed between the values.  
 
'''Note:''' We can define one or more IP addresses, domains, or net/masks.  White spaces are not allowed between the values.  
Line 27: Line 27:
 
'''3)''' Reload postfix to make the change effective immediately.  
 
'''3)''' Reload postfix to make the change effective immediately.  
 
  postfix reload
 
  postfix reload
 +
 +
 +
'''4)''' Now check log file "<code>/var/log/zimbra.log</code>".
  
  

Latest revision as of 18:41, 2 June 2021

Verbose logging for specific SMTP connections


   KB 24293        Last updated on 2021-06-2  




0.00
(0 votes)

Problem

How to enable Postfix debug logging for a particular client or sender server?


Solution

To debug smtp connection from a specific client or sender server, we need to configure the parameters debug_peer_level and debug_peer_list.

1) Increase debug level. (default: 2)

postconf -e debug_peer_level=6 


2) Add sender's IP or hostname or domain name in the debug_peer_list.

postconf -e debug_peer_list='192.168.0.124,example.com' 

Note: We can define one or more IP addresses, domains, or net/masks. White spaces are not allowed between the values.


3) Reload postfix to make the change effective immediately.

postfix reload


4) Now check log file "/var/log/zimbra.log".


Once troubleshooting is done, then disable debug logging:

postconf debug_peer_list="" 
postfix reload


Additional information

http://www.postfix.org/DEBUG_README.html

http://www.postfix.org/postconf.5.html#debug_peer_level

http://www.postfix.org/postconf.5.html#debug_peer_list



Submitted by: Heera Singh Koranga
Verified Against: ZCS 9.0,8.8.15 Date Created: 2021-05-24
Article ID: https://wiki.zimbra.com/index.php?title=Verbose_logging_for_specific_SMTP_connections Date Modified: 2021-06-02



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search