四月 15
因為某台server 沒裝sendmail 和postfix, 所以一些系統的log message 無法寄出去.
所以我改用了』command line email『來寄信.
大部分的情況都可以解決, 但是logwatch就是寄不出去.
搞了好久, 設定檔改成如下, 終於寄出去了:
修改 /etc/logwatch/conf/logwatch.conf (或 /etc/log.d/conf/logwatch.conf)
#MailTo = 『abc@xxxx.com.tw』 <— 可以不用設定啦
mailer = 『/usr/local/bin/email -s the_title_you_want abc@xxx.com.tw』 <– 強迫指定e-mail and title
搞定!!
PS: 好像是某一版的Logwatch 才有此問題的……anyway, 搞定就好!!