matomo-log-analytics icon indicating copy to clipboard operation
matomo-log-analytics copied to clipboard

Tracking and Analysing Email Traffic ( Postfix Server Email Logs)

Open MishDish opened this issue 10 years ago • 4 comments

I'm pretty new to piwik web tracking tool , and i'm in need of analysing and tracking email traffic from Postfix server (sent and failed e-mails) for my application. Can you provide mail logs import to Piwik. Or is there a way for me to manage it somehow?

Thanks a lot ! Mish

MishDish avatar Sep 17 '15 09:09 MishDish

Hi @MishDish

could you post here example of such logs? we can see if it is possible to import them in Piwik.

mattab avatar Oct 30 '15 22:10 mattab

Hi @mattab Basically i'm interested in regular postfix mail server logs of traffic. I can post here a bit of code from the log . https://jsfiddle.net/q9coc0m4/. Please check ! Thanks !

MishDish avatar Dec 30 '15 13:12 MishDish

For reference here is the log file in jsfiddle:

Nov 30 05:08:35 dmx update.virus.scanners: Running autoupdate for generic
Nov 30 06:00:01 dmx postfix/cleanup[2420]: warning: /etc/postfix/header_checks: logical line must not start with whitespace: " /^Received:/ HOLD"
Nov 30 06:00:01 dmx postfix/pickup[31354]: CC5B4BA09C0: uid=0 from=<root>
Nov 30 06:00:01 dmx postfix/cleanup[2420]: CC5B4BA09C0: message-id=<[email protected]>
Nov 30 06:00:01 dmx opendkim[1123]: CC5B4BA09C0: DKIM-Signature field added (s=default, d=dmx.com)
Nov 30 06:00:01 dmx postfix/qmgr[24744]: CC5B4BA09C0: from=<[email protected]>, size=933, nrcpt=1 (queue active)
Nov 30 06:00:01 dmx postfix/local[2425]: CC5B4BA09C0: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.08, delays=0.07/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Nov 30 06:00:01 dmx postfix/qmgr[24744]: CC5B4BA09C0: removed

mattab avatar Jan 27 '16 02:01 mattab

@mattab Hello, I am very interested as well in regular postfix/dovecot/amavis/spamassassin logs import into matamo. We run a big public mail server here so I could send logs to you but as I don't want to publicly publish email addresses on github (we filter enough spam thank you!), do you think I could send these logs to you in private so you can try to get to parse them correctly ? Lemme know, thank you.

ghost avatar Feb 01 '19 15:02 ghost