From owner-freebsd-questions Tue Jan 21 6:24:43 2003 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 B65F137B401 for ; Tue, 21 Jan 2003 06:24:40 -0800 (PST) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E2D743EB2 for ; Tue, 21 Jan 2003 06:24:36 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from DaleCoportable [207.191.248.72] by mail.gbronline.com (SMTPD32-7.13) id A762CCAA00D6; Tue, 21 Jan 2003 08:21:22 -0600 Message-ID: <023501c2c158$aa2d8d30$0100a8c0@DaleCoportable> From: "Kevin D. Kinsey, DaleCo, S.P." To: =?iso-8859-1?Q?Andreas_Wider=F8e_Andersen?= , References: <3E2D40B1.1020306@pragma.no> <200301211310.H0LDAQL50541@asarian-host.net> <3E2D4CFE.7010403@pragma.no> Subject: Re: Help! Errors in /var/log/messages after upgrade Date: Tue, 21 Jan 2003 08:23:25 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Andreas Widerĝe Andersen" To: Sent: Tuesday, January 21, 2003 7:37 AM Subject: Re: Help! Errors in /var/log/messages after upgrade Mark wrote: > ----- Original Message ----- > From: "Andreas Widerĝe Andersen" > To: > Sent: Tuesday, January 21, 2003 1:44 PM > Subject: Help! Errors in /var/log/messages after upgrade > > > >>After I upgraded to FreeBSD 4.7 STABLE yesterday I receive some errors >>in the /var/log/messages file. These errors occour only when people >>try to send mail via webforms on websites hosted on the server. Here >>is an example: >> >>Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046: SYSERR(www): >>collect: Cannot write ./dfh0LCeCp6044046 (bfcommit, uid=80, gid=25): >>Permission denied Jan 21 13:40:12 server sendmail[44046]: >>h0LCeCp6044046: SYSERR(www): queueup: cannot create queue temp file >>./tfh0LCeCp6044046, uid=80: Permission denied >> >>Can someone please tell me what to do to get rid of this and make web >>forms work again? Thanks a million!! >> >> Andreas >> > > > Hi Andreas, > > I had the same problem myself, when I installed FreeBSD 4.7R on a new > server. > > I was finally able to "solve" it by queueing mail from the webdaemon (from > CGI scripts and such) into its own queue (that is, running messages off > forms with "-odq -oQ/var/spool/webqueue" (and setting such as default in > php.ini), and setting access rights for "/var/spool/webqueue" owned by the > "nobody" user (Apache runs as nobody) as follows: > > drwxr-xr-x 2 nobody daemon 512 Jan 21 13:41 webqueue > > (would likely be user "www" in your case) I say "solve" because this does > indeed make the permission errors go away, and things worked again; though I > feel a more elegant solution may exist, I have not found it yet. ]Is Apache trying to put a temporary file into /var/spool/mqueue without ]having the correct permissions to do so? Seems likely. Having /var/spool/mqueue owned by the Apache daemon would be something most folk wouldn't want to do, IMO... ]I've noticed a new directory under /var/spool which is named ]/clientmqueue. What is this for? I'm sure somebody will correct me if I am wrong: this is the queue used by the smmsp (SendMail Mail Submission Process) daemon, which was added somewhat recently to Sendmail. Basically the idea is that local submission of messages to Sendmail can be moved to port 587 (I believe) in order to seperate it from port 25 traffic; this would allow tweaking of various parameters for performance and/or security reasons. Also, which Sendmail version was included in FreeBSD 4.5 and which is included in 4.7? [/home/kadmin] [8:19] #telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 archangel.daleco.biz ESMTP Sendmail 8.12.6/8.12.3; Tue, 21 Jan 2003 08:21:58 -0600 (CST) HTH, Kevin Kinsey DaleCo, S.P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message