1 (edited by time4e 2013-06-08 10:39:34)

Topic: Mailgraph how to

- iRedMail version: 0.8.4
- Store mail accounts in which backend MySQL
- Linux/BSD distribution name and version: FreeBSD 9.1

====

Since it took me about 2 hours to get mailgraphs working, and I can't seem to register on the wiki page, I wanted to share a quick how to on getting mailgraph working under FreeBSD.

Yes, iredmail comes with AWStats and it collects some very valuable statistical data that's good to have. I have always been a fan of those RDD style graphs and this is where mailgraphs comes in at.

step 1:
Update your Ports Collection:

#portsnap fetch
#portsnap update

Step 2:

Install RRDTool from ports:

#cd /usr/ports/databases/rrdtool
#make config-recursive
(stick with all the default prompts)
#make install clean

Step 3:
Install mailgraph

#cd /usr/ports/mail/mailgraph
#make config-recursive
(again default options are fine)
#make install clean

Set mailgraph to run on startup
#echo 'mailgraph_enable="YES"' >> /etc/rc.conf


Step 4:
Here is the part that I missed and caused mailgraph not to render graphs

#chgrp www /var/log/maillog
now we can start mailgraph
#/usr/local/etc/rc.d/mailgraph start

Step 5:

Browse to www.server.tld/cgi-bin/mailgraph.cgi and in time you will see a beautiful graph

demo: http://www.stat.ee.ethz.ch/mailgraph.cgi

mailgraph home page: http://mailgraph.schweikert.ch/

Enjoy!
-Tim

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.