Date: Tue, 01 Jun 2010 11:00:53 +0200 From: Laszlo Nagy <gandalf@shopzeus.com> To: Matthias Apitz <guru@unixarea.de> Cc: questions@freebsd.org Subject: Re: cron not sending emails Message-ID: <4C04CC45.5000508@shopzeus.com> In-Reply-To: <20100530161652.GA4423@current.Sisis.de> References: <4BFFAC35.2040503@shopzeus.com> <4BFFDCC4.5080408@fechner.net> <4C00099D.6070005@shopzeus.com> <4C028270.5030900@shopzeus.com> <20100530161652.GA4423@current.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
>>> It doesn't work. With, or without the MAILTO. Just for completeness, >>> I have used this: >>> >>> MAILTO=gandalf >>> >>> The "gandalf" user is a local user on the system. I can send local >>> mail to this user using the "sendmail" postfix program (checked twice). >>> >> Cron is still not sending emails. Any idea? >> > > Yes, check the log of cron (/var/log/cron) if you job is run at all; if > so check the log of mails (/var/log/maillog). > Cron jobs are started. Just their output are not sent in emails. The output of the maillog I already sent before: May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header > Btw: what is the purpose of putting TEST into ""? > I tend to use double quotes for command line parameters. This is just a habit that I use it even when it is not really necessary. Output from /var/log/cron follows Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (tmp.27734) ORPHAN (no passwd entry) Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (root) RELOAD (tabs/root) Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided Jun 1 04:55:00 shopzeus /usr/sbin/cron[27073]: (operator) CMD (/usr/libexec/save-entropy) Jun 1 04:55:00 shopzeus /usr/sbin/cron[27075]: (root) CMD (/usr/libexec/atrun) Jun 1 04:55:00 shopzeus cron[27075]: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided Jun 1 04:55:00 shopzeus /usr/sbin/cron[27082]: (root) CMD (echo "Test") (Followed by other similar rows with NSSWITCH and CMD.) Thanks Laszlo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C04CC45.5000508>