Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forwarding emails when using Google Domains and Cloudflare [closed]

I have recently acquired a domain name via Google Domains. I have set some configuration to have it point at an OpenShift application via Cloudflare. Cloudflare requires me to set their DNS servers, which I did in Google Domain.

At Cloudflare, I have created two CNAME records (and nothing else). One is an alias from my mydomain.com to some.url.at.openfshit.com, and the other is from www to mydomain.com.

Yet, within Gmail Domain, I have also set an email using my domain name which is to be forwarded to a private email. But, I don't receive any emails when testing.

I am wondering whether I could have my emails forwarded properly. Is it a matter of creating a MX record at Cloudflare? If yes, with what configuration?

P.S.: I have set a MX record using instructions available here, but I get:

Delivery to the following recipient failed permanently:

 [email protected]

Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the server for the recipient domain chartvibes.com by aspmx.l.google.com. [2607:f8b0:4001:c20::1b].

The error that the other server returned was:

550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1  https://support.google.com/mail/answer/6596 p123si522326ioe.111 - gsmtp
like image 615
Jérôme Verstrynge Avatar asked Jan 10 '16 11:01

Jérôme Verstrynge


People also ask

Does Google Domains allow email forwarding?

With Google Domains' email forwarding, you can create forwarding addresses (for example, [email protected]), where messages are routed to an email address you own (such as a personal Gmail address). Learn more. For advanced business features, you can upgrade a forwarding address to a Google Workspace user.

Does Cloudflare do email forwarding?

CloudFlare email forwarding made easy. You can create as many email address as you want on your domain, then configure forward rule to route email to your domain to your personal inbox.

Can I forward emails from one domain to another?

With the email forwarding solution you can accept emails at one domain and forward it to another email account on another domain – without needing to run your own mail server. You can create an unlimited number of email aliases and forward each alias to up to TEN other email addresses.


1 Answers

The MX records you're using are for G Suite accounts. You can still forward emails with Cloudflare and Google Domains, but you'll need different MX records. As Overdrivr pointed out in a comment below, you can find your MX records in the DNS settings in Google Domains. Once you're in the DNS settings page, look for a collapsible panel called "Email forward" under the "Synthetic records" section. You should see something like this

Then, make a backup of your Cloudflare DNS setup, erase all MX records and add the ones listed in your account using the number right before the mail server (e.g., 5, 10, etc.) as its priority.

It might take a few minutes for the changes to take effect. If you try to send an email right after changing the records, it's likely that you'll get a message saying that the address could not be found, but it'll have the G Suite mail server in the Remote-MTA field (aspmx.l.google.com) instead of gmr-smtp-in.l.google.com. If this is the case, just wait for a few more minutes and try again

like image 103
Eric Abreu Avatar answered Sep 20 '22 06:09

Eric Abreu