From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 18:34:53 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 702261065671 for ; Wed, 25 Jun 2008 18:34:53 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 2E17F8FC20 for ; Wed, 25 Jun 2008 18:34:53 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1780942pyb.10 for ; Wed, 25 Jun 2008 11:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=wtOBT7Xw44eHqjSMMz614cx5VevPGIV9hoY49//eyBk=; b=rWdOGw+UzUZEAX+T/pki4ci7Dv2qFApv38+shp4nSSvnQgfx1UOB2Leb78YOXk6+fz Gke9ByndlZaFRnzgIYOFhsKSAm71/W0H/wpMjHkJOXnPQTroqUBxh3D9vlGObd6MCvld 3zP4yw5Y7QCv1xQoSltelEYUQgqfa1ssRS/7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=QARbqwDEfj2s8qfQiMFxgBOWgShjiUgx4dXcoJODpyDCYBTAAIHEsYmdTKIgHdJUmx JYZydK+Iq3d+6kkJoX2IgzYenBywCE0j7fucnp0ngiDYFmhbODDuz8wUle85fDIRHoIu DhXp+cV4XDPY0NquGygOHzDM7+aV8LQwQx0FE= Received: by 10.114.148.2 with SMTP id v2mr6217850wad.173.1214418891753; Wed, 25 Jun 2008 11:34:51 -0700 (PDT) Received: by 10.114.254.11 with HTTP; Wed, 25 Jun 2008 11:34:51 -0700 (PDT) Message-ID: <8d23ec860806251134r2ff5334fmbc017d42e40ba74b@mail.gmail.com> Date: Wed, 25 Jun 2008 14:34:51 -0400 From: Schiz0 To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 18:34:53 -0000 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 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.