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

Messaging Flows and Messaging Delivery Flows differ #51

Closed cantlep closed 6 years ago

cantlep commented 6 years ago

Hi Gilles,

I notice that in my setup. In Global Statistics -> Messaging

In Messaging Flows, both the Incoming and outgoing message numbers are displayed. However, in the messaging flows section, only the Internal -> External (which does correctly correspond with the Outgoing Message Flow) is displayed. The External -> Internal (which should correspond with Incoming Message flow) remains at 0.

message_flows

I think these should correspond with each other.

Thanks

jules38 commented 6 years ago

Have you tried latest development code or is it related to v9.2?

cantlep commented 6 years ago

Hi, This is v9.2

darold commented 6 years ago

Paul, please send a log and your sendmailanalyzer.conf to my private email, without them I will not be able to understand and find what's going wrong.

darold commented 6 years ago

Commit 76cda01 fixes the differences in mail direction in sa_cache. I'll send you the configuration file that you should use to have the right delivery flow. You will need to rebuild the cache to have the right reports on older data.

cantlep commented 6 years ago

Hi @darold Looks great now - Thanks again for your continued work on this. It's much appreciated.

cantlep commented 6 years ago

Hi @darold Apologies, whilst the i/c o/g flows are fixed, the issue with the messaging flows remains. See screenshots for a particular domain in a 1 hour window (just to show a bit less traffic)

Delivery_flows looks good. 4 emails i/c

delivery_flows

Messaging Flows is incorrect though. There were no outbound emails

messsaging_flows

Senders / Recipients in the Top stats section all look good. It's just the Messaging Flows that are now not correct. The Outgoing figure is actually correct (0 in this case), it's the Local delivery that messes up the outgoing number, it seems.

Sorry :-S

Steffan72 commented 6 years ago

I have the same problem as Cantlep. The updated code doesnt fix it for me.

darold commented 6 years ago

I'm not able to reproduce this issue reported by cantlep and you. Can you send to my private email the log file and your configuration file? Also point me the exact hour where the problem is reproducible.

darold commented 6 years ago

The last two commit 88d501e and 4eb40a9 could solve this issue too, please check latest development code and let me know.

darold commented 6 years ago

The @Steffan72 issue can be solved by adding dovecot,local, and all the internal domain name handled by this MTA, to the LOCAL_DOMAIN directive. @cantlep if you can send me the log file part that for you generate the problem and was expected, it will help me to explain what should be done in configuration file or to find the bug.

darold commented 6 years ago

Seems to be fixed otherwise please reopen the issue.