From owner-freebsd-stable@FreeBSD.ORG Fri Jan 23 01:33:44 2004 Return-Path: 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 4BF5F16A4CE; Fri, 23 Jan 2004 01:33:44 -0800 (PST) Received: from access.inet.co.th (access.inet.co.th [203.151.127.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C16443DB0; Fri, 23 Jan 2004 01:30:59 -0800 (PST) (envelope-from pirat@access.inet.co.th) Received: from firak.thai-aec.org (TruPPPv92-225-22.inet.co.th [203.151.225.22]) by access.inet.co.th (8.12.5/8.12.5) with ESMTP id i0N9SxG2085443; Fri, 23 Jan 2004 16:29:00 +0700 (ICT) (envelope-from pirat@access.inet.co.th) Received: from firak.thai-aec.org (localhost.thai-aec.org [127.0.0.1]) by firak.thai-aec.org (8.12.10/8.12.10) with ESMTP id i0N9UTrf000892; Fri, 23 Jan 2004 16:30:29 +0700 (ICT) (envelope-from pirat@access.inet.co.th) Received: (from pirat@localhost) by firak.thai-aec.org (8.12.10/8.12.10/Submit) id i0N9UTYr000891; Fri, 23 Jan 2004 16:30:29 +0700 (ICT) (envelope-from pirat@access.inet.co.th) X-Authentication-Warning: firak.thai-aec.org: pirat set sender to pirat@access.inet.co.th using -f Date: Fri, 23 Jan 2004 16:30:28 +0700 From: pirat To: Don Lewis Message-ID: <20040123093028.GC355@thai-aec.org> References: <20040123082336.GB355@thai-aec.org> <200401230856.i0N8uY7E066551@gw.catspoiler.org> Mime-Version: 1.0 Content-Type: text/plain; charset=tis-620 Content-Disposition: inline In-Reply-To: <200401230856.i0N8uY7E066551@gw.catspoiler.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE www-home-page: http://www.thai-aec.org www-FreeBSD-page: http://www.thai.net/makham cc: freebsd-stable@FreeBSD.org Subject: Re: SYSERR(root) Can not exec /bin/mail: No such file or directory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 09:33:44 -0000 hi sirs, On Friday, 23 January 2004 at 0:56:34 -0800, Don Lewis wrote: > Date: Fri, 23 Jan 2004 00:56:34 -0800 (PST) > From: Don Lewis > Subject: Re: SYSERR(root) Can not exec /bin/mail: No such file or directory > To: pirat@access.inet.co.th > cc: freebsd-stable@FreeBSD.org > > On 23 Jan, pirat wrote: > > On Friday, 23 January 2004 at 0:04:20 -0800, Don Lewis wrote: > >> Date: Fri, 23 Jan 2004 00:04:20 -0800 (PST) > >> From: Don Lewis > >> Subject: Re: SYSERR(root) Can not exec /bin/mail: No such file or directory > >> To: pirat@access.inet.co.th > >> cc: freebsd-stable@FreeBSD.org > >> > >> On 23 Jan, pirat wrote: > >> > hi sirs, > >> > > >> > i hvae just noticed that if /usr/src/contrib/sendmail/cf/mailer/local.m4 has > >> > a line that says > >> > > >> > ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/mail)') > >> > > >> > will result in error at boot time. i simply change that line to > >> > > >> > ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/bin/mail)') > >> > > >> > and error disappears after doing make install at /etc/mail. but i do not > >> > know of any side effects will happen. my system is > >> > > >> > [firak] /usr/src/contrib/sendmail/cf/mailer # uname -a > >> > FreeBSD firak.thai-aec.org 4.9-STABLE FreeBSD 4.9-STABLE #3: Fri Jan 23 10:25:43 > >> > ICT 2004 root@firak.thai-aec.org:/var/obj/usr/src/sys/Firak i386 > >> > [firak] /usr/src/contrib/sendmail/cf/mailer # > >> > >> It looks like your sendmail .mc file (which is used to build your > >> sendmail.cf) is missing the > >> OSTYPE(freebsd4) > >> statement which pulls in > >> /usr/src/contrib/sendmail/cf/ostype/freebsd4.m4, > >> which defines LOCAL_MAILER_PATH as /usr/libexec/mail.local. You'll > >> probably want to use /etc/mail/freebsd.mc as the starting point for your > >> sendmail configuration. > >> > > > > yes it has but upon reboot for a few time `can not exec /bin/mail' still > > show up. and that is why i have to edit local.m4 instead. > > > > Do you have a .mc in /etc/mail? If so, the Makefile will pick > that instead of freebsd.mc. > i rm all of them before doing make > > As long as the .mc file uses OSTYPE(freebsd4) and nothing else > overrides LOCAL_MAILER_PATH, the definition of LOCAL_MAILER_PATH in > /usr/src/contrib/sendmail/cf/ostype/freebsd4.m4 should override the > default in local.m4. > > For doing final delivery to /var/mail/username you need to use > /usr/libexec/mail.local if you are running FreeBSD 4.x, unless you have > installed some other local delivery agent such as procmail, etc. > i use only sendmail. > > This is what I've got in my /etc/mail/freebsd.cf file, which is created > from freebsd.mc, on my 4.9-STABLE machine. > > Mlocal, P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qPSXfmnz9, S=EnvFromSMT > P/HdrFromL, R=EnvToL/HdrToL, > T=DNS/RFC822/SMTP, > A=mail.local -l > currently, my Mlocal is the same as yours. this is quite strange. > > I have not made any modifications to /usr/src/contrib/sendmail/* > i will revert local.m4 back and retry. thanks for your hints and helps indeed. -- with best regards, psr http://www.thai-aec.org http://www.thai.net/makham