How do I log the connection IP in qmail (H-Sphere)?

~ 0 min
2014-12-16

In versions newer than H-Sphere 2.5 Patch 1 you can increase the logging level by editing the "/var/qmail/control/options" file. Simply add (or edit any existing setting) to have "smtplog=2" on it's own line.

 

WIth this added restart qmail "/etc/init.d/qmaild restart" new connections will now be logged will be more verbose - into "/var/log/maillog" this will also include the IP address used to initiate the connection to qmail.

Average rating 0 (0 Votes)

You cannot comment on this entry