From 2b6a5c4ca7eb98e702a54690fd3de4c8a0162979 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 31 Jan 2016 07:37:08 -0800 Subject: Modified contrib/mmdsr to report DMARC lookups in its own category. --- contrib/mmdsr | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'contrib/mmdsr') diff --git a/contrib/mmdsr b/contrib/mmdsr index 94d55b4e..3336fdb2 100644 --- a/contrib/mmdsr +++ b/contrib/mmdsr @@ -193,6 +193,11 @@ # own categories instead of in other errors. # Replaced s/\+\d+@/+@/ in vette log # banned subscription messages due to flood of such. +# +# 0.0.25 Update by Mark Sapiro +# Updated on: Sun Jan 31 07:13:47 PST 2016 +# Report vette log DMARC lookups as their own +# category instead of in other errors. ############################################################################### # Set up locations of standard commands, directories, etc.... @@ -536,10 +541,15 @@ do echo "------------------------------" >> $TMP $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + echo "" >> $TMP + echo "DMARC lookups" >> $TMP + echo "------------------------------" >> $TMP + $GREP -i "DMARC lookup for" $TMPLOG | $AWK '{ print $10 " " $13 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + echo "" >> $TMP echo "Other Errors:" >> $TMP echo "------------------------------" >> $TMP - $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid|held subscription request|banned subscription)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid|held subscription request|banned subscription|dmarc lookup for)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP elif [ "${LOG}" = "smtp-failure" ] ; then -- cgit v1.2.3