MailGraph
Install maillog analyzer MailGraph
https://dokuwiki.nausch.org/doku.php/centos:mail_c6:mta_11#mailserver_-_logfileauswertungen_unter_centos_6x
---
[root@mail ~]# yum --enablerepo=epel -y install mailgraph
# install from EPEL
[root@mail ~]# vi /etc/httpd/conf.d/mailgraph.conf
# Apache 2.4
<RequireAny>
#Require local
Require all granted
</RequireAny>
OR
# Mailgraph: An postfix/sendmail log file analyzer
Alias /mailgraph /usr/share/mailgraph
AddHandler cgi-script .cgi
<Directory /usr/share/mailgraph/>
AllowOverride None
Options +ExecCGI
DirectoryIndex mailgraph.cgi
Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
<directory /usr/share/mailgraph/>
AuthUserFile /usr/share/mailgraph/mailgraph-htpasswd
AuthName "mailgraph"
AuthType Basic
require valid-user
ExpiresActive On
ExpiresDefault M310
</directory>
--------------------------------------------------------
[root@mail ~]# htpasswd -cm /usr/share/mailgraph/mailgraph-htpasswd admin
New password:
Re-type new password:
[root@mail ~]# /etc/rc.d/init.d/mailgraph start
Starting mailgraph: [ OK ]
[root@mail ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd:[ OK ]
Starting httpd:[ OK ]
[root@mail ~]# chkconfig mailgraph on
Access to 'http://(your server's name or IP address)/mailgraph/' with web browser. Then following screen is shown and it's possible to make sure mail log summary.
http://www.yourdomain.com/mailgraph/
-----