How to delete a large number of small files accumulated in the /var/spool/postfix/maildrop directory in Linux

1. First delete the notification mail file in the maildrop directory

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

 

2. Stop the current user from continuing to send mail to the maildrop directory

solution:

Just add MAILTO="" in the first line of cron, so that when the current user's cron is executed, no mail will be sent.

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

 

Command: crontab -e Explanation: Edit the current user's cron service

 

Reference link: http://blog.chinaunix.net/uid-26364035-id-3163574.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324443984&siteId=291194637