Mail monitoring on network

Hirsh, Joshua joshua.hirsh at PARTNERSOLUTIONS.CA
Thu Feb 10 14:16:50 GMT 2005


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

 Parse your SMTP logs and build a list of who's talking to who. It's not
hard to do and can be done with a few lines of Perl.

 See the attached code for a Postfix example. It's not perfect and will need
a few tweaks (locally sent email doesn't show up properly, but my server is
for relaying only, inbound and outbound on the same server).

 I use the output file to import into Excel for "pretty reports" for the
manager types.


 The standard disclaimer applies. This works for me, it may not work for
you. If you don't understand the code, don't run it, etc.. etc.. ;-)

 The code can be better organised (and optimized), but it was a quick write
late at night for something I needed to look at quickly.


 Regards,
-Joshua


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

    [ Part 2, Application/OCTET-STREAM (Name: ]
    [ "Postfix_Email_Traffic_Report.pl")  2.4KB. ]
    [ Unable to print this part. ]




More information about the MailScanner mailing list