Realize:
1. Install Date::calc
# PERL-MCPAN-E Shell
Cpan> Install Date::calc
2. Install Pflogsumm
# CD/USR/LOCAL/SRC
# wget http://jimsun.linxnet.com/downloads/pflogsumm-1.1.5.tar.gz//can also be downloaded to http://jimsun.linxnet.com/postfix_contrib.html
# tar ZXVF pflogsumm-1.1.5.tar.gz
# CD pflogsumm-1.1.5
# CP Pflogsumm.pl/usr/local/bin/pflogsumm
# chown Bin:bin/usr/local/bin/pflogsumm
# chmod 755/usr/local/bin/pflogsumm
# CP Pflogsumm.1/usr/local/man/man1/pflogsumm.1
# chown Bin:bin/usr/local/man/man1/pflogsumm.1
# chmod 644/usr/local/man/man1/pflogsumm.1
3. Configure system lang, this step I did not match also can use!! Www.111cn.NeT
# vi/etc/sysconfig/i18n
Lang= "en_US"
4. Run command, view log
#/usr/local/bin/pflogsumm/var/log/maillog//or Pflogsumm ' ls-rt/var/log/maillog* '
View today's mail delivery
#/usr/local/bin/pflogsumm-d Today/var/log/maillog
View yesterday's mail delivery
#/usr/local/bin/pflogsumm-d Yesterday/var/log/maillog
For more detailed usage, refer to man Pflogsumm
5. Regularly send the report to the mailbox
# CRONTAB-E//In the final add the following content, 0:05 every day to send the status of yesterday's mail sent to XX Mail, this to be supplemented!!!
0 5 * * */usr/local/bin/pflogsumm-d Yesterday/var/log/maillog | Mail-s "Mail"