1:linux系统
<?php
$res = mail ('1067154883@qq.com' , 'text' , 'message' );
var_dump($res);
报错:send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
2:解决方法
vim /etc/postfix/main.cf
设置
inet_interfaces = all
3:重启
service postfix restart