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.


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

Support MailScanner development - buy the book off the website!

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

More information about the MailScanner mailing list