mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
117 stars 66 forks source link

mtalog and Exim #173

Open stefaweb opened 9 years ago

stefaweb commented 9 years ago

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.

PieterJ commented 9 years ago

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.

endelwar commented 9 years ago

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

PieterJ commented 9 years ago

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.

endelwar commented 9 years ago

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

PieterJ commented 9 years ago

Will try to fork this afternoon.

stefaweb commented 9 years ago

Is it mail.log or maillog?

On Debian, we only have

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

stefaweb commented 9 years ago

And /var/log/mail.warn

PieterJ commented 9 years ago

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

endelwar commented 9 years ago

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 commented 9 years ago

@PieterJ did you manged to look at this?

stefaweb commented 9 years ago

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

endelwar commented 9 years ago

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

stefaweb commented 9 years ago

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.

pdwalker commented 8 years ago

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

stefaweb commented 7 years ago

Fixed columns view in #342.

endelwar commented 7 years ago

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