Brian Safford: > Is there a way to get postfix to log the sending IP address on the from= > line like sendmail does ( relay=foo.bar.com[1.2.3.4] ) ? >
Not until the logging format is configurable (and with more than 600 main.cf parameters already, adding parameters does not always make Postfix easier to use). In the mean time, you can get the address with the client= line logged by the Postfix SMTP server, and use the queue ID to correlate this with the from= line. Sep 22 00:05:56 spike postfix/smtpd[47860]: 2EC101F3EA1: client=english-breakfast.cloud9.net[168.100.1.7] Sep 22 00:05:56 spike postfix/qmgr[52674]: 2EC101F3EA1: from=<owner-postfix-us...@postfix.org>, size=5596, nrcpt=1 (queue active) Wietse