How to set up a mail service with a custom Heroku domain?

I just started to develop with Heroku, but got stuck on how to have an email service with the same domain that points to Heroku services, for example. mydomain.com โ†’ Heroku Applications.

I want to have an email service with mydomain.com, perhaps admin@mydomain.com. How to do it?

+3
source share
3 answers

In the domain name control panel, you simply create a CNAME record for your site www.mysite.combefore proxy.heroku.comand add Heroku domain name addons and add www.mysite.com as a named site and then create MXs that point to your mail host - Heroku does not provide mail hosting, therefore you need to use the other side. For example, most of our customers use Google Apps for email hosting, so MX records point to Google.

John.

+2
source

I found a good blog post that showed how to do this using Google Apps, Heroku, and Heroku Zerigo. I found this quite useful in the setup for the application I'm working on, and it works great.

http://xtargets.com/2010/10/04/using-gmail-for-email-on-a-heroku-managed-domain/

+6

In any case, if you want to use the email service, you must not set the CNAME record for the same domain in which the MX record is included, because the CNAME record will always be redefined.

+1
source

Source: https://habr.com/ru/post/1784910/


All Articles