我现在在后缀中有这个设置:
sudo nano main.cf
inet_interfaces = loopback-only
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CApath = /etc/ssl/certs
smtp_use_tls = yes
Sudo nano sasl_password
[smtp.gmail.com]:587 user:password
如果我运行命令:
echo "Test mail thingy" | mail -s "Test Postfix Subject" R*******@gmail.com
有用吗:)
我如何强制 postfix 将消息发送到本地根到我的邮件?