后缀不会和我一起工作

我正在尝试安装postfix服务器

我在vi /etc/postfix/main.cf中编写了这个代码

#Gmail SMTP relayhost=smtp.gmail.com:587 #Enable SASL authentification in postfix SMTP smtp_sasl_auth_enable=yes smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd smtp_sasl_security_options=noanonymous smtp_sasl_mechanism_filter=plain # Enable TLS ie SSL smtp_use_tls=yes smtp_tls_security_level=encrypt tls_random_source=dev:/dev/urandom 

我在这里写了我的电子邮件和密码: vi /etc/postfix/sasl_passwd

但是当我写这个命令的date | mail -s testing [email protected] nothing happen date | mail -s testing [email protected] nothing happen

谁能帮忙? 我会欣赏这一点。 我有这个错误

 CFC581CEDC1 366 Thu Mar 16 23:37:33 [email protected] (connect to smtp.gmail.com[64 Operation timed out) [email protected] E42BC1CEE20 366 Thu Mar 16 23:39:06 [email protected] (connect to smtp.gmail.com[ No route to host) [email protected] 

你的错误似乎表明你的本地networking是可能的问题。

在你分享的configuration中没有任何明显的东西会导致这种情况 – 看起来你的本地networking可能是问题的一部分。

你当然可以testing: openssl s_client -connect smtp.gmail.com:587 -starttls smtp