From owner-freebsd-questions@FreeBSD.ORG Sat Feb 5 17:23:42 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 665D616A4CE for ; Sat, 5 Feb 2005 17:23:42 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id D074B43D2F for ; Sat, 5 Feb 2005 17:23:41 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so561644wri for ; Sat, 05 Feb 2005 09:23:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=q1jmAYdi3q5wFNGXjSWna3AvcBdwIHWOE23z9ouQ5vaKF4DmtDbFIDhuU6MJhd3n4BvLdgo6VvyTv6OaqbtmZBZ/8xtjH20RQ4iC1nM5u/fwpN6IQwy7sP/eTpVBeSGPXdp/7q95Vkfl4v4s4+ogyPKIokxor4M1cbTQGEr1JaY= Received: by 10.54.47.17 with SMTP id u17mr278818wru; Sat, 05 Feb 2005 09:23:41 -0800 (PST) Received: by 10.54.42.28 with HTTP; Sat, 5 Feb 2005 09:23:41 -0800 (PST) Message-ID: <810a540e05020509236fcc95d0@mail.gmail.com> Date: Sat, 5 Feb 2005 10:23:41 -0700 From: Pat Maddox To: Volker Kindermann In-Reply-To: <4204CBD3.7030401@ps102.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <810a540e05020418067191854@mail.gmail.com> <420482B3.6030507@ps102.de> <810a540e0502050048761dd406@mail.gmail.com> <810a540e05020500513f1cae41@mail.gmail.com> <4204CBD3.7030401@ps102.de> cc: freebsd-questions@freebsd.org Subject: [RESOLVED] 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 Reply-To: Pat Maddox List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2005 17:23:42 -0000 Volker, thanks for all your help. I got everything running smoothly. For courier-imap, I set the uid and gid in the authmysqlrc file. But I needed to set the uid and gid in both postfix and courier...so your instructions helped greatly. Thanks a lot! Pat On Sat, 05 Feb 2005 14:36:19 +0100, Volker Kindermann wrote: > 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 >