Skip to content

Instantly share code, notes, and snippets.

@DomPixie
Created December 7, 2022 16:58
Show Gist options
  • Save DomPixie/b697d1ecb215211bf92991c31783ff5b to your computer and use it in GitHub Desktop.
Save DomPixie/b697d1ecb215211bf92991c31783ff5b to your computer and use it in GitHub Desktop.
server maillog sendmail stats
grep -h "status=sent" /var/log/maillog | cut -c-6 | awk '{c[$0] += 1} END {for(i in c){printf "%6s %4d\n", i, c[i]}}' | sort -k2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment