Claudio Jeker wrote:

On Thu, May 12, 2005 at 04:06:17PM +0530, Sameer N I wrote:


Sameer N I wrote:



Sameer N I wrote:



Tomas Kuliavas wrote:




...



I want to use /var/vmail for virtual users. So my mailmessagestore should have
/var/vmail
---< snip >---
quark:/home/sam# cat /var/qmail/control/defaultdelivery
./Maildir/
quark:/home/sam#
---< snip >---


One thing I noticed that when I add an entry for the user admin
I add it **explicitely** as

mailMessageStore: /var/vmail/admin/Maildir/

and after I /var/qmail/bin/qmail-ldaplookup -u admin

It shows me as homeDirectory: /var/vmail/admin/Maildir/

How?


One more thing I did is I tried to list all the entries in my ldap (since there are fewer entries)
It shows this attribute as mailMessageStore and not homeDirectory.
Which means its /var/qmail/bin/qmail-ldaplookup who is interpreting it in a wrong way or
some setting that is wrong somewhere.





That's simple, mailMessageStore and homeDirectory are mostly used for the same thing. If only one of the two are defined it will be internally used as home directory of the specified user. That's why qmail-ldaplookup reports the your mailMessageStore as homeDirectory.

If both are defined homeDirectory will be used as home directory of the
specified user and mailMessageStore ends up as aliasempty (the delivery
instruction, normally something like ./Maildir/).

Small note, homeDirectory needs to be an absolute path whereas
mailMessageStore may be relative and will the be prepended by
~control/ldapmailstore



in qmail-ldap.h both (LDAP_MAILSTORE and LDAP_OMEDIR) are defined.
Besides, QLDAPINSTALL increased confusion.. as how to use LDAP_MAILSTORE only..





Just use it and it will work.


Btw. your problem is the creation of a homedir automatically so you should try two things first. a) if I create the homedir by hand does mail delivery work btw. the best test is "su vmail -c `cat /var/qmail/control/dirmaker` /var/vmail/admin ./Maildir". With that you check that your script works. b) if a) works lets add some debug output to my dirmaker script and let's run qmail-ldap with some high LOG_LEVEL to see where the problem is.

I tried a) but it did not create Maildir in one command as you have suggested.

su vmail -c `cat /var/qmail/control/dirmaker` /var/vmail/admin ./Maildir

After creating new directories individually I tried to send mail same result.
in b) do you mean uncommenting DEBUG option in qmail-ldap.h? or some other way..?


--

Sameer N. I.
/****************************************************************/
/ The early bird gets the coffee left over from the night before./
/****************************************************************/



Reply via email to