Fedora core 4
[1.]
wget http://sarg.sourceforge.net/mailmgr-1.2.3.tar.gz
[2.]
tar zxvf mailmgr-1.2.3.tar.gz
cd mailmgr-1.2.3
./configure
make install
[3.]
mkdir /var/www/html/mailmgr
[4.]
vi /usr/local/etc/mailmgr.conf
logfile /var/log/maillog
temporary_dir /tmp
output_dir /var/www/html/mailmgr
local-host-names /etc/mail/local-host-names
lastlog 0
overwrite_report yes
email_domain ssorc.tw
use_sendmail_cw no
title "ssorc.tw mail log"
mail server 為 postfix時,將mail.ccf其中的mydestination參數後面的值,編入 local-host-names
vi /etc/mail/local-host-names
ssorc.twmail.ssorc.tw
localhost
localhost.localdomain
[5.]
執行分析
/usr/local/bin/mailmgr
[6.]
[7.]
排程
59 23 * * * root /usr/local/bin/mailmgr
留言