Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 19:17:18 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@Freebsd.org
Subject:   Re: Errors
Message-ID:  <20020513181718.GA11079@icarus.slightlystrange.org>
In-Reply-To: <a0510030cb9059bbe965e@[192.168.1.1]>
References:  <a0510030cb9059bbe965e@[192.168.1.1]>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020513181718.GA11079>