$ sudo aptitude install logwatch 以下のパッケージが推奨されていますがインストールされません: libdate-manip-perl
$ cd /usr/share/logwatch/default.conf $ sudo emacs logwatch.conf
log の送信先の設定
# Default person to mail reports to. Can be a local account or a # complete email address. MailTo = root
の部分を
MailTo = hogehoge@ep.sci.hokudai.ac.jp
に変更.
log を取る日程の範囲を設定
# The default time range for the report... # The current choices are All, Today, Yesterday Range = yesterday
を
Range = Today
に変更。(実際はyesterday)
log の詳しさを設定
# The default detail level for the report. # This can either be Low, Med, High or a number. # Low = 0 # Med = 5 # High = 10 Detail = Low
を
Detail = Med
に変更.
メールを送れるようにする
$ sudo dpkg-reconfigure exim4-config
メールサーバの設定
設定を小さなファイルに分割しますか?
<いいえ>を選択.
メール設定の一般的なタイプ:
"インターネットサイト: メールは SMTP を使って直接送受信される" を選択.
システムメール名:
yellow.ep.sci.hokudai.ac.jp に設定.
入力側 SMTP 接続をリスンする IP アドレス:
空にする.
メールを受け取るその他の宛先:
yellow.ep.sci.hokudai.ac.jp に設定.
メールをリレーするドメイン:
空にする.
メールをリレーするマシン:
空にする.
DNS クエリの数を最小限に留めますか(ダイヤルオンデマンド)?
<いいえ>を選択.
ローカルメールの配送方式:
"ホームディレクトリ内の Maildir 形式" を選択.
$ sudo logwatch --mailto hogehoge@ep.sci.hokudai.ac.jp