From owner-freebsd-stable Mon Oct 7 1: 2:35 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E428437B401 for ; Mon, 7 Oct 2002 01:02:32 -0700 (PDT) Received: from netbsd.xinetd.com (sc-66-75-74-201.socal.rr.com [66.75.74.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55C2743E88 for ; Mon, 7 Oct 2002 01:02:30 -0700 (PDT) (envelope-from gross@xinetd.ath.cx) Received: from localhost (localhost [127.0.0.1]) by netbsd.xinetd.com (8.9.1/8.9.1) with ESMTP id LAA03298; Sun, 6 Oct 2002 11:13:54 -0700 (PDT) Date: Sun, 6 Oct 2002 11:13:54 -0700 (PDT) From: Glendon Gross X-X-Sender: gross@netbsd.xinetd.com To: Ruslan Sulemanov Cc: freebsd-stable@FreeBSD.ORG, Subject: Re[4]: After cvsup, can't send mails In-Reply-To: <1322101020.20021006210529@2mcl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've seen this error frequently with recent Sendmail versions. I believe it relates to the fact that Sendmail no longer runs as root by default, so permissions have to be adjusted accordingly. There is some information in the file /src/sendmail/SECURITY in the sendmail source tree, if I remember the path correctly. From the above file: [begin Sendmail doc excerpt...] sendmail must be a set-group-ID (default group: smmsp, recommended gid: 25) program to allow for queueing mail in a group-writable directory. Two .cf files are required: sendmail.cf for the daemon and submit.cf for the submission program. The following permissions should be used: -r-xr-sr-x root smmsp ... /PATH/TO/sendmail drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue drwx------ root wheel ... /var/spool/mqueue -r--r--r-- root wheel ... /etc/mail/sendmail.cf -r--r--r-- root wheel ... /etc/mail/submit.cf [Notice: On some OS "wheel" is not used but "bin" or "root" instead, however, this is not important here.] That is, the owner of sendmail is root, the group is smmsp, and the binary is set-group-ID. The client mail queue is owned by smmsp with group smmsp and is group writable. The client mail [end Sendmail doc excerpt] This was a nuisance for me and meant that I couldn't use the NetBSD sendmail but had to rebuild sendmail from sources I got from sendmail.org in order to get it working. On FreeBSD my upgrade to 4.2.6 STABLE caused my mailserver to fail. I ended up setting up a different machine [running NetBSD] to be my mail server. Subsequent make worlds have not fixed the problem. Regards, Glendon Gross On Sun, 6 Oct 2002, Ruslan Sulemanov wrote: > Date: Sun, 6 Oct 2002 21:05:29 +0400 > From: Ruslan Sulemanov > To: freebsd-stable@FreeBSD.ORG, david@catwhisker.org > Subject: Re[4]: After cvsup, can't send mails > > I do not use /var/spool/mqueue for turn(queue). > It is catalogue(/var/spool/mqueue.kav) > of turn(queue) for letters which uses > the anti-virus program AVP. May be problem > Probably that a problem in it, but i am not sure. > > > DW> I have no idea what your /var/spool/mqueue.kav directory might be. > > > --------- > $cd /var/spool > $ls -ld *mq* > drwxrwx--- 2 smmsp smmsp 1536 6 okt 11:17 clientmqueue > drwxr-xr-x 2 root daemon 512 5 okt 21:50 mqueue > drwxr-xr-x 2 root mail 512 6 okt 18:04 mqueue.kav > --------- > $mail -s 'test' admin@mydomain.com > lala > . > EOF > > collect: Cannot write ./dfg96BQ1u6000293 (bfcommit, uid=1000, gid > 25):Permission denied > queueup: cannot create queue temp file ./tfg96BQ1u6000293, uid=1000; > Permission denied > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message