Hi, I have two droplets. One with the main domain name (example.com) and the other is serving mail.example.com the example.com is serving the web server while the mail.example.com is serving the mail server and the mail client (roundcube). Now what I need help with is setting up the right DNS records to forward all the emails coming to example.com to mail.example.com droplet.
So like the mail server is kinda working now and it can send emails. these are the current dns reccords of my example.com
$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.goodwindows.org. ( 1402909377 ; last update: 2014-06-16 09:02:57 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. MX 1 mail.goodwindows.org. MX 10 @ @ IN A 107.170.142.45 www CNAME @ mail IN A 107.170.232.141
goodwindows.org is my main domain.
the DNS records of mail.goodwindows.org is:
$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.mail.goodwindows.org. ( 1402885887 ; last update: 2014-06-16 02:31:27 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 107.170.232.141
so whats wrong here and what should I input? I set up goodwindows.org as a domain in the dns settings and mail.goodwindows.org as another domain. Is that ok? Please let me know its kinda my first time doing this. I read the tutorial on setting up your first host but it didnt really help in terms of the DNS records. Looking forward to seeing your reply. Thanks a lot in advance.
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!
You don’t need to set them up as separate domains. You just want an A record on the domain pointing to the mails server’s IP address. So for example.com, you want something like: <pre> @ IN A ip.add.for.web.server mail IN A ip.add.for.mail.server MX 0 mail.example.com. </pre> It looks like you have that right. The only issue is the extra set of DNS records for mail.example.com
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.