On 1/29/2013 1:07 PM, Mike. wrote:
I implemented the postscreen capability on a small MTA I run for
friends and family. Once I got postscreen configuration producing the
results I wanted, I soon tired of watching the detailed maillog to see
how postscreen was operating. So I wrote a quick shell script to
summarize the log file and give me an overview of how well postscreen
is working.
I offer the script to anyone who would like to use it. One company I
worked for would not allow open source software into the company unless
there was an explicit license on the software, so I put the BSD license
on the script.
You can download the script from here:
http://archive.mgm51.com/sources/pslogscan.html
Fails without modification on my Gentoo mailserver:
Scanning /var/log/maillog
mktemp: too few X's in template ‘mailqscan’
All "incoming" log records: 10121
./pslogscan.sh: line 51: ${TmpFile}: ambiguous redirect
Changing mailqscan to mailqscan.XXX works.
Brian