DigitalOcean ❤ Mailgun
Here’s how to forward received email for custom domain to Gmail so we can manage it at one place.
In my case, I did point name server from NameCheap to DigitalOcean so all step will happen at DigitalOcean (would be easier at NameCheap BTW) so please make sure that you already setup DNS properly before begin.
But as usual it’s always plenty of trap out there along the way. So I’ll write it here in case I forget and just in case someone get stuck like me.
Setup CNAME, MX ,TXT
So we can send/receive email as custom domain name via Mailgun. To accomplish this, You’ve two sides to setup here.
Go to DigitalOcean and follow Mailgun step to the end and just make sure it look like picture below for “mg” subdomain as Mailgun advices.
Or look like this in case you want to send email like “firstname.lastname@example.org” instead of “email@example.com”
Hint : Watch Out for “” (double qoute) at TXT value, and . (dot), and this trap
Goto Mailgun -> Domain ->Domain Verification & DNS
Hint : It take around 5–10 min. to take effect.
Forward received email from Mailgun to Gmail
How to send email from Gmail through Mailgun to receiver
At Gmail -> Settings -> Accounts and Import -> Send mail as: -> Add another email address you own
Goto Mailgun -> Domain -> Domain Information and copy & paste
Nothing fancy here. Keep going we almost done!
And now I can use Gmail to send (as firstname.lastname@example.org) and receive any email which sent to rabbot.io domain which super cheap from NameCheap!