Hi!

i'm running qmail-ldap with the ldap-control patch,
qmail-ldap_1.03-19.20010501.2_i386.deb

everything seems to work except qmail-smtpd gives me this error:
------------8<------------< snip <------------8<------------
root@komodo:/# telnet gecko.saproperty.com 25
Trying 196.30.168.102...
Connected to gecko.saproperty.com.
Escape character is '^]'.
421 unable to read controls (#4.3.0)
Connection closed by foreign host.
------------8<------------< snip <------------8<------------

i dont see any errors in the qmail logs...

from logging qmail-smtpd with recordio:
------------8<------------< snip <------------8<------------
==> current <==
 779 > 421 unable to read controls (#4.3.0)

9779 > [EOF]

 901 > 421 unable to read controls (#4.3.0)

9901 > [EOF]

------------8<------------< snip <------------8<------------

i looked at the code, but it seems this error could be caused by many things.

my questions:
what are the required attributes i need to get qmail-smtpd to run ?
what are the required control files.

..i followed the steps in the life with qmail-ldap doc.

is there any chance of getting a dump of all the config info from a working
server running 20010501 ? i would like to compare my configs..

if i run qmail-smtpd without tcpserver it seems to be happy..
------------8<------------< snip <------------8<------------
root@komodo:/# /usr/sbin/qmail-smtpd
220 i am jacks total lack of surpise ESMTP
ehlo
250-i am jacks total lack of surpise
250-PIPELINING
250-STARTTLS
250-SIZE 2097152
250 8BITMIME
------------8<------------< snip <------------8<------------

digging in the old mail from this list i found issues with the ldaplogin and
ldappassword files. i made my ldap structure visable to anonymous users.. as
open as i can make things, removed the ldap(password|control) files.. same
problem.

so.. i dont think it's an ldap access rights issue...

qmail-showctl seems to be able to read my control info from the ldap server
without any problems.

my configs:

root@komodo:/etc/qmail# ll
total 24
drwxr-xr-x    3 root     root         4096 Sep 11 01:44 ./
drwxr-xr-x   43 root     root         4096 Sep 11 00:35 ../
-rw-r-----    1 qmails   qmail          21 Sep  6 02:06 ldapcontroldn
-rw-r-----    1 qmails   qmail          41 Sep  6 01:55 ldapserver
-rw-r-----    1 qmails   qmail          21 Sep  6 02:00 me
drwxr-xr-x    2 qmails   qmail        4096 Sep  6 01:10 users/


root@komodo:/etc/qmail# cat ldapcontroldn
ou=qmail,dc=saproperty,dc=com

root@komodo:/etc/qmail# cat ldapserver
ldap.saproperty.com ldap2.saproperty.com

root@komodo:/etc/qmail# cat me
gecko.saproperty.com

------------8<------------< snip <------------8<------------
root@komodo:/# qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 500.
subdirectory split: 23.
user ids: 64010, 64011, 64015, 0, 64016, 64014, 64013, 64012.
group ids: 65534, 64010.

badmailfrom: 

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is gecko.saproperty.com.

concurrencylocal: Local concurrency is 20.

concurrencyremote: Remote concurrency is 40.

databytes: SMTP DATA limit is 2097152 bytes.

defaultdomain: Default domain name is saproperty.com?.

defaulthost: Default host name is gecko.saproperty.com?.

doublebouncehost: (Default.) 2B recipient host: gecko.saproperty.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: Presumed domain name is gecko.saproperty.com?.

helohost: SMTP client HELO host name is gecko.saproperty.com?.

idhost: Message-ID host name is gecko.saproperty.com?.

localiphost: Local IP address becomes gecko.saproperty.com?.

locals: 
Messages for gecko.saproperty.com are delivered locally.
Messages for komodo.saproperty.com are delivered locally.
Messages for tergu.saproperty.com are delivered locally.
Messages for monitor.saproperty.com are delivered locally.

me: My name is gecko.saproperty.com.

percenthack: 

plusdomain: Plus domain name is saproperty.com?.

qmqpservers: 

queuelifetime: Message lifetime in the queue is 259200 seconds.

rcpthosts: 
SMTP clients may send messages to recipients at saproperty.com.
SMTP clients may send messages to recipients at saproperty.co.za.

morercpthosts: 
SMTP clients may send messages to recipients at cpg.co.za.
SMTP clients may send messages to recipients at cpn.co.za.
SMTP clients may send messages to recipients at freestateproperty.co.za.
SMTP clients may send messages to recipients at guatengproperty.co.za.
SMTP clients may send messages to recipients at kznproperty.co.za.
SMTP clients may send messages to recipients at spargo.co.za.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 i am jacks total lack of surpise?.

smtproutes: 

timeoutconnect: SMTP client connection timeout is 20 seconds.

timeoutremote: SMTP client data timeout is 30 seconds.

timeoutsmtpd: SMTP server data timeout is 20 seconds.

virtualdomains: 
Virtual domain: saproperty.com:saproperty-com
Virtual domain: saproperty.co.za:saproperty-co-za
Virtual domain: cpg.co.za:cpg-co-za
Virtual domain: cpn.co.za:cpn-co-za
Virtual domain: freestateproperty.co.za:freestateproperty-co-za
Virtual domain: guatengproperty.co.za:guatengproperty-co-za
Virtual domain: kznproperty.co.za:kznproperty-co-za
Virtual domain: spargo.co.za:spargo-co-za

now the qmail-ldap specific files

ldapserver: My LDAP Server is ldap.saproperty.com ldap2.saproperty.com?

ldapcontroldn: LDAP controldn: ou=qmail,dc=saproperty,dc=com?

ldapport: LDAP port: 389?

ldaplogin: LDAP login name: ?

ldappassword: LDAP login password: ?

ldapbasedn: LDAP basedn: dc=saproperty,dc=com?.

ldapuid: Default UID is: 111?.

ldapgid: Default GID is: 111?.

ldapmessagestore: Prefix for non absolute paths: /var/qmail/maildirs?.

ldapdefaultdotmode: Default dot mode for ldap users: ldapwithprog?.

ldapdefaultquota: Default quota for ldap users: 10000?.

dirmaker: Location of program to create homedirs: <none>?.

ldaplocaldelivery: local passwd lookup is 1 (1 = on, 0 = off).

ldaprebind: ldap rebinding is 0 (1 = on, 0 = off).

ldapcluster: (Default.) clustering is 0 (1 = on, 0 = off).

quotawarning: 
Contact [EMAIL PROTECTED] if you need to

custombouncetext: 
Contact [EMAIL PROTECTED] if you need to

maxrcptcount: (Default.) 0 RCPT TOs are accepted before sending 553 (0 = off).

tarpitcount: 3 RCPT TOs are accepted before tarpitting (0 = off).

tarpitdelay: 30 seconds of delay to introduce after each subsequent RCPT TO.

badrcptto: 

relaymailfrom: 

rbllist: 

rbltags: 

users: I have no idea what this file does.
------------8<------------< snip <------------8<------------

my ldap config:
------------8<------------< snip <------------8<------------
dn: cn=gecko.saproperty.com,ou=qmail,dc=saproperty,dc=com
objectClass: qmailControl
cn: gecko.saproperty.com
defaultDomain: saproperty.com
defaultHost: gecko.saproperty.com
dataBytes: 2097152
envNoAtHost: gecko.saproperty.com
heloHost: gecko.saproperty.com
idHost: gecko.saproperty.com
localIpHost: gecko.saproperty.com
plusDomain: saproperty.com
queueLifetime: 259200
smtpGreeting: i am jacks total lack of surpise
timeoutConnect: 20
timeoutRemote: 30
timeoutSmtpd: 20
concurrencyLocal: 20
concurrencyRemote: 40
ldapLocalDelivery: 0
ldapRebind: 0
ldapDefaultQuota: 10000
ldapMessageStore: /var/qmail/maildirs
customBounceText: Contact [EMAIL PROTECTED] if you need to
quotaWarning: Contact [EMAIL PROTECTED] if you need to
tarpitCount: 3
tarpitDelay: 30
locals: gecko.saproperty.com
locals: komodo.saproperty.com
locals: tergu.saproperty.com
locals: monitor.saproperty.com
moreRcptHosts: cpg.co.za
moreRcptHosts: cpn.co.za
moreRcptHosts: freestateproperty.co.za
moreRcptHosts: guatengproperty.co.za
moreRcptHosts: kznproperty.co.za
moreRcptHosts: spargo.co.za
rcptHosts: saproperty.com
rcptHosts: saproperty.co.za
virtualDomains: saproperty.com:saproperty-com
virtualDomains: saproperty.co.za:saproperty-co-za
virtualDomains: cpg.co.za:cpg-co-za
virtualDomains: cpn.co.za:cpn-co-za
virtualDomains: freestateproperty.co.za:freestateproperty-co-za
virtualDomains: guatengproperty.co.za:guatengproperty-co-za
virtualDomains: kznproperty.co.za:kznproperty-co-za
virtualDomains: spargo.co.za:spargo-co-za
ldapBaseDN: dc=saproperty,dc=com
ldapDefaultDotMode: ldapwithprog
ldapUid: 111
ldapGid: 111
dirMaker: <none>
------------8<------------< snip <------------8<------------

i'm using the schema files that ship with the latest patch.
running OpenLDAP 2.0.11

do i really need the "top" objectClass as showed in the life with qmail-ldap
doc ?

thank you.

-- 
Regards
Johann

"We reject kings, presidents, and voting;
we believe in rough consensus and running code."
  --  Dr. David D. Clark 1992

______________________________________________________
 Johann L. Botha               Snailmail: PO Box 3472
 +27.82.5626.167                          Matieland
 [EMAIL PROTECTED]                         Stellenbosch
 workpage: http://www.frogfoot.net        7602
 homepage: http://blue.frogfoot.net       South Africa
      ham: ZR1JOE

Copyright (c) 2001. The Sovereigns of Frogfoot. All rights reserved.
Disclaimer available upon request.

PGP signature

Reply via email to