Sendmail
Syslog 沒有記錄任何東西;/var/log/syslog 為空
最近 sendmail 停止接受在我的 Solaris 10 x86 機器上傳遞的消息。我正在嘗試診斷問題,但係統日誌似乎也不起作用。我的 /etc/syslog.conf:
#ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */ # # Copyright (c) 1991-1998 by Sun Microsystems, Inc. # All rights reserved. # # syslog configuration file. # # This file is processed by m4 so be careful to quote (`') names # that match m4 reserved words. Also, within ifdef's, arguments # containing commas must be quoted. # *.err;kern.notice;auth.notice /dev/sysmsg *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator *.alert root *.emerg * # if a non-loghost machine chooses to have authentication messages # sent to the loghost machine, un-comment out the following line: #auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost) auth.info /var/log/authlog mail.info /var/log/maillog # # non-loghost machines will use the following lines to cause "user" # log messages to be logged locally. # ifdef(`LOGHOST', , user.err /dev/sysmsg user.err /var/adm/messages user.alert `root, operator' local7.debug /var/log/mimedefang user.emerg * )
/var/log/authlog 有效。/var/log/mimedefang 和 /var/adm/messages 也是如此。但是,/var/log/syslog 是空的,/var/log/syslog.0 中的最後一行來自一個多月前。/var/log/maillog 也是空的。我已經使用 svcadm 多次重新啟動系統日誌和 sendmail。我的 syslog.conf 有問題嗎?
正如上面@MadHatter 所述, syslog.conf 沒有在任何地方提及 /var/log/syslog 。因此,不會將任何日誌寫入 /var/log/syslog。
如果我沒記錯的話,大多數 Solaris 系統在 syslog.conf 中都有這樣一行:
mail.info ifdef(`LOGHOST', /var/log/syslog, @loghost)
或者
mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)
或者
mail.info /var/log/syslog
我的 /etc/syslog.conf (andLinux) 包含
*.*;auth,authpriv.none -/var/log/syslog
你發布的那個沒有提到/var/log/syslog。