Hi all,
Here's a quick-and-dirty Python script I wrote that summarizes SPF
fail and softfail entries from Postfix logs. Suggestions are welcome
(I'm a relative Python newbie though, so be gentle), as is taking the
code and running with it. Hopefully we will end up with something
like this integrated into pflogsumm or other existing Postfix stats
reporting tools.
Source:
http://e-scribe.com/software/python/spfstats.py-txt
Sample output (full report includes past eight days):
==== Fri Jun 25 ====
56 'fail' responses involving 18 domains
2 andrew.net.au
1 astreet.com
3 bkkmail.com
1 clubvdo.net
1 cthompson.com
12 dbz.com
12 e-scribe.com
1 exobit.org
2 gmail.com
1 iworld.de
1 meer.net
1 mlb.org
1 onthejob.co.uk
2 purportal.com
1 snulbug.mtview.ca.us
12 visualcities.com
1 voltar-confed.org
1 zap.org.au
69 'softfail' responses involving 5 domains
1 california.com
1 cam.org
1 lucent.com
65 seznam.cz
1 v2.listbox.com