sendmail不能用

查看sendmail是否安装

rpm -qa|grep sendmail

查看sendmail是否启动

/etc/rc.d/init.d/sendmail status

查看hosts是否设置正确

cat /etc/hosts

127.0.0.1 localhost.localdomain localhost

查看network设置

cat /etc/sysconfig/network

HOSTNAME=localhost.localdomain

重启network

service network restart

执行

hostname localhost.localdomain

你可能感兴趣的:(sendmail)