Crontab generate a large number of mail files

Source: Internet
Author: User

This morning to work, found Zabbix system alarm, production on a server/partition less than 20% space.


SSH to the specified server to view, found in the/var/spool/postfix/maildrop/directory generated 10G files.

These files are sent to the task owner by mail as output and warning information in the script, as the system performs the scheduled tasks in Crontab.

The solution is as follows:

Add Mailto= "" to the first line of crontab and specify an empty email address to resolve the issue

[[email protected] sbin]# crontab-lmailto= "" * * * * * */usr/sbin/ntpdate asia.pool.ntp.org >/dev/null 2>&1# Delete cr Ontab generated files [[email protected] sbin]# rm-rf/var/spool/postfix/maildrop/*


This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1647267

Crontab generate a large number of mail files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.