How to setup noreply@<domain> google Cloud Composer?

981 views Asked by At

I am trying to use sendGrid with Google Cloud Composer and providing SENDGRID_MAIL_FROM value noreply-composer@domain ([email protected]), while running the airflow dag receiving error 403: Forbidden . I did some research and got to know that from should be verified in the sender list. But if I just want to send alert mail with noreply user, this username physically doesn't exist and can not be verified.

Does anybody know workaround for the same, so I can send the mail with noreply username?

1

There are 1 answers

4
Nick_Kh On

Elaborating more to my comment, according to SendGrid documentation pages, each sender identity should be verified using either Domain Authentication or Single Sender Verification. Based on the intro of Single Sender Verification as of most common use case restriction:

You can send only from the address you verify rather than any address on an authenticated domain.

With said this, you might have to validate email account ownership for each FROM email address entry.

Domain Authentication will probably help to overcome the above mentioned limitation, however it requires to edit DNS records of the domain provider name resolution service:

You can send from any email address on your authenticated domain.

After adding CNAME, TEXT or MX particular records to your DNS service, they need to be validated in SendGrid UI.

I encourage you to check out the relevant tutorial to give more essential outcome.