知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
# yum install -y postfix-perl-scripts
pflogsumm `ls -rt /var/log/maillog*` pflogsumm -d today /var/log/maillog pflogsumm -d yesterday /var/log/maillog
發送統計報表到郵箱
0 5 * * * pflogsumm -d yesterday /var/log/maillog 2>&1 | mail -s "Mail Report" postmaster@netkiller.cn