Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2010 16:00:39 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        APseudoUtopia <apseudoutopia@gmail.com>
Cc:        questions@freebsd.org, Laszlo Nagy <gandalf@shopzeus.com>
Subject:   Re: cron not sending emails
Message-ID:  <20100601140039.GA8168@current.Sisis.de>
In-Reply-To: <AANLkTilCQ9WYKWUyQ7S3CBvycpwpPhUC6czDh3CA0bJz@mail.gmail.com>
References:  <4BFFAC35.2040503@shopzeus.com> <AANLkTilCQ9WYKWUyQ7S3CBvycpwpPhUC6czDh3CA0bJz@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, June 01, 2010 a las 09:41:11AM -0400, APseudoUtopia escribió:

> 2010/5/28 Laszlo Nagy <gandalf@shopzeus.com>:
> > 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=<root@current.unixarea.de>, ctladdr=<root@current.unixarea.de> (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 <guru@unixarea.de> - 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!



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