Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Feb 2005 14:57:12 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        Pat Maddox <pergesu@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
Message-ID:  <42052518.3010708@mac.com>
In-Reply-To: <810a540e05020500513f1cae41@mail.gmail.com>
References:  <810a540e05020418067191854@mail.gmail.com> <420482B3.6030507@ps102.de> <810a540e0502050048761dd406@mail.gmail.com> <810a540e05020500513f1cae41@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Pat Maddox wrote:
> By the way, the problem appears to be solely permissions-based.  When
> I've got normal-looking permissions on /var/mail, postfix gives that
> error, "cannot create file."  Courier-IMAP says, "imapd: chdir
> javaspot.net/pergesu: No such file or directory"  chmod 777 /var/mail
> and they both work fine.  But that's of course not the permissions I
> want on it.

You very probably want 1777 permissions (ie, using the sticky bit like /tmp to 
prevent people from playing games with other people's mboxes), or else you'll 
need to make your LDA run setuid-root, in which case 755 is right.

[ Or on a few SysV systems, the LDA is setgid-mail, using 775. ]

-- 
-Chuck



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