From owner-freebsd-questions@FreeBSD.ORG Wed May 3 01:47:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6777B16A401 for ; Wed, 3 May 2006 01:47:41 +0000 (UTC) (envelope-from fbsd-ml@scrapper.ca) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1E7F43D46 for ; Wed, 3 May 2006 01:47:40 +0000 (GMT) (envelope-from fbsd-ml@scrapper.ca) Received: from pd2mr5so.prod.shaw.ca (pd2mr5so-qfe3.prod.shaw.ca [10.0.141.8]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IYO00M2U2A770D0@l-daemon> for freebsd-questions@freebsd.org; Tue, 02 May 2006 19:46:55 -0600 (MDT) Received: from pn2ml8so.prod.shaw.ca ([10.0.121.152]) by pd2mr5so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IYO001A02A7HO90@pd2mr5so.prod.shaw.ca> for freebsd-questions@freebsd.org; Tue, 02 May 2006 19:46:55 -0600 (MDT) Received: from proven.lan ([24.85.249.204]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IYO00A9B2A77P70@l-daemon> for freebsd-questions@freebsd.org; Tue, 02 May 2006 19:46:55 -0600 (MDT) Received: from proven.lan (localhost [127.0.0.1]) by proven.lan (8.13.6/8.13.4) with ESMTP id k431ksq2041018; Tue, 02 May 2006 18:46:55 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Received: from localhost (localhost [[UNIX: localhost]]) by proven.lan (8.13.6/8.13.4/Submit) id k431ksxa041017; Tue, 02 May 2006 18:46:54 -0700 (PDT envelope-from fbsd-ml@scrapper.ca) Date: Tue, 02 May 2006 18:46:54 -0700 From: Norbert Papke In-reply-to: To: fbsd@a1poweruser.com Message-id: <200605021846.54440.fbsd-ml@scrapper.ca> Organization: Archaeological Filing MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: X-Authentication-warning: proven.lan: npapke set sender to fbsd-ml@scrapper.ca using -f User-Agent: KMail/1.9.1 Cc: freebsd-questions@freebsd.org Subject: Re: dhclient-exit-hooks 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: Wed, 03 May 2006 01:47:41 -0000 On Tuesday 02 May 2006 06:12, fbsd wrote: > IF I execute the cat command to issue the notification email > from the command line it works fine, but when used in the > script I get these messages during boot process. > I am running postfix launched by the sendmail wrappers > on a FreeBSD 6.0 system. > > "~/.mailrc": No match. Use sendmail(8) rather than mail(1). mail(1) expects to be run from a user session and looks for the user's preferences stored in the user's ,mailrc file. No user is available during the boot process. In your script, > #! /bin/sh Also, try removing the space between "#!" and "/bin/sh". It may be causing some weirdness.