【发布时间】:2019-03-20 08:29:52
【问题描述】:
我像这里的指南一样使用 sendgrid 设置 Postfix:https://developers.google.com/compute/docs/sending-mail?hl=en#postfixsendgrid
但它不起作用。当我运行测试命令时:
printf 'Subject: test\r\n\r\npassed' | /usr/sbin/sendmail myemail@gmail.com
我在日志中收到此错误:
Sep 1 11:58:12 instance-1 postfix/qmgr[23412]: 8205A1E38: from=<*******@instance-1.c.mindful-vial-682.internal>, size=301, nrcpt=1 (queue active)
Sep 1 11:58:12 instance-1 postfix/smtp[23422]: warning: SASL authentication failure: No worthy mechs found
Sep 1 11:58:12 instance-1 postfix/smtp[23422]: 8205A1E38: SASL authentication failed; cannot authenticate to server smtp.sendgrid.net[208.43.76.147]: no mechanism available
Sep 1 11:58:13 instance-1 postfix/smtp[23422]: warning: SASL authentication failure: No worthy mechs found
Sep 1 11:58:13 instance-1 postfix/smtp[23422]: 8205A1E38: to=<myemail@gmail.com>, relay=smtp.sendgrid.net[208.43.76.146]:2525, delay=0.62, delays=0.01/0.02/0.59/0, dsn=4.7.0, status=deferred (SASL
authentication failed; cannot authenticate to server smtp.sendgrid.net[208.43.76.146]: no mechanism available)
【问题讨论】:
标签: postfix-mta google-compute-engine sendgrid