MailWatch
MailWatch copied to clipboard
mtalog and Exim
mtalog database is empty with Exim. Seems to work only with Sendmail and Postfix. Not sure to understand how it works. Where to look to implement this?
The last 3 columns are empty in rep_total_mail_by_date.php.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
For postfix this the mtalog is filled by parsing the mail.log file. This is done in postfix_relay.php. It is contains a few errors. I have rewritten the file and extended to log more details. (Greylisted,SPF,MTA,Noqueue) If you want I can post the file here.
@PieterJ yes please, fork the repository and create a pull request as explained here
Will do this afternoon, Please note that I have also changed the rep_total_mail_by_date.php to show more columns. I don't think it's wise to merge it into mailwatch.
If the new columns can be useful to someone we could add a flag (SHOW_MORE_INFO_ON_REPORT_GRAPH
maybe?) and hide or show them based on conf.php
Will try to fork this afternoon.
Is it mail.log or maillog?
On Debian, we only have
/var/log/mail.log /var/log/mail.info /var/log/mail.err
And /var/log/mail.warn
On postfix/ubuntu it's /var/log/mail.log
It depends on distribution and version: I remember that on red hat 9 it was maillog, on debian 6, 7 and 8 it is mail.log
@PieterJ did you manged to look at this?
Can we do something for Exim to fill up the last 3 columns?
Seems to be in mailq.php but not easy to add.
For Exim stuff are in /var/log/exim4/rejectlog
Exim needs more love. I'm going to install a test exim dev machine, but this will not be fast...
Not urgent. 1.3...
Have taken a fast look inside mailq.php regs and Co. Hot!
I can help to find the right stuff to look for inside the Exim logs.
@PieterJ This one has been bothering me for a while, and I'd love to have the fix
Could you either post a diff of your changes, or email me the changed files directly? I've love to see what changes you've made.
Fixed columns view in #342.
Can we do something for Exim to fill up the last 3 columns?
an Exim log parser should be written to mimic postfix log parsing behaviour, so that there information are reported in database