清理sendmail日志文件

# 关闭sendmail
service sendmail stop
chkconfig --list sendmail
chkconfig --level 2345 sendmail off
 
# 删除mail文件夹
rm -rf /var/spool/mqueue && mkdir /var/spool/mqueue
rm -rf /var/spool/clientmqueue && mkdir /var/spool/clientmqueue
rm -rf /var/spool/mail && mkdir /var/spool/mail
# 删除logwatch
mv /etc/cron.daily/0logwatch /etc
rm -rf /var/cache/logwatch/*

via: http://hi.baidu.com/chenhj_brenda/item/e46c6b3fdb8f03b9124b14f0




fatkun

没有评论


You can leave the first : )



发表评论

电子邮件地址不会被公开。