I have a cron job that I want to run just once a day (executes a rake task), but while I'm testing it I have it set to run every 5 minutes. It was running perfectly fine this morning and sending me e-mails with the output but it has inexplicably stopped sending me mail.
When I checkout /var/log/syslog
I can see that the cron job is still running, but the line that normally shows an email being sent has stopped appearing.
When I run service postfix status
I get postfix is running.
I haven't changed the cron job itself. I still have this:
MAILTO="myemail@gmail.com"
*/5 * * * * cd /u/apps/myapp/current && /usr/local/bin/rake my_task RAILS_ENV=staging
No idea what's going on here. Any ideas?