# Run a email server and proxy it through zrok?

**URL:** <https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889>\
**Category:** zrok\
**Created:** [July 24, 2024, 9:15pm UTC](https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889 "2024-07-24T21:15:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aikooo7](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/aikooo7/32/2014_2.png) [@aikooo7](https://openziti.discourse.group/u/aikooo7)\
**Post date:** [July 24, 2024, 9:15pm UTC](https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889/1 "2024-07-24T21:15:36Z")

</div>

Hello everyone, I am wanting to host a email server for the fun and for sending emails in my selfhosted apps but don't want to port forward, cf is out the question for what I know so is zrok a option? Have someone done it?

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [July 24, 2024, 9:20pm UTC](https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889/2 "2024-07-24T21:20:14Z")

</div>

It's a great option and I know one person that did it already. I guess it's a matter of configuring some MTA to send and to listen as an open relay, then use zrok to control access to the MTA's listening port.

You could run the zrok-share Linux service on the MTA host pointing at the listening port as a tcpTunnel target. Then you could run a private access on the hosts that need to send email.

There's [a Docker private access example here](https://docs.zrok.io/docs/guides/docker-share/docker_private_share_guide/#access-the-private-share) you could use if the sending hosts have Docker. There's not a zrok-access Linux service yet, but it wouldn't be too complicated to [make one if someone's looking for a little project](https://github.com/openziti/zrok/issues/698).

```bash
sudo -E zrok access private smtpsharetoken --bind 127.0.0.1:25

```

---

<div class="post-metadata">

**Author:** ![aikooo7](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/aikooo7/32/2014_2.png) [@aikooo7](https://openziti.discourse.group/u/aikooo7)\
**Post date:** [November 3, 2024, 4:27pm UTC](https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889/3 "2024-11-03T16:27:09Z")

</div>

Really sorry for not answering you I didn't remember this but well, zrok doesn't do public tcp tunnels right? If not this is not possible

---

<div class="post-metadata">

**Author:** ![qrkourier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/qrkourier/32/52_2.png) [@qrkourier](https://openziti.discourse.group/u/qrkourier)\
**Post date:** [November 4, 2024, 3:10pm UTC](https://openziti.discourse.group/t/run-a-email-server-and-proxy-it-through-zrok/2889/4 "2024-11-04T15:10:20Z")

</div>

Yes. You can self-host a "personalized frontend" to provide a public TCP proxy for a specific zrok private share.

> **[Personalized Frontend | Zrok](https://docs.zrok.io/docs/guides/self-hosting/personalized-frontend/)**
>
> This guide describes an approach that enables a zrok user to use a hosted, shared instance (zrok.io) and configure their own personalized frontend, which enables custom DNS and TLS for their shares.
