Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
How to disable scripts in /etc/cron.d to send mail to postmaster?
i found out that scripts i have in /etc/cron.d sents alot of emails to postmaster local server mailbox but that account dont exist or is disabled i think
Received: (qmail 20156 invoked by alias); 4 Apr 2014 14:43:32 -0000
Received: (qmail 20143 invoked by uid 0); 4 Apr 2014 14:43:32 -0000
Date: 4 Apr 2014 14:43:06 -0000
From: email@example.com (Cron Daemon)
Subject: Cron <root@vps> run-parts /etc/cron.hourly
Content-Type: text/plain; charset=ANSI_X3.4-1968
How i can disable it and sent mail example on error or not at all? thx
- Join Date
- Oct 2007
- Tucson AZ
No that dont works for me, i already tried to set MAILTO, but dont send anything, question remains.
When cron starts a process, it captures any output that reaches stdout and stderr, and sends that in an email. To prevent these emails, you can re-direct the stdout and stderr, either to a logfile that you monitor, or /dev/null, if you don't care.
17 * * * * root cd / && run-parts --report /etc/cron.hourly 2>&1 > /dev/nullA lion does not lose sleep, over the opinion of sheep.