# How important is tunneling IMAP and SMTP through nginx?

**URL:** <https://forum.delta.chat/t/how-important-is-tunneling-imap-and-smtp-through-nginx/4002>\
**Category:** Chatmail Relays\
**Created:** [August 11, 2025, 3:54pm UTC](https://forum.delta.chat/t/how-important-is-tunneling-imap-and-smtp-through-nginx/4002 "2025-08-11T15:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliffmccarthy](https://forum.delta.chat/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@cliffmccarthy](https://forum.delta.chat/u/cliffmccarthy)\
**Post date:** [August 11, 2025, 3:54pm UTC](https://forum.delta.chat/t/how-important-is-tunneling-imap-and-smtp-through-nginx/4002/1 "2025-08-11T15:54:33Z")

</div>

**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:

> <https://github.com/chatmail/relay/blob/main/cmdeploy/src/cmdeploy/nginx/nginx.conf.j2#L27>

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.)

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [August 11, 2025, 4:18pm UTC](https://forum.delta.chat/t/how-important-is-tunneling-imap-and-smtp-through-nginx/4002/2 "2025-08-11T16:18:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:18pm UTC](https://forum.delta.chat/t/how-important-is-tunneling-imap-and-smtp-through-nginx/4002/3 "2026-10-06T15:18:57Z")

</div>


