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:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!