How do I setup iRedMail on a separate Ubuntu droplet and where do I point MX records?

  • Posted October 21, 2013

I tried installing quite a few times, and ran into a wall everytime.

I am using this guide:

I have a ubuntu droplet with a LAMP stack. I have a domain, let’s say pointing it’s DNS records to that droplet.

I would like to setup iRedMail on a separate ubuntu droplet, and then be able to add emails like this:, etc.

During the iRedMail installation, which domain do I specify in this configuration screen? Do I need to create something like Or can I use

Also once the installation is done, what DNS records should I add for the domain so that email would work?


Submit an 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.

<b>“But I cannot receive any mail.”</b> <br> <br>How do you know? Do the emails get bounced back or do they simply disappear? Is there anything in the error logs? <br> <br>If you have a firewall, make sure to open up the relevant ports.

Final Update: <br> <br>Seems like running iptables -F, and rebooting the droplet again fixed the “not receiving email” issue as well. <br> <br>Thanks for all the help! :)

Okay, so the droplet reboot fixed the 4.3.5 server configuration error, and sending mail works now. But I cannot receive any mail. Possible reasons?

Thanks! <br> <br>The configuration tool returns this: <br> <br>The mail server for accepts mail for mailbox ‘’. <br> <br>It also passes everything else. No red flags. <br> <br>I still get this when I try to send email: <br> <br>“SMTP Error (451): Failed to add recipient “” (4.3.5 Server configuration problem).” <br> <br>And any incoming email to the mailbox also does not get received. <br> <br>I tried looking all over the internet, but found no solution to the problem.
<br> <br>Do you know what might be causing that?

To make sure you configured your DNS recoreds correctly, run the <a href=“”>Check Domain Configuration</a> tool.

Thank you for the quick response. <br> <br>So now I: <br>- Installed iredmail on a separate droplet via guide. <br>- Created pointing to that droplet.
<br>- Used as the first virtual domain name during installation. <br>- Added a MX record with priority 1 in the DNS settings. <br>- Went to /iredmailadmin post installation, and added to the list of domains. (Now I have and in iRedAdmin settings.) <br>- Added a new in iredadmin settings. <br> <br>Now whenever I log into roundcube using, and try to send email to, I get: <br> <br>SMTP Error (451): Failed to add recipient “” (4.3.5 Server configuration problem). <br> <br>I also cannot receive any mail. <br> <br>Help? Once I get a hang of it, I should be able to figure everything else out. <br>

<b>“Do I need to create something like”</b> Yes. <br> <br><b>“Also once the installation is done, what DNS records should I add for the domain so that email would work?”</b> <br> <br>If you’re using DigitalOcean’s <a href=“”>DNS Manager</a>, you would need to add the following <b>MX record:</b> <code>1 -</code> (don’t forget the trailing dot).