Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few Ubuntu boxes that run various cron jobs daily. As far as I know, there is no postfix or sendmail installed. What's the easiest and/or best way to get cron to send me an email when one of its jobs fail with an error?


share|improve this question
up vote 2 down vote accepted

cron notifies root by default, this is local user mail delivery only.

If you want to send emails to, then install postfix (defaut conf with listen on localhost only) and modifies /etc/aliases to forward emails to root to Then run

postaliases /etc/aliases

and you're all set

share|improve this answer

You need to configure MTA (postfix, sendmail or the debian standard: exim, etc.). It may be problematic though if you don't have public, static IP in business IP range as most other blocks are blacklisted because of spammers.

share|improve this answer

Check out -- it's a simple cron job monitoring tool that will alert you if your job doesn't run, or takes too long to run, or finishes too quickly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.