Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2008 17:20:31 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        Schiz0 <schiz0phrenic21@gmail.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Crontab Not Sending Email - nrcpts=0
Message-ID:  <6.0.0.22.2.20080625171934.0255e4f8@mail.computinginnovations.com>
In-Reply-To: <8d23ec860806251134r2ff5334fmbc017d42e40ba74b@mail.gmail.co m>
References:  <8d23ec860806251134r2ff5334fmbc017d42e40ba74b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 01:34 PM 6/25/2008, Schiz0 wrote:
>Hey,
>
>I have another odd problem. Cron refuses to send any emails. Here's
>what DID work:
>
>-Sending email via /usr/bin/mail on command line
>-Having a crontab run a script which in turn sends an email
>-Piping the output of a crontab command into /usr/bin/mail. Such as
>having the following in a crontab:
>/bin/cat /home/user/todo_list | /usr/bin/mail staff@domain.tld
>
>But if I have this line in my crontab:
>25      0       *       *       1       /bin/cat /home/user/todo_list

Have you tried:
25      0       *       *       1       "/bin/cat /home/user/todo_list | 
/usr/bin/mail staff@domain.tld"

         -Derek



>No email is set to the owner of the crontab. I also tried defining
>$MAILTO in the crontab.
>"MAILTO=staff@domain.tld"
>
>When the crontab SHOULD be sending an email (But doesn't), I get the
>following error in my maillog:
>Jun 25 14:19:00 server1 sendmail[24291]: m5PIJ0sS024291: from=user,
>size=0, class=0, nrcpts=0,
>msgid=<200806251819.m5PIJ0sS024291@server1.another.tld>,
>relay=user@localhost
>
>nrcpts=0 means that there are no recipients, afaik.
>
>Can anyone help me out? Thanks.
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>--
>This message has been scanned for viruses and
>dangerous content by MailScanner, and is
>believed to be clean.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080625171934.0255e4f8>