Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2005 10:23:41 -0700
From:      Pat Maddox <pergesu@gmail.com>
To:        Volker Kindermann <ml@ps102.de>
Cc:        freebsd-questions@freebsd.org
Subject:   [RESOLVED] Postfix can't deliver mail to virtual domains - cannot create file exclusively
Message-ID:  <810a540e05020509236fcc95d0@mail.gmail.com>
In-Reply-To: <4204CBD3.7030401@ps102.de>
References:  <810a540e05020418067191854@mail.gmail.com> <420482B3.6030507@ps102.de> <810a540e0502050048761dd406@mail.gmail.com> <810a540e05020500513f1cae41@mail.gmail.com> <4204CBD3.7030401@ps102.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ml@ps102.de> 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 "<domain>/<user>@<domain>" set
> home=/home/vmail mail=/home/vmail/<domain>/<user> uid=600 gid=600
> 
> With these settings everything works well.
> 
> 
>   -volker
>



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