Linux 中/var/spool/postfix/maildrop目录下堆积大量小文件 如何删除


 

Linux 中/var/spool/postfix/maildrop目录下堆积大量小文件 如何删除

1.先删除maildrop目录下的通知邮件文件

命令:find /var/spool/postfix/maildrop/ -type f |xargs rm -rf

 

2.停止当前用户继续向maildrop目录中发送邮件

解决方案:

在cron的第一行加入 MAILTO=""便可,这样执行当前用户的Cron时,不会发送邮件。

Please add the MAILTO="" in the head of cron , please see the blow sample.

[root@mw1 postfix]# crontab -e

MAILTO=""

*/5 * * * * /opt/OCMonitor/bin//ocSysMonitor -top -sar –netfmt

 

命令:crontab -e 解释:编辑当前用户的cron服务

 

参考链接:http://blog.chinaunix.net/uid-26364035-id-3163574.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM