From owner-freebsd-questions Tue Jan 21 5:39:23 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 AB3BC37B401 for ; Tue, 21 Jan 2003 05:39:21 -0800 (PST) Received: from vixen.pragma.no (rudolph.pragma.no [212.20.194.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51F2E43F3F for ; Tue, 21 Jan 2003 05:39:18 -0800 (PST) (envelope-from awand@pragma.no) Received: from pragma.no (DNSSPOOFER [212.20.194.160]) by vixen.pragma.no (Netscape Messaging Server 4.15) with ESMTP id H92GP900.L9P for ; Tue, 21 Jan 2003 14:41:33 +0100 Message-ID: <3E2D4CFE.7010403@pragma.no> Date: Tue, 21 Jan 2003 14:37:02 +0100 From: Andreas =?ISO-8859-1?Q?Wider=F8e?= Andersen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Freebsd-questions@freebsd.org Subject: Re: Help! Errors in /var/log/messages after upgrade References: <3E2D40B1.1020306@pragma.no> <200301211310.H0LDAQL50541@asarian-host.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable 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 Mark wrote: > ----- Original Message ----- > From: "Andreas Wider=F8e Andersen" > To: > Sent: Tuesday, January 21, 2003 1:44 PM > Subject: Help! Errors in /var/log/messages after upgrade >=20 >=20 >=20 >>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=3D80, gid=3D25)= : >>Permission denied Jan 21 13:40:12 server sendmail[44046]: >>h0LCeCp6044046: SYSERR(www): queueup: cannot create queue temp file >>./tfh0LCeCp6044046, uid=3D80: 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 >> >=20 >=20 > Hi Andreas, >=20 > I had the same problem myself, when I installed FreeBSD 4.7R on a new > server. >=20 > I was finally able to "solve" it by queueing mail from the webdaemon (f= rom > 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 i= n > php.ini), and setting access rights for "/var/spool/webqueue" owned by = the > "nobody" user (Apache runs as nobody) as follows: >=20 > drwxr-xr-x 2 nobody daemon 512 Jan 21 13:41 webqueue >=20 > (would likely be user "www" in your case) I say "solve" because this do= es > indeed make the permission errors go away, and things worked again; tho= ugh 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=20 having the correct permissions to do so? I've noticed a new directory under /var/spool which is named=20 /clientmqueue. What is this for? Also, which Sendmail version was included in FreeBSD 4.5 and which is=20 included in 4.7? /Andreas --=20 Andreas Wider=F8e Andersen Pragma AS http://www.pragma.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message