Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 无法在Mavericks上通过Gmail为出站中继启用后缀_Macos_Email_Terminal_Bots - Fatal编程技术网

Macos 无法在Mavericks上通过Gmail为出站中继启用后缀

Macos 无法在Mavericks上通过Gmail为出站中继启用后缀,macos,email,terminal,bots,Macos,Email,Terminal,Bots,我正试图通过gmail为outbond中继启用后缀 我正在遵循所有步骤 但无法接收邮件 并在/var/mail host gmail-smtp-in.l.google.com[74.125.129.27] said: 550-5.7.1 [106.78.175.213] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the

我正试图通过gmail为outbond中继启用后缀

我正在遵循所有步骤

但无法接收邮件

并在
/var/mail

host gmail-smtp-in.l.google.com[74.125.129.27] said:
550-5.7.1 [106.78.175.213] The IP you're using to send mail is not
authorized to 550-5.7.1 send email directly to our servers. Please use the
SMTP relay at your 550-5.7.1 service provider instead. Learn more at 550
5.7.1 http://support.google.com/mail/bin/answer.py?answer=10336
j5si48631733pbs.31 - gsmtp (in reply to end of DATA command)
实际上,我正在集成bot,希望收到成功或失败的邮件。但是没有收到任何邮件,所以我在谷歌上搜索,发现我必须为出站启用postfix


我也尝试过在终端上使用
mailx
,但没有收到任何电子邮件。

我将尝试揭示我在类似情况下的一些乐趣。我已经安装了服务器3.0,但是,如果要追踪现场的情况,可能会让人恼火

在我的情况下,postfix正在运行/Library/Server/Mail/Config/postfix。但是它从一个版本移动到另一个版本,这使得您的旧配置开始扰乱您的构建

在后缀中,应该有一个main.cf

我增加了一节:

>sudo nano main.cf
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks
reject_unauth_destination
smtpd_use_pw_server = yes
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_pw_server_security_options = cram-md5,digest-md5,gssapi,login,plain
smtpd_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
relayhost = [smtp.gmail.com]:587
CTL+O,输入保存

需要注意的是,现在我们必须处理这个/etc/postfix/saslpasswd

sudo nano /etc/postfix/saslpasswd
[smtp.gmail.com]:587    first.last@gmail.com:YourPassword*9
CTL+O,输入保存

还有几个我没有发现的命令要发出

sudo postmap /etc/postfix/saslpasswd
sudo postfix reload
希望有帮助。带有漂亮的开/关按钮的基本邮件/服务器似乎不能为您完成lat部分。我会不时重置密码。当我这样做时,我必须记住这些路径,然后确保发出最后两个命令,否则saslpasswd.db将不同步

祝你好运