Poststats is a project mainly written in Perl, it's free.
Postfix Log Analyser
Poststats is a small script to read postfix logfiles and to write them to a database for better analysis.