From owner-freebsd-questions Mon May 13 11:17:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from icarus.slightlystrange.org (icarus.slightlystrange.org [62.190.193.173]) by hub.freebsd.org (Postfix) with ESMTP id 622C837B403 for ; Mon, 13 May 2002 11:17:20 -0700 (PDT) Received: from danielby by icarus.slightlystrange.org with local (Exim 3.12 #1 (Debian)) id 177KNr-0002vl-00 for ; Mon, 13 May 2002 19:17:19 +0100 Date: Mon, 13 May 2002 19:17:18 +0100 From: Daniel Bye To: freebsd-questions@Freebsd.org Subject: Re: Errors Message-ID: <20020513181718.GA11079@icarus.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@Freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i 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 On Mon, May 13, 2002 at 09:37:39AM -0700, Michelle Brownsworth wrote: > How about it, folks? Can anyone shed some light on my problem? > Please cc to michelle@willamette.net, if you would. > > >> I am getting these errors when a user tries to send mail from any mail = > >> program, such as pine, or just "sendmail" or anything. in root, I get no > >> = > >> such errors, except when logged in as a user besides root. > >> > >> In pine: > >> [Mail not sent. Sending error: 421 4.3.0 collect: Cannot write ./dfg12M] > >> > >> Other: > >> bash-2.05$ sendmail stratus@swcempire.com > >> Testin > >> collect: Cannot write ./dfg14MhPbP002936 (bfcommit, uid=3D13, = > >> gid=3D1007): Permission denied > >> queueup: cannot create queue temp file ./tfg14MhPbP002936, uid=3D13: = > >> Permission denied > >> bash-2.05$ This kinda looks like a problem with permissions on your spool directory. Check that /var/spool/mqueue is set like this: $ ll -d /var/spool/mqueue/ drwxr-xr-x 2 root daemon 512 May 13 19:07 /var/spool/mqueue/ You also need to have sendmail's SETUID bit set so that it executes as root and therefore has access to (among other things) write to the spool directory. The same holds true of exim and probably other MTA's as well. Just chmod 4555 /usr/libexec/sendmail/sendmail and try again as a real user - I just got the same errors you report by breaking these permissions on both the spool directory and the sendmail binary. HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message