将非 google 帐户添加到 App Engine 的 IAM 和电子邮件发件人
Add non-google account to IAM and Email Senders of App Engine
我正在尝试在 Google App Engine 中添加电子邮件发件人帐户。该域不是 google 应用程序域。
当我尝试将帐户添加为 IAM 用户时,它说该帐户必须有一个 google 帐户。当我尝试创建一个 Google 帐户时,它迫使我创建一个 @gmail 帐户作为其中的一部分。
完成上述所有操作后,我就可以将我的新电子邮件域添加到 IAM 中,但是一旦我保存并刷新页面 - 它就会显示我创建的 @gmail 别名。它不允许我将自己的域添加为电子邮件发件人,因为只有 @gmail 在 IAM 中。
这是坏了吗?
已更新
事实证明,我不小心将一个 gmail 帐户也分配给了 Google 帐户,这覆盖了名称。我进入了 google 帐户并从产品列表中删除了 Gmail,我能够在 IAM 中添加子域并作为有效发件人。
没有损坏,只是按照记录工作。来自 Who can send mail:
For security purposes, the sender address of a message must be one of
the following:
- The Gmail or G Suite Account of the user who is currently signed in
- Any email address of the form
anything@[APP_NAME].appspotmail.com
or anything@[APP_ALIAS].appspotmail.com
- Any email address listed in the GCP Console under Email API Authorized Senders
All email addresses on the Email API Authorized Senders list need
to be valid Gmail or Google-hosted domain accounts.
一个选择是让您的域在 Google 域托管或 G-Suite 下,从而满足引用的限制之一,如果您可以接受,请不要这样做。
如果通过 Google 的第 3 方电子邮件提供商服务之一发送电子邮件,则这些发件人地址限制和与通过 GAE 邮件 API 发送电子邮件相关的其他限制可能不适用: Mailgun, Mailjet and SendGrid。至少这些文档中没有提到这样的限制。所以这可能是另一个可以考虑的选择。
我正在尝试在 Google App Engine 中添加电子邮件发件人帐户。该域不是 google 应用程序域。
当我尝试将帐户添加为 IAM 用户时,它说该帐户必须有一个 google 帐户。当我尝试创建一个 Google 帐户时,它迫使我创建一个 @gmail 帐户作为其中的一部分。
完成上述所有操作后,我就可以将我的新电子邮件域添加到 IAM 中,但是一旦我保存并刷新页面 - 它就会显示我创建的 @gmail 别名。它不允许我将自己的域添加为电子邮件发件人,因为只有 @gmail 在 IAM 中。
这是坏了吗?
已更新 事实证明,我不小心将一个 gmail 帐户也分配给了 Google 帐户,这覆盖了名称。我进入了 google 帐户并从产品列表中删除了 Gmail,我能够在 IAM 中添加子域并作为有效发件人。
没有损坏,只是按照记录工作。来自 Who can send mail:
For security purposes, the sender address of a message must be one of the following:
- The Gmail or G Suite Account of the user who is currently signed in
- Any email address of the form
anything@[APP_NAME].appspotmail.com
oranything@[APP_ALIAS].appspotmail.com
- Any email address listed in the GCP Console under Email API Authorized Senders
All email addresses on the Email API Authorized Senders list need to be valid Gmail or Google-hosted domain accounts.
一个选择是让您的域在 Google 域托管或 G-Suite 下,从而满足引用的限制之一,如果您可以接受,请不要这样做。
如果通过 Google 的第 3 方电子邮件提供商服务之一发送电子邮件,则这些发件人地址限制和与通过 GAE 邮件 API 发送电子邮件相关的其他限制可能不适用: Mailgun, Mailjet and SendGrid。至少这些文档中没有提到这样的限制。所以这可能是另一个可以考虑的选择。