Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 need daily notifications of whether or not my crontabs completed successfully. I've read a few things about setting cron to send out email notifications, but I'm wondering... how do I know if my Linux box is set up with a mail server? If it's not, how can I do this? The systems in question are running Ubuntu 10.10, SME Server 7.4, and OS X Server 10.6.7.

Complete and detailed answers would be great, but I'm really just looking for a shove in the right direction.

share|improve this question

If you can send email from your server using the mail(1) command you don't need to jump through too many hoops.

Cron will usually automatically email the output of any script to the user whose crontab it ran from. You can override this behavior in Vixie cron by setting the MAILTO environment variable in the crontab file (e.g. MAILTO="", MAILTO="" will disable email).
Your cron daemon may vary slightly - see the man pages for cron(8) & crontab(5) for more details :-)

If your system can't send email you need to proceed per your vendor's instructions to get that set up in working order, which reduces this to the scenario above.

share|improve this answer

There's a simple check-list for configuring sendmail here. This should be enough for configuring your server to send notifications.

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.