From owner-freebsd-questions@FreeBSD.ORG Mon Oct 2 13:41:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B6D2416A403 for ; Mon, 2 Oct 2006 13:41:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD70143D4C for ; Mon, 2 Oct 2006 13:40:56 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 22693 invoked from network); 2 Oct 2006 13:40:55 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Oct 2006 13:40:55 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 901B42842B; Mon, 2 Oct 2006 09:40:54 -0400 (EDT) To: gerard@seibercom.net References: <200609291112.43992.gerard@seibercom.net> From: Lowell Gilbert Date: Mon, 02 Oct 2006 09:40:54 -0400 In-Reply-To: <200609291112.43992.gerard@seibercom.net> (Gerard Seibert's message of "Fri, 29 Sep 2006 11:12:33 -0400") Message-ID: <44bqouzvh5.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Permissions on /var/mail directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Oct 2006 13:41:05 -0000 Gerard Seibert writes: > FreeBSD 6.1-RELEASE-p8 > postfix-current-2.4.20060903,3 > dovecot-1.0.r7 > > I just did a buildworld along with a new kernel this morning. While doing > the installworld, I noticed an error message displayed regarding > the /var/mail directory. I have the directory set to: 1777 so that dovecot > can assess it. The installworld process reset the permissions to 0775 which > were not sufficient for Dovecot. > > The dovecot.log file had over a hundred entries similar to this: > > deliver(gerard): Error: > open(/var/mail/.temp.scorpio.seibercom.net.1123.cd38cd4d82e1368f) failed: > Permission denied > deliver(gerard): Error: file_lock_dotlock() failed with mbox > file /var/mail/gerard: Permission denied > > Obviously the /var/log/maillog had similar fail warnings. > > By changing the permission to 1777 on the /var/mail directory and running > postsuper -r ALL, I was able to get the mail delivered. This is the second > time this has happened. The last time I rebuild world I experienced the > same phenomena. Why does build world insist on changing the directory > permissions and is there a way I can prevent it from doing so? > > What I am trying to determine is if I really should have those settings on > the directory, or if I have something configured wrong in either postfix or > dovecot. Those permissions are awfully lenient, but if you've got a single-user machine, I suppose you could live with it.