qvsgraph is a tool to visualize qmail-scanner results. qvsgraph project mainly consists of two PHP scripts.
One is used to fill the results into a MySQL database, and the other one generates nice graphical statistics and outputs images in PNG format which are highly configurable.
If one or more dependencies are not met, you
a) don't need this tool
b) should install the packages
qmail (installed like you prefer it, but with the need of qmail-scanner)
qmail-scanner (See http://qmail-scanner.sourceforge.net/ )
Clam Anti-Virus (at least) (See http://www.clamav.net/ )
php-mysql (enabled for php-cli - See your relevant php.ini)
* Located on some machine, don't need to be local:
* Located on the machine, which you want to give you the statistics:
php (recent version, 4.1 should be okay)
To keep this manual as easy as possible, I assume all of this software
is located on one single machine.
[qmail-scanner] -> /var/spool/qmailscan/quarantine.log ->
[scan2db.php] -> mysql DB -> [lvirus.php]
a) mysql storage
- edit add_mysql_user.sql and change the password (and maybe the
mysql username and the database name you want to use)
- # mysql -u root -p /dev/null
- # chmod 750 /var/spool/qmailscan/scan2db.php
- initialize the mysql DB:
- # init=1 /var/spool/qmailscan/scan2db.php
c) the frontend (lvirus.php)
- edit lvirus.php (change the mysql connection values)
- move lvirus.php to your preferred htdocs, www, www-data location.
- chown / chmod lvirus.php to match your php configuration (mod_php, suPHP, etc...)
- point your webbrowser to lvirus.php
- read lvirus.php to see what you are able to tune