How to get mailgraph working


I’m interested in getting mailgraph working on MIAB but I’m not sure how to proceed. I’ve tried a couple of things (fcgiwrap and spawn-fcgi following some how-tos) but they all end with the script being downloaded instead of being run. I don’t have much experience with nginx and I believe that is where my difficulty lies. Any suggestions?


Is there a manul on how to configure and user Mailgraph in mail-in-a-Box?

Mailigraph is running

systemctl status mailgraph.service
● mailgraph.service - mailgraph mail log file analyzer
Loaded: loaded (/lib/systemd/system/mailgraph.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-08-02 09:48:34 CEST; 3 days ago
Main PID: 536 (mailgraph)
Tasks: 1 (limit: 9438)
Memory: 9.9M
CPU: 10.144s
CGroup: /system.slice/mailgraph.service
└─536 /usr/bin/perl -w /usr/sbin/mailgraph -d -l /var/log/mail.log --daemon-rrd=/var/lib/mailgraph --ignore->

Mailgraph is creating the rrd files in /var/lib/mailgraph but I do not know on which mailinabox sup URL are the mailinabox chart visible mailgraph.cgi

root@mbox:/var/lib/mailgraph# ls
mailgraph_greylist.rrd mailgraph.rrd mailgraph_virus.rrd