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

SendmailanAlyzer does not display all shipments #22

Closed laurentvv closed 9 years ago

laurentvv commented 10 years ago

Hello,

All shipments are not listed. Today, for example, is shown in 1800 shipments. If I do a search in / var / log / maillog, I said more than 10,000 email sent. As this problem?

Thank you in advance.

darold commented 10 years ago

Thanks,

Maybe this is a configuration issue or a misunderstanding of the log entries.

Could you send me privately a slice of your log file as well as you sendmailanalyzer.conf file?

Regards,

darold commented 10 years ago

Thanks for the log. After taking a look in you configuration and the log I can't find any problem. I think you made a mistake in searching the number of delivery. If you take a look to the log file you've sent to me, you will see that there is 10833 message with status Sent:

$ grep "stat=Sent" maillog | wc -l
10833

Then after running sendmailanalyzer, it returns 6559 outgoing messages for today but also 4334 for yesterday. That means that there is 10893 shipments reported by sendmailanalyzer. Have you include the date in the search ?

$ grep "^Sep 15 .*stat=Sent" maillog | wc -l
6533
laurentvv commented 10 years ago

yes i have include date in my search

now with grep command : 25477

sendmailanalyzer

2014-09-15 14:26 GMT+02:00 Darold notifications@github.com:

Thanks for the log. After taking a look in you configuration and the log I can't find any problem. I think you made a mistake in searching the number of delivery. If you take a look to the log file you've sent to me, you will see that there is 10833 message with status Sent:

$ grep "stat=Sent" maillog | wc -l 10833

Then after running sendmailanalyzer, it returns 6559 outgoing messages for today but also 4334 for yesterday. That means that there is 10893 shipments reported by sendmailanalyzer. Have you include the date in the search ?

$ grep "^Sep 15 .*stat=Sent" maillog | wc -l 6533

— Reply to this email directly or view it on GitHub https://github.com/darold/sendmailanalyzer/issues/22#issuecomment-55583096 .

darold commented 10 years ago

How do you run sendmailanalyzer? Please join the related cron jobs?

You said: "now with grep command : 25477" but what is the current delivery count in sendmailanalyzer report?

laurentvv commented 10 years ago

0 1 * * * /usr/local/sendmailanalyzer/sa_cache > /dev/null 2>&1

I execute /usr/local/sendmailanalyzer/sa_cache after grep to see the same stat

2014-09-15 15:21 GMT+02:00 Darold notifications@github.com:

How do you run sendmailanalyzer? Please join the related cron jobs?

You said: "now with grep command : 25477" but what is the current delivery count in sendmailanalyzer report?

— Reply to this email directly or view it on GitHub https://github.com/darold/sendmailanalyzer/issues/22#issuecomment-55588779 .

darold commented 10 years ago

You mean that after running /usr/local/sendmailanalyzer/sa_cache you have approximatively the same stat in the report than doing grep ?

laurentvv commented 10 years ago

no I do not have the same stat

2014-09-15 15:27 GMT+02:00 Darold notifications@github.com:

You mean that after running /usr/local/sendmailanalyzer/sa_cache you have approximatively the same stat in the report than doing grep ?

— Reply to this email directly or view it on GitHub https://github.com/darold/sendmailanalyzer/issues/22#issuecomment-55589537 .

darold commented 9 years ago

I'm closing this issue because there's no other reports like that and some commit since this post may have solves the issue. I'm not able to reproduce the problem. Feel free to reopen this issue if the problem persist.

Best regards