Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
您的 ISP 可能会阻止端口 25 出站(我的也是如此)。
尝试将其放入 main.cf 中:
relayhost=smtp.gmail.com:587 smtp_sasl_auth_enable=yes smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd smtp_sasl_security_options= smtp_use_tls=yes smtp_tls_security_level=encrypt
然后创建一个文件:/etc/postfix/sasl_passwd其中包含类似的内容:
smtp.gmail.com:587 [email protected]:password
并运行:sudo postmap sasl_passwd
我创建了一个 gmail 帐户只是为了从我的计算机发送电子邮件,因此我不必将我的主电子邮件帐户密码以纯文本形式保留在我计算机上的文件中,但您也可以使用您的主 gmail 帐户,如果你想要。
It is possible that your isp is blocking port 25 outbound (mine does).
try putting this in your main.cf:
then create a file:/etc/postfix/sasl_passwdwith something like this in it:
and run:sudo postmap sasl_passwd
I created a gmail account just for sending emails from my computer, so I didn't have to leave my main email account password in plain text in a file on my computer, but you could use your main gmail account as well if you wanted to.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
您的 ISP 可能会阻止端口 25 出站(我的也是如此)。
尝试将其放入 main.cf 中:
然后创建一个文件:
/etc/postfix/sasl_passwd
其中包含类似的内容:
并运行:
sudo postmap sasl_passwd
我创建了一个 gmail 帐户只是为了从我的计算机发送电子邮件,因此我不必将我的主电子邮件帐户密码以纯文本形式保留在我计算机上的文件中,但您也可以使用您的主 gmail 帐户,如果你想要。
It is possible that your isp is blocking port 25 outbound (mine does).
try putting this in your main.cf:
then create a file:
/etc/postfix/sasl_passwd
with something like this in it:
and run:
sudo postmap sasl_passwd
I created a gmail account just for sending emails from my computer, so I didn't have to leave my main email account password in plain text in a file on my computer, but you could use your main gmail account as well if you wanted to.