Hi Claudio,
Claudio Jeker wrote:

On Fri, Aug 05, 2005 at 11:05:08AM +0530, Sameer N Ingole wrote:
homeDirectory: /var/qmail/maildirs
mailMessageStore: /var/qmail/maildirs/spd9

It created the file spd9 in maildirs but not created directory..


This is a normal behaviour, you did not add the magical / at the end of
mailMessageStore. So qmail-ldap uses /var/qmail/maildirs as homedirectory
and delivers mail to /var/qmail/maildirs/spd9 -- which is a mailbox and
not a maildir because it does not end with a /.


[EMAIL PROTECTED] root]# /var/qmail/bin/qmail-ldaplookup -d 255 -u spd9
Searching ldap for: (&(objectClass=qmailuser)(uid=spd9))
under dn: dc=gnfcinfotower, dc=com
Found 1 entry:

dn: uid=spd9,dc=gnfcinfotower,dc=com
-------------------------------------------------------
objectClass: top
objectClass: person
objectClass: dcObject
objectClass: qmailUser
mail: [EMAIL PROTECTED]
uid: spd9
accountStatus: active
mailHost: mail.gnfcinfotower.com
homeDirectory: /var/qmail/maildirs/
aliasEmpty: spd9
qmailDotMode: ldaponly
qmailUID: 11184
qmailGID: 2110
mailQuotaSize: 1000000
mailQuotaCount: 1000
mailSizeMax: 0 (unlimited)
deliveryMode: noprogram
mailReplyText: undefined


Same thing here, you are using homeDirectory and mailMessageStore together
which is not necessary. Kill the homeDirectory entry and try
mailMessageStore: /var/qmail/maildirs/spd9/

Using homeDirectory is not necessary in virtual mail environments and it is
more confusing than helping. It is only there to make it possible to use
qmail-ldap together with posix accounts defined in ldap. So as long as you
don't have posix user accounts in LDAP DON'T USE IT! Just use
mailMessageStore.

qmail-ldaplookup has to show /var/qmail/maildirs/spd9 as homeDirectory or
homedir creation will not work.

Here, I have a setup where I have specified
~/control/ldapmessagestore as /var/vmail
and I have mailMessageStore entry in ldap of the form
mailMessageStore: domain.tld/username

When I lookup using qmail-ldaplookup
It shows me this as...
homeDirectory: /var/vmail/trustmail.in/admin

How does it insert / before trustmail.in/admin?

My setup is working. It is just for my knowledge.

Regards,

--
Sameer N. Ingole

Reply via email to