From owner-freebsd-stable@FreeBSD.ORG Tue Oct 4 18:01:14 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E74D16A41F for ; Tue, 4 Oct 2005 18:01:14 +0000 (GMT) (envelope-from etroja@albunix.org) Received: from moon.albunix.org (moon.albunix.org [64.81.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8464243D45 for ; Tue, 4 Oct 2005 18:01:10 +0000 (GMT) (envelope-from etroja@albunix.org) Received: from moon.albunix.org (localhost.localdomain [127.0.0.1]) by moon.albunix.org (anonymous/8.13.1) with ESMTP id j94I1Ald018025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 4 Oct 2005 14:01:10 -0400 Received: from localhost (etroja@localhost) by moon.albunix.org (anonymous/8.13.1/Submit) with ESMTP id j94I19Q6010019 for ; Tue, 4 Oct 2005 14:01:10 -0400 Date: Tue, 4 Oct 2005 14:01:09 -0400 (EDT) From: Erald Troja To: freebsd-stable@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on localhost X-Virus-Status: Clean Subject: cron notifications X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 18:01:14 -0000 Hello! hello! I'm having issues getting cronjob notifications. probably a misconfig. i'm fairly new to freebsd, comming from a linux platform. i was told nothing needs to be configured sendmail wise to get this going. i can relay messgs via either 'mail' or '/usr/sbin/sendmail' out just fine. Cron itself runs perferctly, as I can see it in the log files. Sep 30 12:53:58 web01 crontab[45138]: (aroadmin) END EDIT (aroadmin) Sep 30 12:54:00 web01 /usr/sbin/cron[459]: (aroadmin) RELOAD (tabs/aroadmin) Sep 30 12:54:00 web01 /usr/sbin/cron[45206]: (aroadmin) CMD (/bin/ls) Sep 30 12:55:01 web01 /usr/bin/crontab[45507]: (root) LIST (aroadmin) Sep 30 12:55:02 web01 /usr/bin/crontab[45512]: (root) LIST (aroadmin) Sep 30 12:55:38 web01 crontab[45605]: (aroadmin) BEGIN EDIT (aroadmin) Sep 30 12:55:44 web01 crontab[45605]: (aroadmin) REPLACE (aroadmin) Sep 30 12:55:44 web01 crontab[45605]: (aroadmin) END EDIT (aroadmin) Sep 30 12:55:58 web01 /usr/bin/crontab[45714]: (root) LIST (aroadmin) Sep 30 12:56:00 web01 /usr/sbin/cron[459]: (aroadmin) RELOAD (tabs/aroadmin) Sep 30 12:56:00 web01 /usr/sbin/cron[45722]: (aroadmin) CMD (/bin/ls) That's from me editing crontabls via the control panel. I have of course changed the time so I could test it. This is all maillog shows regarding it Sep 30 12:54:00 web01 sendmail[45210]: j8UGs0cs045210: from=aroadmin, size=0, class=0, nrcpts=0, msgid=<200509301654.j8UGs0cs045210@web01.secureser verdot.com >, relay=aroadmin@localhost Sep 30 12:54:00 web01 sendmail[45209]: j8UGs08L045209: from=aroadmin, size=0, class=0, nrcpts=0, msgid=<200509301654.j8UGs08L045209@web01.secureser verdot.com >, relay=aroadmin@localhost Sep 30 12:56:00 web01 sendmail[45727]: j8UGu0co045727: from=aroadmin, size=0, class=0, nrcpts=0, msgid=<200509301656.j8UGu0co045727@web01.secureser verdot.com >, relay=aroadmin@localhost Sep 30 12:56:00 web01 sendmail[45725]: j8UGu0gr045725: from=aroadmin, size=0, class=0, nrcpts=0, msgid=<200509301656.j8UGu0gr045725@web01.secureser verdot.com >, relay=aroadmin@localhost finally, i'm trying to mail out to an yahoo.com address as to avoid questing/confustions about receipients ability to receive mail. any help is well appreciated. also, i don't want to switch to qmail, since this is a web server acting as part of H-sphere hosting cluster. Yes, either mail fearff@yahoo.com or /usr/sbin/sendmail -v fearff@yahoo.com work perfectly fine. I am trying to get a notification that a simple command like /bin/ls or /bin/pwd was successfully executed. in linux, crontab -e edits one's crontab. you put a correct crontab entry to excute /bin/ls or /bin/pwd and it'll mail you to the MAILTO address with a notification that the cron has been run. -- Erald Troja etroja at albunix.org