From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 22:21:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEA781065675 for ; Wed, 25 Jun 2008 22:21:01 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1468FC0C for ; Wed, 25 Jun 2008 22:21:01 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m5PMKjGT022118; Wed, 25 Jun 2008 17:20:46 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080625171934.0255e4f8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 25 Jun 2008 17:20:31 -0500 To: Schiz0 , "FreeBSD Questions" From: Derek Ragona In-Reply-To: <8d23ec860806251134r2ff5334fmbc017d42e40ba74b@mail.gmail.co m> References: <8d23ec860806251134r2ff5334fmbc017d42e40ba74b@mail.gmail.com> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080625-0, 06/25/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93/6806/Wed Apr 16 15:50:16 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m5PMKjGT022118 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Crontab Not Sending Email - nrcpts=0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2008 22:21:01 -0000 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.