Mailgraph Installation
Step 1
[root@localhost ~]# yum install rrdtool
[root@localhost ~]# yum install perl-File-Tail.noarch
Install dependency packages rrdtool and perl-File-Tail,
if it is failed by yum , you can find in rpmfind.net
Step 2
[root@localhost ~]# wget http://mailgraph.schweikert.ch/pub/mailgraph-1.14.tar.gz
[root@localhost ~]# tar -zxvf mailgraph-1.14.tar.gz
wget the mailgraph tar file from official website and extract the tar file
[root@localhost ~]# cp mailgraph.pl /usr/local/bin/
[root@localhost ~]# cp mailgraph.cgi /var/www/cgi-bin/
[root@localhost ~]# cp mailgraph-init /etc/init.d/
[root@localhost ~]# chmod 755 /var/www/cgi-bin/mailgraph.cgi
[root@localhost ~]# chmod 755 /etc/init.d/mailgraph-init
Copy the files after you extract the tar file
Step 3
[root@localhost ~]# vi /etc/init.d/mailgraph-init
MAIL_LOG=/var/log/maillog
Edit mailgraph-init for MAIL_LOG path
[root@localhost ~]# vi /var/www/cgi-bin/mailgraph.cgi
$rrd = '/var/lib/mailgraph.rrd';
$rrd_virus = '/var/lib/mailgraph_virus.rrd';
Edit the mailgraph.cgi to set the database path of mailgraph.rrd and mailgraph_virus.rrd
Step 4
[root@localhost ~]# /etc/init.d/mailgraph-init start
[root@localhost ~]# chkconfig mailgraph-init on
Start mailgraph-init service and make it auto start after reboot
At last, try your effort for mailgraph analyst:
http://yourhost/cgi-bin/mailgraph.cgi
Server is hosted by Alanstudio
Linux Operating System
Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.
|