Private Network Internet Connection (No Public IP), so i setup this server with Cloudflare Tunnel
Server running well, web hosting running and accessible from outside. SSH also working with Zero Trust Application from Cloudflare.
I wonder how can i setup mail account in this Hestia Panel for a domain like mydomain.com? is it possible my homelab-server serving mail? Outbound and Inbound. For outbound i have setup smtp relay with mailjet and working. But how to setup for inbound mail for using Roundcube in Hestia Panel with Cloudflare Tunnel?
Because whenever i access webmail.mydomain.com it just show “webserver ready page” not showing Roundcube Login Page.
Yeah, you can run the mail part on HestiaCP in your home lab, but the lack of a public IP is the main problem here.
I actually had a very similar issue with HestiaCP. When I opened webmail.mydomain.com, I wasn’t getting the Roundcube login either I was getting the default “webserver/mail server ready” page instead. Later I found that roundcube was installed in my mail server URL. So the Roundcube problem you are experiencing may not be a problem with Roundcube itself - it could be that the webmail hostname is not pointing to the Hestia webmail configuration properly.
One thing to keep in mind though Cloudflare Tunnel works great for exposing websites and other HTTP/HTTPS services, but it doesn’t solve normal incoming SMTP.
For inbound email, other mail servers need to be able to connect to your mail server on port 25. Since your server is behind a private network and doesn’t have a public IP, other mail servers on the internet can’t directly connect to it.
Your Mailjet setup for outgoing mail is fine because your server is making an outgoing connection to Mailjet. Incoming mail is the opposite direction, so you need some kind of external mail gateway/relay that can receive the messages and then forward them to your home lab.
So the setup would basically be something like
Internet → external mail gateway → your Hestia server
and for outgoing:
Hestia → Mailjet → Internet
For the Roundcube part, please check which hostname is configured in Hestia panel for webmail and whether webmail.yourdomain.com is actually reaching the correct Hestia vhost. The fact that you’re seeing the default ready page makes me think the request is reaching the server, but not the Roundcube/webmail configuration similar the issue I faced.
webmail.mydomain.com now is working after i set it up right by made route in cloudflare tunnel and show roundcube login page, can send email outbound with smtp relay on hestia server using mailjet.
But now the problem is with inbound email did not receive in roundcube mailbox, need to working on it with cloudflare email routing and fetchmail service in hestiacp server.