echo "concent" | mail -s "title" xxxxxx@qq.com xxxxxx@163.com emily.li@XXXXXX.com
报错处理:
sendmail: warning: inet_protocols: IPv6 support is disabled:
Postfix使用过程中出现如下报错,我们将网络协议指定为IP4即可.
send-mail: warning: inet_protocols: IPv6 support is disabled:Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 supportonly
postdrop: warning: inet_protocols: IPv6 support is disabled:Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 supportonly
查看当前inet_protocols
# /usr/sbin/postconf | grep inet_protocols
inet_protocols = all
修改ipv4
# vi /etc/postfix/main.cf
inet_protocols = all
改为
inet_protocols = ipv4
重启postfix
service postfix restart