gpt4 book ai didi

postfix-mta - Compute Engine 上的 Sendgrid 无法正常工作

转载 作者:行者123 更新时间:2023-12-03 06:14:22 27 4
gpt4 key购买 nike

我使用 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)

最佳答案

如果您使用的是 debian,则还需要安装 libsasl2-modules:

apt-get install libsasl2-modules

这解决了我的问题。

关于postfix-mta - Compute Engine 上的 Sendgrid 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25605458/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com