Nagios Sendmail無法發(fā)送mail郵件的解決方法
Nagios監(jiān)控的說:Sendmail無法發(fā)送mail郵件了,你怎么辦,想哪出了錯了,其實很簡單就解決了,請看下文。
nagios 監(jiān)控?zé)o法發(fā)送mail郵件。發(fā)現(xiàn)是文件權(quán)限問題
You should first check the permissions on the following files:
# ls -l /usr/sbin/sendmail.sendmail
-r-xr-sr-x root smmsp /usr/sbin/sendmail.sendmail
# ls -l /var/spool
drwxrwx--- smmsp smmsp /var/spool/clientmqueue
If your permissions are mis-matched, you can modify them by doing the following:
# chown root.smmsp /usr/sbin/sendmail.sendmail
# chmod g+s /usr/sbin/sendmail.sendmail
# chown smmsp.smmsp /var/spool/clientmqueue
After changing permissions, you need to restart the Sendmail service, type:
# service sendmail restart
大家能看懂吧,其實Sendmail無法發(fā)送mail郵件問題很好解決,希望文章對你們有用!
【編輯推薦】