darold / sendmailanalyzer

Sendmail log Analyzer is a tool to monitor sendmail usage and generate HTML and graph reports. It reports all you ever wanted to know about email trafic on your network. You can also use it in ISP environment with per domain and per mailbox report.
http://sendmailanalyzer.darold.net/
GNU General Public License v3.0
76 stars 13 forks source link

How to Parse Maillog From Another Host (SMTP relay) #55

Closed ajihandoko closed 6 years ago

ajihandoko commented 6 years ago

I have one more question.

How to parse maillog from another host (smtp server) to sendmailanalyzer ? Do I have to install certain application on my smtp server to send maillog to sendmailanalyzer ? like i have to install and start the service of snmp in my server to send syslog to cacti server.

Thanks Darold

cantlep commented 6 years ago

Because sendmailanalyzer utilises a web server and I didn't want to install one on my MTA, I just NFS mount the log directory from the MTA to the web server and point the sendmailanalyzer config to that directory.

ajihandoko commented 6 years ago

Ok cantlep, so if I want to create maillog graph of 2 server, I just add configuration LOG_FILE /dst/nfs/dir/server1 for server1 and LOG_FILE /dst/nfs/server2 for server2 in file /etc/sendmailanalyzer.conf. Is it like that ?

cantlep commented 6 years ago

I'm not entirely sure if you can parse more than one log file, the --help flag would indicate not. I only have one MTA so I don't have the same issue you have in this regard. I suppose a workaround would be a central syslog server that contains the logs for both MTAs and then reference that as one file. @darold will know if more than 1 file can be parsed in the config, I expect.

darold commented 6 years ago

Hi,

Yes the only solution is to use a central syslog server with one single log file to parse. This is possible to add the feature of multiple files parsing but it might take one or two weeks to develop and unfortunately I do not have this spare time.

Regards,

darold commented 6 years ago

Note that you can have multiple reports corresponding to each maillog on a single SendmailAnalyzer host. You just have to use different configuration file with different location for the following directives:

LOG_FILE
PID_DIR
OUT_DIR

Of course you must also have a dedicated sa_report CGI entry dedicated to each report.

ajihandoko commented 6 years ago

Sorry I'm late to response your answer. Oke darold, I will try to my server. Thanks darold, for your reply.

ajihandoko commented 6 years ago

hai darold, I have fix this issue with merge maillog-of-smtp1 and maillog-of-smtp2 to be one file "maillog".