我正在尝试设置后缀服务器
我在 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 i.e. 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
任何人都可以帮忙吗?我会很感激的。我收到了这个错误
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]