From owner-freebsd-questions@FreeBSD.ORG Sat Feb 5 13:33:01 2005 Return-Path: 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 978F216A4CE for ; Sat, 5 Feb 2005 13:33:01 +0000 (GMT) Received: from zephon.secspace.de (zephon.secspace.de [62.75.136.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 506B143D53 for ; Sat, 5 Feb 2005 13:33:01 +0000 (GMT) (envelope-from ml@ps102.de) Received: from [192.168.17.11] (pD9E1C2A4.dip.t-dialin.net [217.225.194.164]) by zephon.secspace.de (Postfix) with ESMTP id BCC5E6EB29; Sat, 5 Feb 2005 14:32:59 +0100 (CET) Message-ID: <4204CBD3.7030401@ps102.de> Date: Sat, 05 Feb 2005 14:36:19 +0100 From: Volker Kindermann User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pat Maddox References: <810a540e05020418067191854@mail.gmail.com> <420482B3.6030507@ps102.de> <810a540e0502050048761dd406@mail.gmail.com> <810a540e05020500513f1cae41@mail.gmail.com> In-Reply-To: <810a540e05020500513f1cae41@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2005 13:33:01 -0000 Hi Pat, 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. I have postfix with virtual Maildirs and courier imap set up, too. Here's the relevant part of my main.cf: virtual_mailbox_base = /home/vmail virtual_uid_maps = static:600 virtual_gid_maps = static:600 The directory /home/vmail is owned by the vmail user (id 600). With the virtual_uid_maps setting postfix uses this user for writing to the directories. In courier, you are also able to define this user: /usr/local/courier-imap/sbin/userdb "/@" set home=/home/vmail mail=/home/vmail// uid=600 gid=600 With these settings everything works well. -volker