I’ve been following the DigitalOcean articles to create a new setup with single responsibility droplets. In the current setup we’ve got 2 load balancers, multiple application droplets and 2 database servers. Similar to the first diagram in the floating IP tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-floating-ips-on-digitalocean
For our next step in this setup we’d like to add a mail server to send mails for our applications. Like no-reply mails after having registered on a website. I got my droplet set up with Postfix being able to send mails to my Gmail box.
The actual problem: I’d like to ‘white label’ my outbound mails with our floating IP. It is important for us to have a static IP for mails for whitelisting purposes at clients. Most tutorials I’ve found so far talk about proxying inbound mail, using NAT in the router or running Postfix on the load balancer. Especially the last option seems like a bad practice considering it would put some extra strain on a droplet which should be as clean as possible (imo).
What would be the practice for us? In summary our wishes:
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.