cron not sending emails
Laszlo Nagy
gandalf at shopzeus.com
Tue Jun 1 09:00:58 UTC 2010
>>> It doesn't work. With, or without the MAILTO. Just for completeness,
>>> I have used this:
>>>
>>> MAILTO=gandalf
>>>
>>> The "gandalf" user is a local user on the system. I can send local
>>> mail to this user using the "sendmail" postfix program (checked twice).
>>>
>> Cron is still not sending emails. Any idea?
>>
>
> Yes, check the log of cron (/var/log/cron) if you job is run at all; if
> so check the log of mails (/var/log/maillog).
>
Cron jobs are started. Just their output are not sent in emails. The
output of the maillog I already sent before:
May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header
> Btw: what is the purpose of putting TEST into ""?
>
I tend to use double quotes for command line parameters. This is just a
habit that I use it even when it is not really necessary.
Output from /var/log/cron follows
Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (tmp.27734) ORPHAN (no
passwd entry)
Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (root) RELOAD (tabs/root)
Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: NSSWITCH(_nsdispatch):
nis, passwd_compat, endpwent, not found, and no fallback provided
Jun 1 04:55:00 shopzeus /usr/sbin/cron[27073]: (operator) CMD
(/usr/libexec/save-entropy)
Jun 1 04:55:00 shopzeus /usr/sbin/cron[27075]: (root) CMD
(/usr/libexec/atrun)
Jun 1 04:55:00 shopzeus cron[27075]: NSSWITCH(_nsdispatch): nis,
passwd_compat, endpwent, not found, and no fallback provided
Jun 1 04:55:00 shopzeus /usr/sbin/cron[27082]: (root) CMD (echo "Test")
(Followed by other similar rows with NSSWITCH and CMD.)
Thanks
Laszlo
More information about the freebsd-questions
mailing list