Retain source IP when proxying through VPS
๐ข๐ฎ๐ฎ๐๐ช๐๐๐ถ๐ถ @ SeeJayEmm @lemmy.procrastinati.org Posts 20Comments 545Joined 2 yr. ago

๐ข๐ฎ๐ฎ๐๐ช๐๐๐ถ๐ถ @ SeeJayEmm @lemmy.procrastinati.org
Posts
20
Comments
545
Joined
2 yr. ago
I've been self-hosting since I was on dial up but thanks for the assumption. I'm quite familiar with the nuances of hosting mail successfully and all my boxes are ticked. The monkey wrench was just that I didn't account for the source addressing and it screwing up my spam filter as I've never tried this specific scenario before.
That was the thrust of my post. I just started with NPM because it was already there. I've been experimenting and researching since I posted this and I think my solution is to masquerade (NAT) the mailu host behind the VPS and explicitly forwarding the necessary ports. Unfortunately, iptables is one of my weak spots and the nuances of making iptables work in this situation is eluding me. That's really where I could use some guidance.