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

October 21, 2013 6.4k views
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?
7 Answers
"Do I need to create something like" Yes.

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

If you're using DigitalOcean's DNS Manager, you would need to add the following MX record: 1 - (don't forget the trailing dot).
by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
Thank you for the quick response.

So now I:
- Installed iredmail on a separate droplet via guide.
- Created pointing to that droplet.
- Used as the first virtual domain name during installation.
- Added a MX record with priority 1 in the DNS settings.
- Went to /iredmailadmin post installation, and added to the list of domains. (Now I have and in iRedAdmin settings.)
- Added a new in iredadmin settings.

Now whenever I log into roundcube using, and try to send email to, I get:

SMTP Error (451): Failed to add recipient "" (4.3.5 Server configuration problem).

I also cannot receive any mail.

Help? Once I get a hang of it, I should be able to figure everything else out.
To make sure you configured your DNS recoreds correctly, run the Check Domain Configuration tool.

The configuration tool returns this:

The mail server for accepts mail for mailbox ''.

It also passes everything else. No red flags.

I still get this when I try to send email:

"SMTP Error (451): Failed to add recipient "" (4.3.5 Server configuration problem)."

And any incoming email to the mailbox also does not get received.

I tried looking all over the internet, but found no solution to the problem.

Do you know what might be causing that?
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?
Final Update:

Seems like running iptables -F, and rebooting the droplet again fixed the "not receiving email" issue as well.

Thanks for all the help! :)
"But I cannot receive any mail."

How do you know? Do the emails get bounced back or do they simply disappear? Is there anything in the error logs?

If you have a firewall, make sure to open up the relevant ports.
Have another answer? Share your knowledge.