Skip to content

Instantly share code, notes, and snippets.

@diginfo
Last active May 7, 2020 00:11
Show Gist options
  • Save diginfo/9a459fe738aa941e53b3c8e8480a8607 to your computer and use it in GitHub Desktop.
Save diginfo/9a459fe738aa941e53b3c8e8480a8607 to your computer and use it in GitHub Desktop.
Postfix Stats Install & Execute
if [ ! -f "/usr/local/bin/pflogsumm" ]; then
cd /tmp
wget https://jimsun.linxnet.com/downloads/pflogsumm-1.1.3.tar.gz
tar xvf pflogsumm-1.1.3.tar.gz
cd pflogsumm-1.1.3/
cp pflogsumm.pl /usr/local/bin/pflogsumm
fi
cat /var/log/mail.log | pflogsumm "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment