Best practice SMTP in multi droplet setup

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:

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:

  • Be able to send bulk mails (4000 at a time)
  • All mails should have the floating IP (or other static IP) as source
  • Single point of configuration for mailing
  • Be able to send mails for multiple domains

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

just wondering if you found the solution/answers to configuring this as I’m looking for the same?

Any info would be great