I'm just getting started with qmail-ldap and so far so good.  However, I cannot get 
the home directories to be created automatically.  I included AUTOHOMEDIRMAKE and 
AUTOMAILDIRMAKE in the build.  I also saw the note about creating the script 
/var/qmail/control/dirmaker and created it with the following contents and made it 
executable...

        #!/bin/sh
        mkdir -p $1

In my qmailuser ldap entry (elvis example) I have the 'mailmessagestore' attribute set 
to '/var/qmail/maildirs/elvis'.

The contents of /var/qmail/control/ldapmessagestore is '/var/qmail/maildirs'.

The contents of /var/qmail/control/defaultdelivery is './Maildir/'.

The /var/qmail/maildirs directory exits and is 'vmail' for both group and owner.  I 
opened up the permissions to 777 to make sure it wasn't an access problem.

If I manually create the /var/qmail/maildirs/elvis directory, everything works fine 
and the .../elvis/Maildir directory gets created automatically (as it should with 
AUTOMAILDIRMAKE enabled).  However, if the /var/qmail/maildirs/elvis directory does 
not exist, I get the following entry in /var/log/qmail/current...

        delivery 62: deferral: Unable_to_switch_to_/var/qmail/maildirs/elvis: 
file_does_not_exist._(LDAP_ERR_#2.2.4)

What am I missing here?  Interestingly enough, when I remove the 'mailmessagestore' 
attribute from a qmailuser ldap entry, the qmail log states that the mail was 
delivered successfully but I cannot find where it put it.  There is nothing created in 
the /var/qmail/maildirs directory for that qmailuser!  Where did it go?  I searched 
the whole system for a directory with the name of the qmailuser uid but found nothing. 
 I was hoping it would use control/ldapmessagestore, control/defaultdelivery, and the 
ldap uid attribute for the user to create the mail store directory.

One more troubleshooting note:  I modified my dirmaker script to touch a file 
(dirmaker.out) just to see if it was getting called.  It is not.

Hopefully the problem is obvious to all you seasoned qmail-ldap users.  Thanks in 
advance for any help in this matter.

Regards,

Mike




Reply via email to