Try to use virtual uid and gid. e.g. define ldapuid=1000, ldapgid=1000 without setting user's uidNumber and gidNumber. Make sure the /share/maildirs is own by 1000:1000.
It works find for me. kf ----- Original Message ----- From: "Mark Bainter" <[EMAIL PROTECTED]> To: "K. F. Yim" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 12:32 AM Subject: Re: Re: Getting started - Fixed, new problem > K. F. Yim [[EMAIL PROTECTED]] wrote: > > From your ldap entry there is a "defaultDotMode: ldapwithprog" What is the delivery program. Did you try "both" in "defaultDotMode:". > > > > I had no delivery program defined...which from the docs I figured meant it > would get delivered the default way. I guess not. Both works, and is > acceptable so I switched to it. Thanks for the tip there. > > Now I just have to get it to create the maildir. I compiled it with > both the make home dir, and make maildir flags defined, and I think I > have the rest of it configured right. But I get: > > ==> /var/log/mail.log <== > Oct 30 10:21:08 spirit qmail: 1035994868.517790 starting delivery 3: msg 9377 to local [EMAIL PROTECTED] > Oct 30 10:21:08 spirit qmail: 1035994868.518055 status: local 1/10 remote 0/20 > Oct 30 10:21:08 spirit qmail: 1035994868.551906 delivery 3: log: found:_user='test'_uid=11184_gid=2110_homedir='(null_pointer)'_mms='/share/m aildirs/test'_host='mail.x.org'_status=0/ > Oct 30 10:21:08 spirit qmail: 1035994868.553660 delivery 3: log: QMAILQUOTA:_10000000,_10000C/ > Oct 30 10:21:08 spirit qmail: 1035994868.555219 delivery 3: log: QMAILDOTMODE:_both/ > Oct 30 10:21:08 spirit qmail: 1035994868.563998 delivery 3: deferral: Unable_to_switch_to_/share/maildirs/test:_file_does_not_exist._(#4.3.0)/ > Oct 30 10:21:08 spirit qmail: 1035994868.564257 status: local 0/10 remote 0/20 > > > ldapmessagestore: /share/maildirs > dirmaker: /usr/local/bin/auto_mk_hdir > ldapgid: 2110 > ldapuid: 11184 > > uid=11184(vmail) gid=2110(vmail) groups=2110(vmail) > drwxr-xr-x 2 vmail vmail 48 Oct 27 07:03 /share/maildirs/ > > /usr/local/bin/auto_mk_hdir: > #!/bin/sh > mkdir -m 700 -p $1