Hosting MailCow, NextCloud, Jellyfin, etc.

Artimaeus

Cadet
Joined
Sep 19, 2023
Messages
5
I'm not sure exactly if this is the correct location for this, but it seems to be the closest option I could find.

I would like to have all my services hosted on TrueNAS including email. Could I have all the services except email resolve based off of TrueNAS's local IP (local DNS resolution) with custom ports, and the email resolve based on the public static IP and standard ports? I have a PFSense firewall with HAProxy for reference.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Are you talking about having all these services available from outside your LAN? I don't see any inherent reason it couldn't work, though I doubt SMTP from a residential IP will be accepted elsewhere on the Internet--IOW, I expect mail you send from that mailcow instance would likely be flagged as spam unless you run it through another smart host. But other than that, yes, you ought to be able to forward the relevant ports (25, 110, 143, 465, 587, 993, 995, I think would cover all of them) to the mailcow instance, and otherwise set up HAProxy as a reverse proxy for mailcow's web UI, Nextcloud, Jellyfin, etc.
 

Artimaeus

Cadet
Joined
Sep 19, 2023
Messages
5
Really just the the email being public, and the rest only being locally accessible
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Ah, well, in that case the only thing you'd really need to do on the pfSense box is forward the ports for mail. I'd set up the reverse proxy on the NAS itself--if you're using the TrueCharts apps, they integrate well with Traefik to handle the reverse proxy, TLS termination, obtaining/renewing certs, etc.
 
Top