Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Amazon SES and Google GSuite for the same domain

I have a domain that I manage using Amazon Route 53. It contains TXT/MX records of Amazon Simple Email Service, that I use to process incoming email to a certain email address via AWS Lambda. I also need to register the domain to Google Admin, i.e. GSuite so that I may manage my business emails via Google console. How do I achieve this? I tried setting up Google Admin, entered the MX records of Google Mail, but it resulted in failure of AWS SES services.

like image 923
Kushagra Avatar asked Dec 29 '17 10:12

Kushagra


People also ask

Can you use Gmail with AWS SES?

Yes. Even if you own an email address, you cannot use Amazon SES to receive email for that address unless you own the entire domain. You cannot, for example, configure Amazon SES to receive email for an email address in Gmail, Outlook, or any other domain that you don't own.

Can I configure SES with my own domain?

You can configure a MAIL FROM domain for an entire domain. When you do, all of the messages that you send from addresses on that domain use the same MAIL FROM domain. Open the Amazon SES console at https://console.aws.amazon.com/ses/ . In the left navigation pane, under Configuration, choose Verified identities.

Can I use my own domain with G Suite?

Add a domain to your account Sign in using your administrator account (does not end in @gmail.com). Manage domains. In Manage domains, click Add a domain. Note: If you have the legacy free edition of G Suite, the "Add a domain" option isn't available.

Can you use G Suite without a domain?

To use Google Workspace, you need a domain. Your domain name is what appears after the www. in your website URL. If you already have a domain, enter it when you sign up for Google Workspace.


1 Answers

It isn't possible to split email for a single domain across multiple services like this. When a sender on the Internet resolves your domain's mail exchanger (MX), the answer must contain a set of one or more hostnames for systems that will all behave identically for any given recipient email address.¹

The easy solution is to create a subdomain for your SES mail, for example contact.example.com, and simply use that domain for your SES messages.

If you really need to have all the addresses have exactly the same domain, set up a subdomain for SES as described above, but then configure GSuite to forward messages for the specific addresses that you want to go to SES, such as [email protected], over to [email protected].

GSuite will then accept messages for those addresses, rewrite the recipient address, and hand them over to SES.

As a G Suite administrator, you can configure numerous email routing and delivery options to suit your organization. For example, you can route mail to Gmail and an external server. Or, you might need to route incoming mail for non-Gmail users. You can also set up routing policies that vary by organization

https://support.google.com/a/answer/6297084

¹behave identically from the sender's perspective. How they may handle the message internally is implementation specific, but for any given email address, all of the listed mail exchangers must accept or reject it, because an authoritative response of "No Such User" from any one of these systems will not trigger the sending system to try any of the others.

like image 88
Michael - sqlbot Avatar answered Sep 24 '22 01:09

Michael - sqlbot