formatting, added header
This commit is contained in:
parent
8b8d560b99
commit
8f93b40c0e
1 changed files with 3 additions and 1 deletions
|
|
@ -6,4 +6,6 @@
|
|||
# and cipher used.
|
||||
|
||||
MIN_MAILS=2
|
||||
zgrep 'Anonymous TLS connection established from' /var/log/mail.log* | sed -r 's/\[[0-9.]*\]://g' | awk {'print $15,$11'} | sort | uniq -c -i | while read line; do [[ $(grep -oE '^\s*[0-9]+' <<< $line) -gt $MIN_MAILS ]] && echo $line; done
|
||||
echo -e "Count\tCipher used\tSending domain"
|
||||
echo "--------------------------------------"
|
||||
zgrep 'Anonymous TLS connection established from' /var/log/mail.log* | sed -r 's/\[[0-9.]*\]://g' | awk {'print $15,$11'} | sort | uniq -c -i | while read line; do [[ $(grep -oE '^\s*[0-9]+' <<< $line) -gt $MIN_MAILS ]] && echo $line | tr -s ' ' '\t'; done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue