Last active
May 7, 2020 00:11
-
-
Save diginfo/9a459fe738aa941e53b3c8e8480a8607 to your computer and use it in GitHub Desktop.
Postfix Stats Install & Execute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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