From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 14:00:43 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD46010656C2 for ; Tue, 1 Jun 2010 14:00:43 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6F76B8FC15 for ; Tue, 1 Jun 2010 14:00:43 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OJS1I-00046H-Fz; Tue, 01 Jun 2010 16:00:40 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o51E0eWE008250; Tue, 1 Jun 2010 16:00:40 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o51E0ewF008249; Tue, 1 Jun 2010 16:00:40 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 1 Jun 2010 16:00:39 +0200 From: Matthias Apitz To: APseudoUtopia Message-ID: <20100601140039.GA8168@current.Sisis.de> References: <4BFFAC35.2040503@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: questions@freebsd.org, Laszlo Nagy Subject: Re: cron not sending emails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 14:00:43 -0000 El día Tuesday, June 01, 2010 a las 09:41:11AM -0400, APseudoUtopia escribió: > 2010/5/28 Laszlo Nagy : > > Hi All! > > > > After upgrading to 8.0 RELEASE, I'm not getting any emails from cron. > > > > If I put this into root's crontab > > > > * * * * * echo "TEST" > > > > then I see this in the maillog: > > > > May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No > > recipient addresses found in message header > > > > > > Just as a side note, I started having this problem a while ago with > 7.2-RELEASE, I believe. I was using the base-system sendmail and no > special configuration with cron or anything. > > I never found a solution. I posted on this mailing list and nothing > anyone suggested solved it. I ended up just piping every single cron > command into /usr/bin/mail: > > 0 */4 * * * root /usr/local/backups/daily_backup.sh | > /usr/bin/mail -E -s "Daily Backup" email@address.tld > > That works fine. current# uname -a FreeBSD current.unixarea.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 09:55:14 CET 2010 guru@current.unixarea.de:/usr/obj/usr/src/sys/GENERIC i386 current# crontab -l | fgrep 15 56 15 * * * /usr/sbin/ntpdate -b ntps1-0.cs.tu-berlin.de current# tail -3 /var/log/cron Jun 1 15:56:00 current /usr/sbin/cron[1509]: (root) RELOAD (tabs/root) Jun 1 15:56:00 current /usr/sbin/cron[8209]: (root) CMD (/usr/sbin/ntpdate -b ntps1-0.cs.tu-berlin.de) Jun 1 15:57:17 current crontab[8220]: (root) LIST (root) current# tail /var/log/maillog Jun 1 15:56:01 current sm-mta[8213]: o51Du1q1008212: to=, ctladdr= (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30877, relay=local, dsn=2.0.0, stat=Sent i.e. no problem on my system; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!