yum erase sendmail -y
yum erase sharutils -y
yum erase sendmail-cf -y
yum erase mailx -y
yum install -y sendmail
yum install -y sharutils
yum install -y sendmail-cf
yum install -y mailx
service sendmail start
service sendmail restart
netstat -tuln | grep 25 //查看sendmail邮件端口号状态
service sendmail status
netstat -tuln | grep 25