Question

How to set up Email on DigitalOcean Droplet?

Posted January 28, 2017 102.5k views
UbuntuEmail

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

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.

×
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.

https://www.digitalocean.com/community/tutorials/how-to-run-your-own-mail-server-with-mail-in-a-box-on-ubuntu-14-04

When you get the server setup, you’ll create an MX record at Namecheap that points to mail.domain.com and have mail.domain.com 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.

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)

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 “./run.py” 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 “mail.mysite.com’s server IP address could not be found.” when I go to mail.mysite.com

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

Gandi.net , webfaction.com 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.

    • this is because you are using gmail, or hotmail or similar rubbish. Use Russian yandex and for a start it is far superior technologically and you have the unique ability that no other mail provider will give, the possibility of completely blacklisting domains, part of domains, mails so that they won’t even reach your spam box.
      if example@spammerdot.com is sending you spam, you can block that exact address or do something like .*@spammerdot.com and nothing from that domain will never reach you, not even to the spam folder, no matter how they change their sender prefix name.
      yandex let’s you totally block ads, you can upload executables, something that is banned in gmail.
      I dont have a gmail account or youtube account, will never ever. I dont want to have a barcode read on my forehead every time I go to the toilet. Their intrusive policy is odious.

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 mail.coopfire.com 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 Gandi.net. 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

hey i dont know how does it works

Submit an Answer