在生成sendmail configure file的時候報錯了
m4 sendmail.mc >sendmail.cf
cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
網上查一下少
sendmail-cf
這個包
因為我這裡使用的是OEL 5.4 從iso上面找到
[root@lvserver Server]# rpm -Uvh sendmail-cf-8.13.8-2.el5.x86_64.rpm
warning: sendmail-cf-8.13.8-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:sendmail-cf ########################################### [100%]
[root@lvserver Server]#
再次運行m4 sendmail.mc >sendmail.cf ok
[root@lvserver ~]# netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:904 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN <-here
tcp 0 0 0.0.0.0:860 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
發一個mail測試一下:
[root@lvserver ~]# mail -s "lvs222 test" youname@example.com.hk </dev/null
Null message body; hope that's ok
[root@lvserver ~]#
收到,測試成功記錄一下,
sendmail的配置文件的地址:
[root@lvserver mail]# pwd
/etc/mail
啟動關閉
[root@lvserver init.d]# pwd
/etc/init.d
[root@lvserver init.d]# ./sendmail
Usage: ./sendmail {start|stop|restart|condrestart|status}
記錄一下備忘!
没有评论:
发表评论