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 have one server on which cron jobs are ran. I don't want to install sendmail or postfix on this server but still want to get mails from cron. I have installed Heirloom mailx ( and configured it to use the smtp of on an other server I have, with postfix installed and configured to relay my mails. It works well if I use mail from the command line.

Unfortunately this does not seem enough for cron, in my syslog I can see:

CRON[30869]: (CRON) info (No MTA installed, discarding output)

How can I "tell" cron to use this set up to send mails ?

If it matters, I am on Ubuntu 12.4

share|improve this question
up vote 0 down vote accepted

cron relies on local sendmail mechanism to send mails.

Use lightweight smtp server: nullmailer, ssmtp as a local sendmail replacement.

share|improve this answer
nullmailer did it, thanks ! – Ponytech May 21 '12 at 13:32
Can you be more specific about how to set this up? – endolith Nov 21 '12 at 17:27

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.