2014-09-01 50 views
1

我安装后缀与sendgrid就像这里的指南:https://developers.google.com/compute/docs/sending-mail?hl=en#postfixsendgridSendgrid Compute Engine上的工作不

,但它不工作。当我运行测试命令:

printf 'Subject: test\r\n\r\npassed' | /usr/sbin/sendmail [email protected] 

我得到这个错误日志中:

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=<[email protected]>, 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) 

回答

5

如果你使用Debian,您需要安装libsasl2-modules还有:

apt-get install libsasl2-modules 

这解决了该问题的我。

+0

我也是。参考:https://sendgrid.com/docs/Integrate/Mail_Servers/postfix.html – JVE999 2014-11-02 23:26:11

+0

谢谢!花了2个小时浏览网页和配置文件没有任何成功。这终于解决了它! – boky 2015-05-19 19:05:50

+0

这也适用于我(使用Ubuntu 14/Postfix/Sendgrid)。 – jonbaldie 2016-04-09 14:45:50

2

或使用百胜(即红帽,Fedora的,CentOS的):

yum install cyrus-sasl-plain 

发现这个解决方案在sendgrid docs

相关问题