By fahrulazmi
I have already setup nginx web server on a droplet and it’s running fine. I have also setup mydomain.com to point to the droplet (Droplet A).
Now I would like to run a mail server on a separate droplet (Droplet B). How to configure the DNS / MX records so that Droplet B receive mail for mydomain.com while droplet A serves the web?
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!
Just setup postfix (and dovecot if you wish to connect with a mail client) on a new droplet, make sure its pointing to something like mail.example.com. Create an A record and call it mail.example.com and have the IP of your mail server be located there. Then create a MX record and have it be mail.example.com. <br> <br>If you want it to be simple, you could try iRedMail, but I would suggest learning how to set everything up by hand so you could get a good understanding how the software works. It is not hard at all :)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.