DebianのLennyを使っている。メール関連のアプリを作ろうと思った。メールのログが/var/logにない。
メールエラーだけ場所が違う。
debian lennyの時に起きた。
/var/log/mail.log /var/log/mail.warn /var/log/mail.info /var/logmail.err #あれれ??
よく見ているとSyslogの記述が間違ってる見たい。
/etc/syslog.conf
# # Logging for the mail system. Split it up so that # it is easy to write scripts to parse these files. # mail.info -/var/log/mail.info mail.warn -/var/log/mail.warn mail.err -/var/logmail.err #犯人はお前だ!
書き直したsyslog.conf
# # Logging for the mail system. Split it up so that # it is easy to write scripts to parse these files. # mail.info -/var/log/mail.info mail.warn -/var/log/mail.warn mail.err -/var/log/mail.err #書き直し。
Linuxではメールのエラーはmailerrに出すという古くからの習慣があるのだろうか。sendmailとの互換性維持の為なのだろうか?
とにかく、書き直して気持ち悪いモノは排除した。