Comments on Postfix Monitoring with Mailgraph on Ubuntu 14.04 LTS
This article describes how you can monitor your Postfix mail server with Mailgraph. Mailgraph creates daily, weekly, monthly, and yearly graphs of sent, received, bounced, and rejected emails and also of spam and viruses, if SpamAssassin and ClamAV are integrated into Postfix (e.g. using amavisd-new in the ISPConfig perfect server tutorials). These graphs can be accessed with a browser.
5 Comment(s)
Comments
Hi
I followed the tutorial everything install fine i can start and stop the mailgraph service, however in the tutorial just after reconfiguring the mailgraph service when trying to view through my browser i get an internal server error, on both ip of my server and fqdn.
So i continued with the tutorial and password protected mailgraph directory, i still get internal server error its just password protected now.
Ensure that the apache mod_fcgi module is installed and enabled and check the apache error.log for the error. Please post in our forum if you need help.
leave off the www for your domain when going to the mailgraph page.
Gents,This is driving me creazy! Installation went well, no error or what so ever. The problem is Sever 500 error.From the Apache error log I can see the following:AH01215: Can't locate RRDs.pm: Permission denied at /var/www/cgi-bin/mailgraph.cgi line 11.
If I add to the top of the mailgraph.cgi file the following:use lib '/usr/lib/perl/5.18.2/'; (just to make sure the libs are reachable), I end up with the next error:AH01215: Can't locate lib.pm: Permission denied at /var/www/cgi-bin/mailgraph.cgi line 9.I've tried to provide different lib paths, but with the same success.
mailgraph.cgi is owned by www-data
Regards,-Tiho
Hi there !
some little adjustment for Debian 9 with Apache
you should replace the file /etc/apache2/conf-available/mailgraph.conf with the following
```
# mailgraph Apache configuration
Alias /mailgraph /usr/share/mailgraph
<Directory /usr/share/mailgraph>
Options +FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
AuthUserFile /etc/mailgraph/mailgraph-htpasswd
AuthName "Mailgraph"
AuthType Basic
Require valid-user
</Directory>
```And then rename mailgraph.cgi file into index.cgi like this:
mv /usr/share/mailgraph.cgi /usr/share/index.cgi