Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Jáder on October 17, 2012, 01:06:12 PM

Title: mail from cron task not sent
Post by: Jáder 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
Title: Re: mail from cron task not sent
Post by: CharlieBrady 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.
Title: Re: mail from cron task not sent
Post by: Jáder 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
Title: Re: mail from cron task not sent
Post by: CharlieBrady 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.