purazumakoiの[はてなブログ]

技術メモから最近はライフログも増えてきてます。

Tripwireでレポートメールが送信されない。

ConoHaVPS標準提供のCentOS6.5でどうも Tripwireのレポートメールが届かなかった。

とりあえず解決方法から

cd /etc/tripwire

tripwire -m c -s -c tw.cfg|mail -s "Tripwire(R) Integrity Check Report in `hostname`" root

tripwire -m c -s -c tw.cfg|mail -s "Tripwire(R) Integrity Check Report in `hostname`" hoge@exsample.com

という風にメールアドレスを直指定で送信するようにした。

前提の設定

もちろん設定ファイルにメールで送信するようにしてある

vi /etc/tripwire/twcfg.txt
#↓-----------
MAILNOVIOLATIONS       =true
#--------------------

でそういえばいつもやってた

#![rootに届く各種アラートメールを転送] -----------------

# /etc/aliases に追記
echo "root: hoge@exsample.com" >> /etc/aliases
# aliasesの反映
postalias /etc/aliases
# postfix に aliases ファイルの変更通知
newaliases

というものをやってなかたなと気が付きました。