Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 15:23:37 -0400 (EDT)
From:      Francisco Reyes <lists@natserv.com>
To:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Fixed (Cron fails. Error in /var/log/maillog: No recipient) 
Message-ID:  <20050701151816.H4101@zoraida.natserv.net>
In-Reply-To: <20050629221944.V54615@zoraida.natserv.net>
References:  <20050629221944.V54615@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Jun 2005, Francisco Reyes wrote:

For the archives.

Problem was crontab failing.
first thing I noticed was

> postfix/sendmail[36590]: fatal:
> No recipient addresses found in message
> header

In /var/log/maillog

Then someone suggested to look at /var/log/cron
There I saw errors like

NSSWITCH(nss_method_lookup): nis, passwd_compat, endpwent, not found

Some digging and found that if one takes off NIS from the system one needs 
to change /etc/nsswitch.conf to
group: files
hosts: files dns
networks: files
passwd: files
shells: files

That solved the problem.
However, I find it very interesting that cron fails if it can not send out 
an email.



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