【发布时间】:2019-11-02 20:30:57
【问题描述】:
所以我按照 Google 的文档说明在带有 Centos 基础的 GoogleCE 上安装了 SendGrid:
[https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid#before-you-begin][1]
从命令行使用测试(各种账户):
echo 'MESSAGE' | mail -s 'SUBJECT' GJ******@gmail.com
/var/log/maillog 表示在 1 秒内尝试了 50 次左右的几行:
postfix/error[32324]: A293210062D7: to=<GJ********@gmail.com>, relay=none, delay=145998, delays=145997/1.2/0/0, dsn=4.0.0, status=deferred (delivery temporarily suspended: SASL authentication failed; server smtp.sendgrid.net[167.89.115.53] said: 535 Authentication failed: The provided authorization grant is invalid, expired, or revoked)
消息会排队并每隔几个小时重试一次。现在,搞砸了,我可以将端口设置从 2525 更改为未被 google 阻止的常规端口之一,并且电子邮件会立即退回到邮件测试消息中的用户帐户。
我确保使用生成的 api 密钥,SendGrid 系统说没有尝试过或被退回或其他任何事情。
邮件日志中还有其他错误,实际上它每秒都在尝试它们的页面,但是我不再更改该目录中的权限,但也许可以提供一个线索来说明它是如何配置错误的?
Oct 31 19:04:14 beadc postfix/pickup[15119]: fatal: chdir("/var/spool/postfix"): Permission denied
Oct 31 19:04:15 beadc postfix/master[1264]: warning: process /usr/libexec/postfix/qmgr pid 15118 exit status 1
Oct 31 19:04:15 beadc postfix/master[1264]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling
Oct 31 19:04:15 beadc postfix/master[1264]: warning: process /usr/libexec/postfix/pickup pid 15119 exit status 1
Oct 31 19:04:15 beadc postfix/master[1264]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
我能找到的关于该错误的唯一信息是这意味着 SendGrid 配置错误。
关于错误配置可能是什么的任何想法?
【问题讨论】:
标签: google-compute-engine sendgrid