How to set up Email on DigitalOcean Droplet?

January 28, 2017 72.7k views
Email Ubuntu

I am using Namecheap domain, but my hosting is by Digital Ocean droplet
How do I set up an email of my domain? admin@domain.tld
Anyone can guide me on a step by step basis - that will be greatly appreciated! :D

7 Answers

If you're using Ubuntu then DO has a great guide that can be found here on how to setup and configure an SMTP server using Mail in a Box.

When you get the server setup, you'll create an MX record at Namecheap that points to and have pointed to your Servers IP, and if you configured everything on the receiving server properly then you should be gucci.

by finid
Mail-in-a-Box is an open source software bundle that makes it easy to turn your Ubuntu server into a full-stack email solution for multiple domains.

i posted a guide on my blog a few days ago
Quick & Easy: Modoboa Self Hosted Email Server with Webmail

btw do check out defcore's answer

  • Hi. Thank you for your post. I tried to install over the link which you provided on your website. When I try to run "./" I got an error that dictionary can't concatenate to the dictionary. Could you please help to solve this issue. Thank you for reading

  • I'm getting "’s server IP address could not be found." when I go to

    What could be causing this, are my MX records wrong?

Thanks for both of your replies - will try both out

ANother question: When I try to log in my Console Access from DO dashboard, then the following error comes up and I can't log in

Server Disconnected (code 1006)

Hello, you could set with Mail-in-Box virtual hosts for sending and receiving emails.

  • Do you have the guide to setup the DNS to point to an already established nameserver, also how do I add a to my dns so it points to this droplet?

I struggled with email for quite a while. You need a droplet with lots of memory to run all the services you need to do email well. Then I found I get all my domains with them as free email is included at no charge. So not worth the effort to do it yourself.

Note: I am not connected in any way... just a satisfied customer for over 5 years , and many others offer similar services plus e-mail boxes for your hosted domain... So, what DigitalOcean is wayting to offer it? I am adapted here, but one day I will leave to simplify my life with e-mail boxes!

  • Given how it's been shown repeatedly by now that companies will sell your stuff to anyone, are hacked constantly and cover it up, I find it extremely odd how people with technical know how and private servers still farm out email.

hey i dont know how does it works

Have another answer? Share your knowledge.