From owner-freebsd-questions Sun Apr 16 16: 8: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 5537437B671 for ; Sun, 16 Apr 2000 16:07:57 -0700 (PDT) (envelope-from charon@bug.gr) Received: from charon (ppp1.patr.hellasnet.gr [212.54.197.16]) by mail.hellasnet.gr (8.9.1/8.9.1) with SMTP id BAA01015; Mon, 17 Apr 2000 01:06:21 +0200 (GMT) Message-ID: <005001bfa7e7$ebc7ff60$10c536d4@charon> From: "Giorgos Keramidas" To: "Justin" , Subject: Re: Sendmail Error Date: Sun, 16 Apr 2000 14:04:11 -0700 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 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----Original Message----- From: Justin To: freebsd-questions@freebsd.org Date: Κυριακή, 16 Απριλίου 2000 10:40 πμ Subject: Sendmail Error > >The error: Apr 16 06:26:09 heretic >sendmail[728]: NOQUEUE: SYSERR(asmo): cannot >chdir(/usr/var/spool/mqueue): Permission denied That's because sendmail is not running as root.wheel all the time. Sending mail as 'root' will execute the binary with root permissions, and it can write files in /var/spool/mqueue. When you run a mailer as a simple user, sendmail is executed by the mailer as /that/ user, and not root. The solution is to chmod sendmail's binary to be set-uid root, and let simple users run sendmail as root.wheel, as shown below: # cd /usr/sbin # chmod 4755 mailwrapper (Don't worry about seeing mailwrapper here, instead of sendmail. Your /usr/sbin/sendmail should be a link to mailwrapper, as far as I know. :) - Giorgos Keramidas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message