(只有问题啊,能不能把整体流程,常用配置熟悉啊,啊啊啊,后期补,希望后会有期T.T——20161214)
命令行发送邮件:
echo hello word | mail -s " title" test@test.com
问题:
send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
解决:
(1)sudo vi /etc/postfix/main.cf
将 inet_interfaces = loclhost 改成inet_interfaces = all
(2)sudo service postfix start
解决原由见文件注释中,也就是说默认是网络接口在本地,改成all就是全部都可以接收到本机发出的邮件
(天哪,这硬翻真的是好惭愧,宝宝还要好好练专业英语T.T ——20161214)
# RECEIVING MAIL
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.