Debian / PostFix / Gmail打得不好

我遵循这些指示 ,并从其他网站提示。 我不能让我的服务器使用谷歌应用程序发送电子邮件(我已经花了3个小时了)。

我得到错误

Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 

我的后缀文件是

http://www.privatepaste.com/a287ea4967

我validation了我的用户/密码是正确的。 我使用命令sendmail -bv [email protected]进行testing,并使用邮件查看错误消息。

main.cf删除transport_maps指令,并将relayhost的值relayhost[smtp.gmail.com]:587 。 不要忘记在更改后在散列文件( sasl_passwd )上运行sasl_passwd

另外请确保阅读http://www.postfix.org/SASL_README.html#client_sasl,并实际了解它。

如果您只是想通过sendmail接口从您的服务器发送邮件,Postfix是相当矫枉过正的。 在这种情况下,应该使用像ssmtpnbsmtp这样的最小MTA。