Fixed (Cron fails. Error in /var/log/maillog: No recipient)
Francisco Reyes
lists at natserv.com
Fri Jul 1 19:23:38 GMT 2005
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.
More information about the freebsd-questions
mailing list