Sameer N I wrote:
Tomas Kuliavas wrote:
I want to use /var/vmail for virtual users. So my mailmessagestore should haveHi,
Lately I have been facing a problem which is still not solved. I am not able to inject mail to a local account on my new installation of qmail-ldap. I am able to qmail-ldaplookup. I suspect that there are some file permission issues.
log entry for delivery failure. ---------------8<----------------- 2005-05-12 11:03:24.551987500 status: local 1/10 remote 0/20 2005-05-12 11:03:25.328357500 delivery 81: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/ --------------->8-----------------
file permissions for mail directory. ---------------8<-----------------
...
--------------->8-----------------
One notable thing here is the directory structure for mailmessagestore
is owned by vmail as we an see. But my qmail runs as qmaill and
smtpd runs as qmaild
Here is the output of ps -Al --forest
---------------8<-----------------
...
What could be the problem?
Please provide output of qmail-showctl, user's ldap entry and results of
qmail-ldaplookup.
Please provide information about your qmail-ldap patch version, modifications made in Makefile and other qmail files.
if you use deliveryMode attribute and latest qmail-ldap patch, ignore information written in http://www.lifewithqmail.org/ldap/. See QLDAPINSTALL and "NEWS for 20030901 stuff:" chapter in QLDAPNEWS.
If you have local user named admin, make sure that user has Maildir directory or disable local delivery in qmail configuration.
admin user is not local, entry only exists in ldap and not on system
user's list.
All the information you asked is too big to include so I have
temporarily uploaded
here http://www.proscrutiny.com/testconfiguration.txt
you have said that admin's maildir is /var/vmail/admin.
/var/vmail/admin is not mail directory. It is set as home directory. If
you want to use it as maildir, you should use different ldap attribute.
See mailMessageStore description in QLDAPINSTALL.
/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?
in qmail-ldap.h both (LDAP_MAILSTORE and LDAP_OMEDIR) are defined.
Besides, QLDAPINSTALL increased confusion.. as how to use LDAP_MAILSTORE only..
-- Sameer N. I. /****************************************************************/ / The early bird gets the coffee left over from the night before./ /****************************************************************/
