The list's posting address is [EMAIL PROTECTED]
Please use the mailing list to ask questions.
Ronny
----- Forwarded message from Gao Kai <[EMAIL PROTECTED]> -----
> From: "Gao Kai" <[EMAIL PROTECTED]>
> X-Mailer: Microsoft Outlook Express 5.00.2014.211
> Date: Sun, 30 Jul 2000 23:10:04 +0800
> To: <[EMAIL PROTECTED]>
> Subject: Question about qmail-ldap
>
> Hello,
> Sorry to interrupt your work, I have problem about qmail-ldap, need your help.
> I installed OpenLDAP 1.2.11 and qmail-1.03 with qmail-ldap-1.03-20000701.patch, but
>I can't mail to the virtual user listed in the OpenLDAP database.
> Here is the information about my case.
> My domain name is aegis.com(which is not www.aegis.com, there is nothing to do with
>this site), while my hostname is linux2.aegis.com, following is my DNS file.
>
> aegis.com. IN SOA aegis.com. root.linux2.aegis.com (
> 2000072700
> 10800
> 1800
> 1209600
> 604800 )
> aegis.com. IN NS linux2.aegis.com.
> linux2 IN A 192.168.2.150
> www IN CNAME linux2
> ftp IN CNAME linux2
> mail IN CNAME linux2
> nt-wks IN A 192.168.1.100
> aegis.com. IN MX 10 mail
>
> The following is my slapd.conf
>
> include /usr/local/etc/openldap/slapd.at.conf
> include /usr/local/etc/openldap/slapd.oc.conf
> schemacheck on
> pidfile /usr/local/var/slapd.pid
> argsfile /usr/local/var/slapd.args
> database ldbm
> suffix "dc=aegis, dc=com"
> rootdn "cn=Manager, dc=aegis, dc=com"
> rootpw secret
> directory /usr/local/var/openldap-ldbm
>
> I add the following LDIF file into my OpenLDAP database.
>
> dn: dc=aegis, dc=com
> dc: aegis
> o: Aegis Studio
> objectclass: organization
> objectclass: dcObject
>
> dn: cn=Manager, dc=aegis, dc=com
> cn: Manager
> sn: Manager
> objectclass: person
>
> dn: cn=user, dc=aegis, dc=com
> uid: user
> mail: [EMAIL PROTECTED]
> mailHost: mail.aegis.com
> homeDirectory: /home/email/user/
> mailMessageStore: /home/email/user/Maildir/
> userPassword: pass
> mailQuota: 8000000S,100C
> accountStatus: active
> objectclass: qmailUser
>
> Before that, I add following into slapd.oc.conf, and restarted OpenLDAP.
> object class qmailUser
> requires
> objectClass,
> mail,
> mailMessageStore,
> uid,
> userPassword
> allows
> mailAlternateAddress,
> qmailUser,
> qmailUID,
> qmailGID,
> mailQuota,
> mailForwardingAddress,
> mailHost,
> deliveryProgramPath,
> deliveryMode,
> mailReplyText,
> qmailDotMode,
> accountStatus,
> mailGroup
>
> I setup some ~control/ldap* files to let qmail work, all is following.
>
> dirmaker: /var/qmail/bin/create_homedir
> ldapbasedn: dc=aegis, dc=com
> ldapcluster: 0
> ldapdefaultdotmode: ldaponly
> ldapdefaultquota: 8000000S,1000C
> ldaplocaldelivery: 0
> ldaplogin: cn=Manager, dc=aegis, dc=com
> ldapmessagestore: /home/email/
> ldappassword: secret
> ldaprebind: 0
> ldapserver: mail.aegis.com
>
> Following is my /var/qmail/bin/create_homedir.
>
> #!/bin/sh
> mkdir -m 700 -p $1
>
> I installed qmail-1.03 under the construction of "Life with qmail", it works well
>without OpenLDAP before and it also works well with vpopmail.
>
> Now, I send one email to [EMAIL PROTECTED], which is defined in the OpenLDAP database,
>the server eat the mail and bounce it saying:
>
> Subject: failure notice
>
> Hi. This is the qmail-send program at mail.aegis.com.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
>
> <[EMAIL PROTECTED]>:
> Sorry, no mailbox here by that name. (#5.1.1)
>
> Surely, I uncommented -DAUTOMAILDIRMAKE and -DAUTOHOMEDIRMAKE macro when compile
>qmail-ldap.
>
> Here is my /var/qmail/rc file.
>
> #!/bin/sh
>
> # Using splogger to send the log through syslog.
> # Using qmail-local to deliver messages to ~/Mailbox by default.
>
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Maildir/
>
> Another thing is that when I user /var/qmail/bin/qmail-ldaplookup file to queue
>email address with the command "./qmail-ldaplookup -m [EMAIL PROTECTED]", it always
>failed which I can find the entry by ldapsearch utility. Finally, I read the source
>code and find it failed to fatch QMAILUID and QMAILGID from the entry. I commented
>these lines and it works. I don't know whether there is something like that
>preventing me from sending email.
>
> Very thanks for your patient to read it all, I really need help. Any advice is
>appreciated.
>
> Regards,
> Gao Kai
----- End forwarded message -----