Linux-smtp遇见的问题

(只有问题啊,能不能把整体流程,常用配置熟悉啊,啊啊啊,后期补,希望后会有期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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值