Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 (http://heirloom.sourceforge.net) 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

1 Answer 1

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

 
discard

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.