How important is tunneling IMAP and SMTP through nginx?

Delta Chat version

chatmail relay 1.6.0

Details

The nginx.conf created on the chatmail server by the deployment process has a ‘stream’ section that uses ALPN to support tunneling IMAP and SMTP through port 443:

How important is this functionality? Is limiting traffic to port 443 common, or just something that happens on certain private networks?

A side effect of the stream forwarding is that all HTTPS connections to nginx appear to come from 127.0.0.1. Is that intentional, to avoid logging client IP addresses? (The other services log IP addresses when connected to directly, so I don’t imagine nginx logging them would be a problem, but I’m curious to know what the design goals are.)

It happens with a lot of free proxies so if user has to use a proxy because their internet connection is restricted, they likely can only connect to port 80 and port 443.

3 Likes