Pau*_*aul 31 email postfix-mta smtp sasl osx-yosemite
我按照以下链接中描述的步骤设置我的mac发送电子邮件. http://www.anujgakhar.com/2011/12/09/using-macosx-lion-command-line-mail-with-gmail-as-smtp/
它在我的Mac OS X 10.9上运行良好.但是在我升级到OS X 10.10之后.mail.log显示以下错误.问题是什么?
Oct 19 00:28:22 paullam-macbook-pro.local postfix/smtp[30383]: 6B47B8AD4E8: SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.68.109]: generic failure
Oct 19 00:28:24 paullam-macbook-pro.local postfix/smtp[30383]: 6B47B8AD4E8: to=<zzpaul@gmail.com>, relay=smtp.gmail.com[74.125.68.108]:587, delay=3.4, delays=0.01/0/3.4/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.68.108]: generic failure)
Run Code Online (Sandbox Code Playgroud)
小智 93
我有同样的问题.谷歌搜索出现了这个链接:http://hkitago.com/2014/09/yosemiteのpostfix设定/
原来我错过了/etc/postfix/main.cf中的以下行:
smtp_sasl_mechanism_filter = plain
Run Code Online (Sandbox Code Playgroud)
我按照建议添加了两个片段,但仍然没有运气.然后我找到了这篇文章:
http://www.developerfiles.com/how-to-send-smtp-mails-with-postfix-mac-os-x-10-8/
并从中运行以下步骤:
步骤2.创建sasl_passwd文件我们需要使用SMTP凭据创建sasl_passwd文件
sudo vi /etc/postfix/sasl_passwd
Run Code Online (Sandbox Code Playgroud)
准确写下以下内容(不要输入您的用户地址和密码)并保存:
smtp.gmail.com:587 your_address@gmail.com:password
从sasl_passwd文件创建Postfix查找表.
sudo postmap /etc/postfix/sasl_passwd
Run Code Online (Sandbox Code Playgroud)
这将创建文件sasl_passwd.db
步骤3.重新启动Postfix要应用所有新更改,我们必须重新启动Postfix:
sudo postfix reload
Run Code Online (Sandbox Code Playgroud)
但仍然没有运气.但后来我注意到/etc/postfix/main.cf中的relayhost
用括号表示如下:
relayhost = [smtp.gmail.com]:587
Run Code Online (Sandbox Code Playgroud)
我将此行更改为:
relayhost = smtp.gmail.com:587
Run Code Online (Sandbox Code Playgroud)
重新加载后缀:
sudo postfix reload
Run Code Online (Sandbox Code Playgroud)
和postfix开始发送电子邮件.万岁!
| 归档时间: |
|
| 查看次数: |
22313 次 |
| 最近记录: |