initial upload
This commit is contained in:
commit
867ac1955d
10 changed files with 495 additions and 0 deletions
6
tls_stats.sh
Executable file
6
tls_stats.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# greps mail.log for TLS debug loglines and displays sender count
|
||||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue