By default, the output of each cron job is collected by cron and sent via email when the job is complete. If there is no output, no mail is sent.
If you see (CRON) info (No MTA installed, discarding output)
errors in your syslog it means that there is output from your cron job but your server does not have a Message Transfer Agent installed to process the output into an email.
This is not a problem with your cron job itself and does not mean your cron job is failing.
There are 3 ways you can fix this error:
postfix
. This can be installed in most cases from a package manager. For example, on Ubuntu you may run:
sudo apt-get install postfixIf you select
local
installation, the output from your cron jobs will be relayed to a local "mailbox" that you can easily tail:
sudo tail -f /var/mail/<cron user>
MAILTO=""
Cronitor automatically finds and monitors cron jobs. Complete your setup in minutes.