How to setup smtp address on virtual domains?

  • Posted on October 1, 2013
  • carbotexAsked by carbotex


I have successfully setup iRedMail on DigitalOcean’s droplet. I can also add virtual domains from iRedAdmin panel. From RoundCube, I can send and receive emails just fine.

Now the problem is when I want to setup IMAP on Thunderbird. The valid smtp address seems to be the domain where I have iRedMail installed on.

iRedMail was installed on a droplet with IP and DNS records for contain only A record of “mail” which point to IP

I also have and which are installed on separate droplet with IP In the DNS records I added A record of “mail” which point to the mail server’s IP for both and These two domains also have spf record that has text value of “v=spf1 ip4: -all”

Now when I setup my email client (IMAP), I can only use as my smtp address. When I tried using and, I got errors. My guess is I need somehow map and into postfix configuration. However I’m clueless on how to do this.

Is this the limitation of iRedMail community edition? If not, could you please tell me how to do this properly so I can setup my mail client with the following setup:

smtp-host: user:

smtp-host: user:

best regards.

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.

Seems like you still need to add some <code>MX records</code>. <br> <br>You may also want to run your various domains through the online, <a href=“”>Check Domain Configuration</a> tool.