On 5/9/2015 3:34 PM, Wietse Venema wrote: > Yannik Sembritzki: >> Hi everyone, >> >> is it possible at all to log the local port that is used for a >> connection? There is "smtpd_client_port_logging" but this seems to only >> log the remote port. > > It's not implemented, due to lack of demand. > > Wietse >
If you have postfix listening on several ports and want to know which port the client connected to, you can set a different syslog name to differentiate them in the logs. For example, it's common to set ' -o syslog_name=postfix/submission' on the port 587 submission listener. There is currently no mechanism to record the port postfix sends from when sending mail. -- Noel Jones