Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

19.4. Mail

19.4.1. pflogsumm.pl - Produce Postfix MTA logfile summary

# 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
			
		
comments powered by Disqus