/var/spool/postfix/maildrop solution for too many small files

When linux executes cron, the output and warning information in the cron execution script will be sent to the cron owner in the form of email, and postfix is ​​turned off in my server, resulting in unsuccessful email sending, and all small files are accumulated in the Below the maildrop directory. If sendmail or postfix is ​​running normally, a large amount of mail will also accumulate in the /var/mail directory.

This problem will also cause the system to occupy too much innode, resulting in failure to create files.

Solution:

sed -i 's$MAILTO=root$MAILTO=""$g' /etc/crontab
/etc/init.d/crond restat

Delete redundant small files:
1. find /var/spool/postfix/maildrop/ -type f |xargs rm -rf

Guess you like

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