From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 09:00:58 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 4C4D91065672 for ; Tue, 1 Jun 2010 09:00:58 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep17.mx.upcmail.net (fep17.mx.upcmail.net [62.179.121.37]) by mx1.freebsd.org (Postfix) with ESMTP id A05CC8FC12 for ; Tue, 1 Jun 2010 09:00:57 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep17-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20100601090055.XXOP21441.viefep17-int.chello.at@edge05.upcmail.net>; Tue, 1 Jun 2010 11:00:55 +0200 Received: from laci.sznet ([86.101.31.185]) by edge05.upcmail.net with edge id QZ0u1e00y3zeu1y05Z0vDS; Tue, 01 Jun 2010 11:00:55 +0200 X-SourceIP: 86.101.31.185 Message-ID: <4C04CC45.5000508@shopzeus.com> Date: Tue, 01 Jun 2010 11:00:53 +0200 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Matthias Apitz References: <4BFFAC35.2040503@shopzeus.com> <4BFFDCC4.5080408@fechner.net> <4C00099D.6070005@shopzeus.com> <4C028270.5030900@shopzeus.com> <20100530161652.GA4423@current.Sisis.de> In-Reply-To: <20100530161652.GA4423@current.Sisis.de> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=BX1z5e3lS7RAKjOkUI/uDpZ/pP4xz0N/VImyOZX9Sfk= c=1 sm=0 a=wbKXeunVgZ0A:10 a=8nJEP1OIZ-IA:10 a=tHCDo4I2Y7TtzhaQrcMA:9 a=bouyFpe_uBb3BtE73JcA:7 a=rddH-st2OJuNr0k9kvBbNh93RCEA:4 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: questions@freebsd.org Subject: Re: cron not sending emails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 09:00:58 -0000 >>> 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