在Adobe Commerce上超过SendGrid信用时未发送电子邮件
当云基础架构的Adobe Commerce中超过SendGrid信用额度时未发送电子邮件时,在生产环境中,提交支持案例,提供错误消息,并请求增加信用额度,具体取决于下面列出的批准条件。 如果您没有看到错误消息,或者您使用的是Adobe Commerce on Cloud infrastructure Starter Plan architecture,请提交支持案例并提及mail.log
文件未指示信用额度已超出。
描述 description
环境
云基础架构上的Adobe Commerce版本2.3.0 - 2.3.7-p1、2.4.0 - 2.4.3
问题
SendGrid信用指可以发送的允许电子邮件数。 每月从集成和暂存分支只能发送12,000封电子邮件。 积分将在月初续订,因此,如果您没有足够的积分,则必须等待续订。
只要发件人信誉超过95%,生产环境中可以发送的电子邮件数量就没有任何硬性限制。
声誉受以下影响:
- 退回/拒绝的电子邮件数
- 客户是否已将您的电子邮件标记为垃圾邮件
- 基于DNS的垃圾邮件注册是否已将您的域标记为潜在的垃圾邮件来源
在生产环境中,默认分配是每天12,000封电子邮件。 但是,此限制可以根据使用情况而增加 — 将其设置为过去5天内每天平均发送的电子邮件数的4倍。
例如,如果过去五天发送的平均电子邮件数量为每天5,000封,则信用额度将提高到每天20,000封电子邮件。 如果此比率保持不变,则将在30天内发送最多600,000封电子邮件。
原因
允许发送的电子邮件数量存在限制。
解决方法 resolution
如何检查您的积分是否已超过
Adobe Commerce on Cloud Infrastructure Pro计划架构:检查/var/log/mail.log
— 您会看到一条类似于以下内容的消息:
May 28 21:13:00 <i-node> postfix/error[ 21335] : <error-id>: to=<to@email.com>, relay=none, delay=4642, delays=4642/0.56/0/0.03,
dsn=4.0.0, status=deferred (delivery temporarily suspended: SASL authentication failed; server smtp.sendgrid.net[ ip address] said: 451 Authentication failed: Maximum credits exceeded).
注意:如果您注意到未发送或接收某些电子邮件,并且在mail.log中遇到以下消息,请不要认为它表示电子邮件投放失败。 除非有消息确认已超出Sendgrid积分,否则提交支持案例 — 但不引用此消息:
May 14 11:17:01 <i-node> postfix/error[ 589014] : <error-id>: to=<root@localhost>, orig_to=<root>, relay=none, delay=0.04, delays=0.02/0.01/0/0.01,
dsn=4.0.0, status=SOFTBOUNCE (local delivery is disabled)