Report this

What is the reason for this report?

How to configure another droplet to send emails?

Posted on May 22, 2014

I have 2 droplets. The one is a mailserver and the other one is the one that has the website which is wordpress. How can I configure the wordpress/droplet to send eimails from the mailserver? I would like a full answer please meaning, what do I need to install and how to configure on both droplets, what ports to open for firewall and what records to add in DNS. Thank you.



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.

I use Exim4 on my droplet with WordPress/PHP websites: https://www.digitalocean.com/community/articles/how-to-install-the-send-only-mail-server-exim-on-ubuntu-12-04 <br> <br>That is so that my droplet can send emails. <br> <br>Then for my second droplet, my mail server, I use iRedMail: http://iredmail.org/ <br> <br>Both tutorials are very easy to follow, and iRedMail comes with everything fully set up. Though with the nature of antiviruses, Clamav and SpamAssassin take quite a bit of resources so you should deploy with at least 1GB memory (the $10 droplet). You can do with much less RAM, but that’s only if you’re willing to dig into your configs and remove certain packages from your installation. Otherwise, iRedMail runs very smoothly with the required 1GB. <br> <br>So for your DNS, you’d do something like this: <br> <br>A record: mail.example.com., which points to your mail server’s IP address. <br>MX: mail.example.com. with a high priority (low number, can be anything. I use 5). <br> <br>And a TXT record: mail.example.com. with its text being something like: “v=spf1 ip(wordpressdropletsIP) ip(mailserverIP) ~all” <br> <br>Replace (wordpressdropletsIP) and (mailserverIP) with actual IP numbers, without the brackets. <br> <br>That’s all that’s really needed. The entire process will take less than 30 minutes, unless you run into any trouble. Also, Google will help for anything if you need to find some quick information on something specific. Or just post here.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.