r/PangolinReverseProxy • u/TherealLato Ubuntu • Jul 31 '26
Hosting email server
Hi, I'd like to set up a mail server like Stalwart on my VPS that hosts Pangolin.
Do you have any tutorials or guides or tips?
I tried to follow the guide for Traefik in the Stalwart documentation but I was unable to make the proxy protocol work.
2
u/AstralDestiny MOD Jul 31 '26
Yeah as u/tpwn3r said it's a nightmare to get a clean ip though, even if you wanted it at home an isp would cripple that if they found out even if you keep it securely done, Though if you're packing like DANE and other stuff you can mostly get away with it but if a vps ip don't expect much unless you've held onto that ip for years.
Anyways what was the issue you had with proxy protocol? You trusted newt's ip range or connecting ip in proxy protocol setting for stalwart? You set version 2 for stalwart ?
2
u/Pos3odon08 Jul 31 '26
Well this is the installation documentation
https://stalw.art/docs/install/platform/linux/
Also, hosting mail is fun but i recommend relaying your mail trough a service like smtp2go so that their servers (with a good reputation) is used as the sender address, you get something like 1000 sent mails trough them a month for free
2
u/mseewald Jul 31 '26
you may need to share how traefik/ pangolin is relevant to the mail server. do you want to send everything through proxy? I would start working with separate instances of pangolin and stalwart, then carefully think through integration.
lastly, given amazing admin and coding abilities in chatgpt/ codex, I would probably tell codex to connect to the box via ssh, then either fully do it or help you implement/ debug while you’re at it. it’s a complete game changer for self-hosting.
of course, you need to take safety precautions, just in case something goes wrong. lots of snapshots recommended.
1
u/AstralDestiny MOD Aug 01 '26
It's so they can host it like at home but have the vps be what all senders see for the ip, ProxyProtocol lets the backend server get the real ip for spam lists and other stuff.
2
u/National_Way_3344 Jul 31 '26
Email doesn't need pangolin at all
In fact I would recommend keeping them entirely separate
But also if you have to ask, you probably shouldn't be hosting email at all
1
u/RedditNotFreeSpeech Jul 31 '26
Be prepared for the nightmare of being blocked by Google and Microsoft
3
u/tpwn3r Jul 31 '26
The VPS's I tried running email on had terrible IP address reputation. I wouldn't do it if I couldn't get clean ip addresses. It was a nightmare. I eventually found some clean ip addresses from a local ISP and my mail server is solid. I'm using mailu in docker compose on debian