>>>Hi, >>> >>>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. qmail-ldap should try storing emails in /var/vmail/admin/Maildir/ if ldapdefaultdelivery is empty. It is possible that your dirmaker script silently fails to create correct mail directory or configuration option stored in ldapdefaultdelivery breaks delivery. Recheck your dirmaker script, remove ldapdefaultdelivery file and restart qmail delivery process. If you use daemontools, 'svc -t /service/qmail' command should terminate qmail and daemontools should restart it in 5 secs. P.S. according to /etc/services port 6667 should be used for other type of service. Secure ldap port is 636. Using 6667 for LDAP server is not good idea. You can use any other not so commonly used port. -- Tomas
