Cron Not Sending Mail
apseudoutopia at gmail.com
Tue Mar 3 13:10:35 PST 2009
On Mon, Mar 2, 2009 at 10:14 PM, Glen Barber <glen.j.barber at gmail.com> wrote:
> On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia <apseudoutopia at gmail.com> wrote:
>> # User www's crontab
>> # Note, I also tried removing the MAILTO to no avail
>> # m h dom mon dow cmd
>> * * * * * echo "Hello"
> 1.) You are not using the full path to /bin/echo, which is why it is failing.
> 2.) This is a poor designed way to test cron's mail output.
> A Better(tm) way would be something like:
> */5 * * * * /bin/ping -c1 localhost >/dev/null
> which would mail to root on success or failure.
> Glen Barber
Thanks for the tips. I've put the following line in my normal user
account's crontab (This account does have a shell, it's one I use on a
MAILTO=my_email_account at gmail.com
* * * * * /sbin/ping -c4 localhost
I'm getting no emails at all. In /var/log/maillog, I'm getting the
Mar 3 21:10:00 domain sendmail: n23LA0td086797: from=www,
size=0, class=0, nrcpts=0,
msgid=<200903032110.n23LA0td086797 at subdomain.domain.tld>,
relay=www at localhost
More information about the freebsd-questions