From owner-freebsd-stable Mon Jun 3 9: 9:12 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.quantified.com (ns2.quantified.com [63.212.171.3]) by hub.freebsd.org (Postfix) with ESMTP id 61DA537B409; Mon, 3 Jun 2002 09:09:06 -0700 (PDT) Received: from danzig.sd.quantified.net (web.quantified.com [63.212.171.5]) by mail.quantified.com (8.12.1/8.12.1) with ESMTP id g53G96lg066563; Mon, 3 Jun 2002 09:09:06 -0700 (PDT) (envelope-from dsilver@urchin.com) Date: Mon, 3 Jun 2002 09:09:06 -0700 (PDT) From: Doug Silver X-Sender: dsilver@danzig.sd.quantified.net To: Gregory Neil Shapiro Cc: freebsd-stable@FreeBSD.ORG Subject: Re: 4.6RC Sendmail clientmqueue problem In-Reply-To: <15611.37561.690668.315545@horsey.gshapiro.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filter-Version: 1.7 (mail.quantified.com) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Jun 2002, Gregory Neil Shapiro wrote: > dsilver> I just upgraded one of my servers to 4.6RC and now sendmail > dsilver> (localhost/outbound email only) appears somewhat broken. These > dsilver> messages keep coming through: > > dsilver> sendmail[2197]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied > > dsilver> Looking through the recent archives/etc I've seen lots of messages > dsilver> about this, but everything appears to be setup properly: > > dsilver> -r-xr-sr-x 1 root smmsp 581956 Jun 2 18:50 /usr/libexec/sendmail/sendmail* > dsilver> drwxrwx--- 2 smmsp smmsp 512 Jun 2 18:27 /var/spool/clientmqueue/ > > Your setup looks correct. There are a couple of possibilities: > > 1. /usr is mounted nosuid. > 2. /, /var, or /var/spool are not mode 0755. > 3. You are running sendmail from the command line with an option that > causes it to drop privs. > 4. You have also set RunAsUser in your submit.cf. > > dsilver> The only change I made to the submit.cf file was to enable the > dsilver> 'trusted-users' file, which I may or may not need (does the web > dsilver> server "www" need to be in there?). > > Only if the www user is sending mail using the -f option to change the > sender address. > Hi Greg - Thanks for the quick response! This machine was previously running 4.4-Stable. drwxr-xr-x 18 root wheel 512 Jan 7 17:01 usr/ drwxr-xr-x 22 root wheel 512 Mar 12 09:52 var/ drwxr-xr-x 10 root wheel 512 Jun 2 18:27 /var/spool # egrep mail /etc/rc.conf sendmail_enable="NO" # cat /var/run/sendmail.pid 93 /usr/sbin/sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost # egrep -i runasuser submit.cf O RunAsUser=smmsp I did make another mc file for this machine to use, with the only modification being to define SMART_HOST and 'use_ct_file'. The www user does change the user though I'm using a perl-module to do this so I'm not sure what it's using under the hood, but I added it just to be sure. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Doug Silver Network Manager Urchin Software Corp. http://www.urchin.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message