On Tue, Jan 17, 2012 at 06:57:57AM -0500, Wietse Venema wrote: > Postfix allows a client to connect to the server through a proxy. > Naively doing a getsockname() call on the SMTP server's file > descriptor would produce an incorrect result (the port of the > proxy-to-Postfix connection). The correct result uses the port > (and IP address) of the client-to-proxy connection. And that is > just one scenario that uses ports and that you weren't aware of.
Understood. Yet I didn't add the getsockname(). It was already there. Presumably that means that the server IP address that is handed to Dovecot was already wrong (under some circumstances). -Phil
