It appears that the problem of not being able to read the control files is only happening of Fedora Core 4 as it works no problems on Enterprise Linux 4 and Fedora Core 3. I still have the problem however, that it cannot read the controls from LDAP.
On Tuesday 21 June 2005 10:35, Scott Ryan wrote: > Hi, I am trying to get the qmail-ldap controls patch working, but I seem to > have a problem when trying to read the controls upon starting qmail. It > does not seem to get the control entries from LDAP, neither does it fail > back to the FS. > > I set in my MakeFile: > CONTROLDB=-DUSE_CONTROLDB -DQLDAP_BAILOUT > If I understand the documentation correctly, that should enable fallback to > FS if ldap is not available. > > Here is my setup firstly the permissions on the control directory. They > seem correct. > > # pwd > /var/qmail/control > # ls -la > total 60 > drwxr-xr-x 2 root qmail 4096 Jun 21 10:17 . > drwxr-xr-x 13 root nofiles 4096 Jun 21 10:12 .. > -rw-r--r-- 1 root qmail 13 Jun 21 10:11 defaultdomain > -rwxr-xr-x 1 root qmail 39 Jun 21 10:11 ldapcontroldn > -rwxr-xr-x 1 root qmail 21 Jun 21 10:11 ldapserver > -rw-r--r-- 1 root qmail 19 Jun 21 10:17 locals > -rw-r--r-- 1 root qmail 2449 Jun 21 10:11 Makefile > -rwxr-xr-x 1 root qmail 19 Jun 21 10:11 me > -rw-r--r-- 1 root qmail 13 Jun 21 10:11 plusdomain > -rw-r--r-- 1 root qmail 245 Jun 21 10:11 qmail-imapd.rules > -rw-r--r-- 1 root qmail 219 Jun 21 10:11 qmail-pop3d.rules > -rw-r--r-- 1 root qmail 330 Jun 21 10:11 qmail-qmqpd.rules > -rw-r--r-- 1 root qmail 1531 Jun 21 10:11 qmail-smtpd.rules > -rw-r--r-- 1 root qmail 19 Jun 21 10:11 rcpthosts > -rw-r--r-- 1 root qmail 2131 Jun 21 10:11 signatures > > If I run I notice that everything is on the one line except ldap server - > is there a reason for this? > > # bin/qmail-showctl > qmail home directory: /var/qmail. > user-ext delimiter: -. > paternalism (in decimal): 2. > silent concurrency limit: 500. > subdirectory split: 23. > user ids: 82, 81, 86, 0, 87, 83, 84, 85. > group ids: 81, 82. > > badmailfrom: Oops! Trouble reading this file. > badmailfrom-unknown: Oops! Trouble reading this file. > badrcptto: Oops! Trouble reading this file. > bouncefrom: (Default.) Bounce user name is MAILER-DAEMON. > bouncehost: (Default.) Bounce host name is staff.telkomsa.net. > bouncemaxbytes: (Default.) Bounce data limit is 0 bytes. > concurrencylocal: (Default.) Local concurrency is 10. > concurrencyremote: (Default.) Remote concurrency is 20. > custombouncetext: Oops! Trouble reading this file. > databytes: (Default.) SMTP DATA limit is 0 bytes. > defaultdomain: Default domain name is telkomsa.net. > defaulthost: (Default.) Default host name is staff.telkomsa.net. > dirmaker: (Default.) Program to create homedirs not defined. > doublebouncehost: (Default.) 2B recipient host: staff.telkomsa.net. > doublebounceto: (Default.) 2B recipient user: postmaster. > envnoathost: (Default.) Presumed domain name is staff.telkomsa.net. > goodmailaddr: Oops! Trouble reading this file. > helohost: (Default.) SMTP client HELO host name is staff.telkomsa.net. > idhost: (Default.) Message-ID host name is staff.telkomsa.net. > localiphost: (Default.) Local IP address becomes staff.telkomsa.net. > locals: Oops! Trouble reading this file. > me: My name is staff.telkomsa.net. > outgoingip: (Default.) Bind qmail-remote to 0.0.0.0. > pbscachesize: (Default.) PBS cachesize is 1048576 bytes. > pbsenv: Oops! Trouble reading this file. > pbsip: (Default.) Bind PBS daemon to 0.0.0.0. > pbsport: (Default.) PBS deamon listens on port 2821. > pbssecret: (Default.) PBS shared secret is undefined! Uh-oh. > pbsservers: Oops! Trouble reading this file. > pbstimeout: (Default.) PBS entries will be valid for 600 seconds. > percenthack: Oops! Trouble reading this file. > plusdomain: Plus domain name is telkomsa.net. > qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0. > qmqpservers: Oops! Trouble reading this file. > queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds. > quotawarning: Oops! Trouble reading this file. > rbllist: Oops! Trouble reading this file. > rcpthosts: Oops! Trouble reading this file. > morercpthosts: Oops! Trouble reading this file. > morercpthosts.cdb: (Default.) No effect. > relaymailfrom: Oops! Trouble reading this file. > smtpgreeting: (Default.) SMTP greeting: 220 staff.telkomsa.net. > smtproutes: Oops! Trouble reading this file. > timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds. > timeoutremote: (Default.) SMTP client data timeout is 1200 seconds. > timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds. > virtualdomains: Oops! Trouble reading this file. > > Now the qmail-ldap specific files: > > ldapserver: > beowulf.telkomsa.net > port_ldap: (Default.) LDAP Port: 389. > ldaplogin: (Default.) LDAP login: NULL. > ldapbasedn: (Default.) LDAP basedn: NULL. > ldapcontroldn: ou=qmailldap,dc=telkomsa,dc=net,dc=isp. > ldaptimeout: (Default.) LDAP server timeout is 30 seconds. > ldapuid: (Default.) Default UID is not defined. > ldapgid: (Default.) Default GID is not defined. > ldapobjectclass: (Default.) The objectclass to limit ldap filter is not > defined. ldapmessagestore: (Default.) Prefix for non absolute paths is not > defined. ldapdefaultdotmode: (Default.) Default dot mode for ldap users is > ldaponly. defaultquotasize: (Default.) Mailbox size quota is 0 bytes (0 is > unlimited). defaultquotacount: (Default.) Mailbox count quota is 0 > messages (0 is unlimited). > ldaplocaldelivery: (Default.) Local passwd lookup is 1 (1 = on, 0 = off). > ldaprebind: (Default.) Ldap rebinding is 0 (1 = on, 0 = off). > ldapcluster: (Default.) Clustering is 0 (1 = on, 0 = off). > ldapclusterhosts: Oops! Trouble reading this file. > > $ ldapsearch -x -h beowulf.telkomsa.net -b > ou=qmailldap,dc=telkomsa,dc=net,dc=isp -LLL > dn: ou=qmailldap,dc=telkomsa,dc=net,dc=isp > objectClass: top > objectClass: organizationalUnit > ou: qmailldap > > dn: cn=staff.telkomsa.net,ou=qmailldap,dc=telkomsa,dc=net,dc=isp > objectClass: top > objectClass: qmailControl > cn: staff.telkomsa.net > locals: beowulf.telkomsa.net > locals: staff.telkomsa.net > locals: staff1.telkomsa.net > ldapBaseDN: ou=mail,dc=telkomsa,dc=net,dc=isp > ldapUid: 120 > ldapGid: 120 > > $ ldapsearch -x -h beowulf.telkomsa.net -b > ou=qmailldap,dc=telkomsa,dc=net,dc=isp -LLL locals > dn: ou=qmailldap,dc=telkomsa,dc=net,dc=isp > > dn: cn=staff.telkomsa.net,ou=qmailldap,dc=telkomsa,dc=net,dc=isp > locals: beowulf.telkomsa.net > locals: staff.telkomsa.net > locals: staff1.telkomsa.net > > Here you can see that everything starts except qmail. > > # qmailctl stat > /service/qmail: up (pid 25595) 1 seconds > /service/qmail/log: up (pid 20552) 637 seconds > /service/qmail-smtpd: up (pid 20553) 637 seconds > /service/qmail-smtpd/log: up (pid 20554) 637 seconds > /service/qmail-pop3d: up (pid 20555) 637 seconds > /service/qmail-pop3d/log: up (pid 20556) 637 seconds > messages in queue: 0 > messages in queue but not yet preprocessed: 0 > > The output of the log file: > > # tail -f /var/qmail/log/qmail/current > @4000000042b7cfca251d07ac alert: cannot start: unable to read controls > > Many thanks. -- slr
pgpwn9IfTD3U9.pgp
Description: PGP signature
