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.
[[email?protected] postfix]# crontab -e
MAILTO=""
*/5 * * * * /opt/OCMonitor/bin//ocSysMonitor -top -sar –netfmt
?
命令:crontab -e 解释:编辑当前用户的cron服务
?
参考链接:http://blog.chinaunix.net/uid-26364035-id-3163574.html