Debian/PostFix/Gmail 运行不畅

Debian/PostFix/Gmail 运行不畅

我跟着这些说明并从其他网站获取提示。我无法让我的服务器使用 Google 应用发送电子邮件(我已经花了 3 个小时了。)

我得到了错误

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

我的 postfix 文件是

http://www.privatepaste.com/a287ea4967

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

答案1

从您的中删除该transport_maps指令main.cf并将的值更改relayhost为。更改后,不要忘记在哈希文件上[smtp.gmail.com]:587运行()。postmapsasl_passwd

还请务必阅读http://www.postfix.org/SASL_README.html#client_sasl并真正理解它。

如果您只想通过界面从服务器发送邮件,那么 Postfix 就有点太过分了。在这种情况下,您应该使用类似或的sendmail最小 MTA 。ssmtpnbsmtp

相关内容