Date: Mon, 31 Aug 2015 07:30:02 -0400 From: Ernie Luzar <luzar722@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: cron_flags="-m not working Message-ID: <55E43ABA.4090509@gmail.com>
next in thread | raw e-mail | index | archive | help
The host has a user account called bob. I want all cron email to go to bob and not root. I use postfix and sendmail is disabled. man cron says -m mailto Overrides the default recipient for cron mail. Each crontab(5) without MAILTO explicitly set will send mail to the mailto mail‐ box. Sending mail will be disabled by default if mailto set to a null string, usually specified in a shell as '' or "". I interpret that to mean I add cron_flags="-m option to /etc/rc.conf like this: cron_flags="-m bob@mymail.com" and reboot the host. I tried cron_flags="-m bob" cron_flags="-m 'bob'" cron_flags="-m bob@mymail.com" cron_flags="-m 'bob@mymail.com'" In all cases the daily cron email still went to root. Any ideas why it did not work and no errors were generated?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E43ABA.4090509>