Koozali.org: home of the SME Server

mail from cron task not sent

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
mail from cron task not sent
« on: October 17, 2012, 01:06:12 PM »
I have some cron tasks and those are not sending any e-mail to admin/root account.
I´m sure I´ve done something wrong... but I cannot find out.
The problem is I need to receive at lease the backup e-mails for USB devices.

Can someone help me pointing where to find debug info about this?

thanks

Jáder
« Last Edit: October 17, 2012, 01:08:59 PM by jader »
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: mail from cron task not sent
« Reply #1 on: October 17, 2012, 02:47:45 PM »
cron itself will send email to root if the commands produce output on standard out or standard error. Whether mail is sent, and to whom, can be modified by use of the MAILTO variable. See:

http://www.cyberciti.biz/faq/linux-unix-crontab-change-mailto-settings/

The commands themselves may generate their own email messages. Whether they do so, and how they do so, is an internal matter for them.

Quote
I have some cron tasks and those are not sending any e-mail

You need to examine each of those on a case by case basis.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: mail from cron task not sent
« Reply #2 on: October 17, 2012, 08:06:04 PM »
Charlie

I´d like toapologize... I was unclear...
I´d like to understand WHERE look for info why the server do not send email EXTERNALLY... I can read messages in webmail... but even after enable them on server-manager... the messages are not send outside server.

Jáder
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: mail from cron task not sent
« Reply #3 on: October 18, 2012, 02:44:42 AM »
You still need to analyse on a case-by-case basis. What email address was the target for each particular message. Then investigate why that address might not have been forwarded.

Check ~admin/.qmail* files to see what they say.