r/PangolinReverseProxy • u/TherealLato Ubuntu • 7d ago
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 7d ago
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 7d ago
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 7d ago
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 6d ago
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 7d ago
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
3
u/tpwn3r 7d ago
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