Hello Tim, I don't know if someone already discovered this, but since the README.ldap file of vpopmail-5.0 says you're asking for help, here it is:
> 3. After installing vpopmail successfully, running vadddomain gives an error: > > Error: Unable to chdir to vpopmail/users directory > > I don't know :( > From looking at the permissions in /home/vpopmail, everything looks fine. > If you found a solution to this problem, please let me know (and share > with other vpopmailers on the mailing list :) I've found two main causes of this problem: 1) Missing attributes on qmail.schema On Conectiva Linux 7.0 and probably many other distros this file (/etc/openldap/schema/qmail.schema) doesn't have all the needed attributes for vpopmail. Even using the qmail.schema that comes with qmail-ldap ( http://www.nrg4u.com ) doesn't solve the problem. I'v got from a friend a new version that has includes the attributes needed, but I don't know yet if this is compliant to the IANA assignments or is just a someguy's workaround. When the needed attributes are missing on qmail.schema, any operation (v{add,del}{domain,user}) will return the "Error: Unable to chdir to vpopmail/users directory" message. My question is: Where can I get an official qmail.schema that works with vpopmail-5.0? 2) Bug in vauth_deldomain routine of vldap.c The loop below is not deleting all users in the LDAP tree, so the ldap_delete_s on line 625 cannot delete the domain entry on the LDAP server. line 622: for (pw = vauth_getall(domain, 1, 0); pw; pw = vauth_getall(domain, 0, 0)) vauth_deluser(pw->pw_name, domain); line 625: ret = ldap_delete_s(ld, dn); To reproduce this error just do the following: $ ./vadddomain test.com.to $ ./vadduser (add as many users you want)@test.com.to $ ./vdeldomain test.com.to $ ./vadddomain test.com.to Error: Unable to chdir to vpopmail/users directory If between the vdeldomain and the vadddomain you browse the LDAP tree (using gq, i.e.), you see the test.com.to domain did not get deleted. ----------- Unfortunately I don't have enough free time to write a patch to this bug now, so I'm writing this report here in hope it helps the authors to fix it. Regards, FRS -- _______________________________________________________________________ / | [EMAIL PROTECTED] | | Mentes pequenas discutem pessoas | Mentes medianas discutem eventos | Mentes grandes discutem idéias \_______________________________________________________________________ /"\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ Não deixe de visitar: http://www.gnu.org/philosophy/free-sw.html http://www.tuxedo.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ http://uzix.sf.net