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?
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:
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:
After adding
CNAME
,TEXT
orMX
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.