MailWatch icon indicating copy to clipboard operation
MailWatch copied to clipboard

mtalog and Exim

Open stefaweb opened this issue 9 years ago • 16 comments

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.

capture d ecran 2015-06-18 a 10 41 15

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

stefaweb avatar Jun 18 '15 08:06 stefaweb

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 avatar Jun 18 '15 09:06 PieterJ

@PieterJ yes please, fork the repository and create a pull request as explained here

endelwar avatar Jun 18 '15 09:06 endelwar

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.

PieterJ avatar Jun 18 '15 09:06 PieterJ

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

endelwar avatar Jun 18 '15 09:06 endelwar

Will try to fork this afternoon.

PieterJ avatar Jun 18 '15 09:06 PieterJ

Is it mail.log or maillog?

On Debian, we only have

/var/log/mail.log /var/log/mail.info /var/log/mail.err

stefaweb avatar Jun 18 '15 11:06 stefaweb

And /var/log/mail.warn

stefaweb avatar Jun 18 '15 11:06 stefaweb

On postfix/ubuntu it's /var/log/mail.log

PieterJ avatar Jun 18 '15 11:06 PieterJ

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

endelwar avatar Jun 18 '15 12:06 endelwar

@PieterJ did you manged to look at this?

endelwar avatar Jun 25 '15 09:06 endelwar

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

stefaweb avatar Jun 25 '15 09:06 stefaweb

Exim needs more love. I'm going to install a test exim dev machine, but this will not be fast...

endelwar avatar Jun 25 '15 09:06 endelwar

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.

stefaweb avatar Jun 25 '15 12:06 stefaweb

@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.

pdwalker avatar May 23 '16 06:05 pdwalker

Fixed columns view in #342.

stefaweb avatar Jan 05 '17 12:01 stefaweb

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

endelwar avatar Jan 05 '17 14:01 endelwar