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

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.

You cannot comment on this entry