how to set up a mail server on my ubuntu droplet

September 8, 2014 2.3k views

hello support: I am in a transition of moving my web applications from another web hosting service to digital ocean.
They updated my DNS to map my site to the new ip address. But it seems that I need to set up a mail server before they can route it too, as quoted

"A record changes will affected the MX record as it is the CNAME of which is pointed to server's IP address. If A record is changed to another IP address, mail server will be changed to the same IP address too.
Please let us know if you also want to routed an email service to another provider.

so my understanding is that I need to install mail server on my ubuntu droplet before I give them a go-ahead, is it correct? Then is there a tutorial about how to set up a mail server?

thanks a lot,

  • Actually its not an answer but if website, a lot of services needs to setup like mail / ftp / Apache and stuff..

    I am newbie so I chose zPanel (free) which does everything for me !!

    Once again, please note, its not a direct answer to your quarry !!

  • thanks Hunky and HarrisonPage. Hunky I did look into zPanel, it looks cool but seems now it's commercial and no long has free maintenance, is it the case? I can still find old version but I am sure if I want to go that way if there is enough tech support. Also it looks like there are some alternatives out there too. Another recommendation?

1 Answer

I recommend qmail for a basic mail server: It includes delivery to a file, forwards and an SMTP server with access control. It should take one about an hour to install via Life With Qmail. Although I have heard great things about Postfix, I have not used it extensively. You should probably avoid using sendmail. Qmail does have a sendmail workalike.

Have another answer? Share your knowledge.