Here is what happened to me:
I don't seem to be able to send mail from the periodic system
tasks that run daily or weekly when managed by launchd.
Due to OS corruption I had to do a clean install. In the previous
incarnation of the OS I used anacron and did not have a problem
with generating the email messages.
I can also execute /usr/sbin/periodic daily directly as root and
the email will be generated.
Contents of daily.local:
********************
bash-3.2# cat /etc/daily.local
#!/bin/sh
# sync wiki data with server
/usr/local/bin/pullFromServer
export HOME=/var/root
/usr/bin/printenv
/usr/bin/mail -s "Daily Cron Job" jerry <<DOC
Daily Cron ran on `/bin/date`
DOC
********************
Tail of daily.out
********************
Running daily.local:
receiving file list ... done
sent 76 bytes received 4245 bytes 8642.00 bytes/sec
total size is 712305 speedup is 164.85
host=mbp
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PWD=/var/spool/fax
HOME=/var/root
SHLVL=3
_=/usr/bin/printenv
-- End of daily output --
************************
The system log contains these complaints when the periodic
tasks are run.
bash-3.2# cat system.log | grep apple.periodic
Nov 21 03:16:47 mbp com.apple.launchd[1] (com.apple.periodic-daily[1904]): Stray process with PGID equal to this dead job: PID 1969 PPID 1 sendmail
Nov 22 08:10:08 mbp com.apple.launchd[1] (com.apple.periodic-daily[2286]): Stray process with PGID equal to this dead job: PID 2379 PPID 1 sendmail
Nov 22 08:22:39 mbp com.apple.launchd[1] (com.apple.periodic-weekly[2287]): Stray process with PGID equal to this dead job: PID 2465 PPID 1 sendmail
Nov 23 08:21:33 mbp com.apple.launchd[1] (com.apple.periodic-daily[5588]): Stray process with PGID equal to this dead job: PID 5660 PPID 5656 postdrop
Nov 23 08:21:33 mbp com.apple.launchd[1] (com.apple.periodic-daily[5588]): Stray process with PGID equal to this dead job: PID 5656 PPID 1 sendmail
**************************
There are no entries in the mail log file at the time the periodic tasks are run.
Any suggestions on how to fix the problem?
Jerry