1

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

2 Answers 2

-1

cron relies on local sendmail mechanism to send mails.

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

2
  • Can you be more specific about how to set this up?
    – endolith
    Nov 21, 2012 at 17:27
  • What an absolute non-answer. Apr 6, 2021 at 10:30
0

I think cron is using /usr/sbin/sendmail so make sure you point that to your MTA.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .