Does anyone (successfully) use email notifications from fcron? I have read all of the man pages and set the fcrontabs accordingly. But no matter what I do, I never receive email notifications (unless the script has mail built into it) for the scripts in /etc/fcron.[period] or in the fcrontab itself. The scripts are executed (e.g., a test script touches a file) but no stdout is emailed.
fcrontab -e
#
# crontab for ipfire
#
# Set global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#MAILTO=full email address
HOME=/
!mailfrom(full email address),mailto(full email address)
# Do all jobs in this directories
*/1 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.minutely
*/5 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.cyclic
01 * * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.hourly
&nice(10),bootrun 25 1 * * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.daily
&nice(10),bootrun 47 2 * * 1 test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.weekly
&nice(10),bootrun 52 3 1 * * test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.monthly
.
.
.
# Test fcron mail
&mailto(root),forcemail 12 * * * * echo "Hello World" && touch /root/test1312
There is a test script in /etc/fcron.hourly and the last line of root’s fcrontab has mail commands in it. The scripts execute (i.e., files are created) but no email notification.
cron log:
13:12:00 fcron[9501]: Job 'echo "Hello World" && touch /root/test1312' completed
13:12:00 fcron[9503]: Job 'test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.minutely' started for user root (pid 9504)
13:12:00 fcron[9501]: Job 'echo "Hello World" && touch /root/test1312' started for user root (pid 9502)
13:01:00 fcron[8376]: Job 'test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.hourly' completed
13:01:00 fcron[8378]: Job '/usr/sbin/logrotate /etc/logrotate.conf' completed
13:01:00 fcron[8378]: Job '/usr/sbin/logrotate /etc/logrotate.conf' started for user root (pid 8379)
13:01:00 fcron[25463]: Skipping execution of already running job: root's 'test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.minutely'
13:01:00 fcron[8376]: Job 'test -x /usr/local/bin/run-parts && /usr/local/bin/run-parts /etc/fcron.hourly' started for user root (pid 8377)
Nothing in the mail log (no errors, no attempt to send).
Any insight?