Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2006 11:12:33 -0400
From:      Gerard Seibert <gerard@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Permissions on /var/mail directory
Message-ID:  <200609291112.43992.gerard@seibercom.net>

Next in thread | Raw E-Mail | Index | Archive | Help
--nextPart2930674.GYyjkorm5l
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=46reeBSD 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=20
the installworld, I noticed an error message displayed regarding=20
the /var/mail directory. I have the directory set to: 1777 so that dovecot=
=20
can assess it. The installworld process reset the permissions to 0775 which=
=20
were not sufficient for Dovecot.

The dovecot.log file had over a hundred entries similar to this:

deliver(gerard): Error:=20
open(/var/mail/.temp.scorpio.seibercom.net.1123.cd38cd4d82e1368f) failed:=20
Permission denied
deliver(gerard): Error: file_lock_dotlock() failed with mbox=20
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=20
postsuper -r ALL, I was able to get the mail delivered. This is the second=
=20
time this has happened. The last time I rebuild world I experienced the=20
same phenomena. Why does build world insist on changing the directory=20
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=
=20
the directory, or if I have something configured wrong in either postfix or=
=20
dovecot.


=2D-=20
Gerard Seibert
gerard@seibercom.net

Antique fairy tale: Little Red Riding Hood.
Modern fairy tale: Oswald, acting alone, shot Kennedy.

--nextPart2930674.GYyjkorm5l
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFHTfrs3R1WQUU6lgRAgkcAKCp1Tur3hdNRLN8A7uW9E9cRDRp0wCfRRRw
brN7SXdH6/lTQSSKGQFMIRY=
=H8D1
-----END PGP SIGNATURE-----

--nextPart2930674.GYyjkorm5l--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200609291112.43992.gerard>