From owner-freebsd-questions Tue Jan 21 6: 4:58 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 E464137B401 for ; Tue, 21 Jan 2003 06:04:55 -0800 (PST) Received: from mail11.atl.registeredsite.com (mail11.atl.registeredsite.com [64.224.219.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD68843E4A for ; Tue, 21 Jan 2003 06:04:49 -0800 (PST) (envelope-from admin@asarian-host.net) Received: from asarian-host.net (asarian-host.net [216.122.74.112]) by mail11.atl.registeredsite.com (8.12.2/8.12.6) with ESMTP id h0LE4me7029983 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Tue, 21 Jan 2003 09:04:48 -0500 Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email addresses for asarians can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by asarian-host.net (8.11.6/8.11.0) id h0LE4mv61346 for freebsd-questions@freebsd.org; Tue, 21 Jan 2003 15:04:48 +0100 (CET) (envelope-from admin@asarian-host.net) Posted-Date: Tue, 21 Jan 2003 15:04:48 +0100 (CET) From: Mark Message-Id: <200301211404.H0LE4JL61319@asarian-host.net> Date: Tue, 21 Jan 2003 15:04:39 +0100 X-Authenticated-Sender: admin@asarian-host.net Subject: Re: Help! Errors in /var/log/messages after upgrade X-Trace: sC0B/KYGTyh33BSaM2nnhzGCSphxNZ6Igui3GEn3lmmn3daLmv39v6BTxJYvaUdl X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: =?iso-8859-1?Q?Andreas_Wider=F8e_Andersen?= , References: <3E2D40B1.1020306@pragma.no> <200301211310.H0LDAQL50541@asarian-host.net> <3E2D4CFE.7010403@pragma.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Auth: Asarian-host PGP signature iQEVAwUAPi1TgDFqW1BleBN9AQGpfwgAhJ8tyWYM4JVKG3RNCbMyAFlkn76c++NO JW6GFYquHumZrspTaUdLTJw8wphXr30VMm91JKfaZ1JjM9PkrEmkK8f/hihLgCml YdBPprt2zsaDtZpXz7rCJDHvAorVE2AyhkSS2f9/+CUzAy1DgUJLGn8RaQH3nC6X r6ueoTUknEQO2ANtt3I2uGey2KYKDGSBtDnxBkP+/wQclGMC/rGahp0sR9CyTfIj v+N2mYxBPhFpdNFl2P5zrWPY5pZBzQwyM++0ss9JH+Y7Nleiq+z9ae+ELFTr9Evn gQth6UwqpdDhq1QX3+Vqww1DHsBLcH9ZCGWx8E+bdNDQBB4V8oy0CQ== =y8+T 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 2:37 PM Subject: Re: Help! Errors in /var/log/messages after upgrade > > ----- 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? Not Apache itself, of course, but an invocation of sendmail from a web-page / CGI. By default sendmail queues all messages for safety. Which behavior, I believe, is controlled by the "SuperSafe" variable. Look for a section that says, # queue up everything before forking? O SuperSafe=True > I've noticed a new directory under /var/spool which is named > /clientmqueue. What is this for? That is the queue for the sendmail submission user. If you have none yet, create it: pw useradd -n smmsp -g smmsp -u 25 -m -d /var/spool/clientmqueue -s /sbin/nologin -c "Sendmail Submission User" Your queues will look like this: drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue drwx------ root wheel ... /var/spool/mqueue And the sendmail binary needs to be set setgid smmsp. > Also, which Sendmail version was included in FreeBSD 4.5 and which is > included in 4.7? Dunno about 4.5, but 4.7R came with 8.12.6. - Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message