How to host email elsewhere

June 9, 2014 2.6k views
I've seen this one when I first discovered DO, unfortunately I haven't bookmarked it and now I just can't find it. I'm aware of what responsibility it is to maintain secure and working email server, so I'm strongly against doing it on my own. As matter in fact, I'm already enough freaked out for having to maintain a droplet on my own, since this will be my very first server :) I've been delaying the migration for over a month now, as I was taking time to read dozens of tutorials and trying to prepare myself as much as possible. So back on topic, I'll spin up a droplet on which my web server will live, and I want to use shared hosting for emails. I have general idea, but I'm not 100% sure how exactly to set up my A and MX records. I'm very grateful in advance :)
3 Answers
Hello, Unfortunately, there does not appear to be an easy way to setup MX records on your droplet. You can, if you wish, install a DNS server such as bind, but that will require some advanced configuration. In your droplet admin panel, there is an option to setup A records under DNS, but I don't see a way to do something similar with MX records. I would recommend keeping your first droplet to be as simple as possible, with just the basics, and then moving on to more advanced options when you feel more comfortable.
Hey mist, I find it hard to believe that you cannot set MX records, and I also recall someone doing this exact thing here on DO.
Okey, I think I've figured this out. I'd love someone to correct me if I'm wrong: A MAIL xxx.xxx.xxx (IP of my previous hosts mail server) MX should now be mail.mydomain.com. right? And SPF would have mail.mydomain.com as host that is allowed to send emails in my name, right?
  • did it work for you, Stefan? I want to do the same and I have no clue. I am also a newbie.

Have another answer? Share your knowledge.