Hi,
I've been trying to enable SMTP auth using vchkpw with qmail today.
The login works fine, but after i issue the "rcpt to" command over
telnet, I get the "421 unable to read controls (#4.3.0)" error.
Google told me it' s a permissions problem, but the permissions on
the /var/qmail/control directory (it's actually a symlink to /etc/
qmail) are:
-rw-r----- 1 vpopmail vchkpw 245 2007-08-15 01:01 dh1024.pem
-rw-r----- 1 vpopmail vchkpw 156 2007-08-15 01:01 dh512.pem
-rw-r--r-- 1 root root 0 2007-08-11 15:01 locals
-rw------- 1 root root 0 2007-05-16 12:09 locals.lock
-rw-r--r-- 1 root root 10 2007-05-16 11:51 me
-rw-r--r-- 1 root root 258 2007-08-13 14:06 morercpthosts
-rw-r--r-- 1 root root 2720 2007-08-13 14:06 morercpthosts.cdb
-rw------- 1 root root 0 2007-07-31 18:58 morercpthosts.lock
-rw-r--r-- 1 root root 726 2007-08-13 14:06 rcpthosts
-rw------- 1 root root 0 2007-05-16 12:09 rcpthosts.lock
-rw-r----- 1 vpopmail vchkpw 497 2007-08-15 01:01 rsa512.pem
-rw-r--r-- 1 root root 45 2007-08-09 18:30 simcontrol
-rw-r--r-- 1 root root 2115 2007-08-09 18:30 simcontrol.cdb
-rw-r--r-- 1 root root 2161 2007-08-06 13:16 simversions.cdb
drwxr-xr-x 2 root qmail 4096 2007-08-13 14:06 users
-rw-r--r-- 1 root root 3074 2007-08-13 14:06 virtualdomains
-rw------- 1 root root 0 2007-05-16 12:09 virtualdomains.lock
I don't use SSL for the auth connection, so I guess the .pem files
don't matter. stracing an smtpd process also prints
lseek(3, 696, SEEK_SET) = -1 EBADF (Bad file descriptor)
just before the error message, as if fd 3 was closed prematurely.
When I telnet it looks like this:
Connected to domain.tld.
Escape character is '^]'.
220 domain.tld ESMTP
helo domain.tld
250 domain.tld
auth login
334 VXNlcm5hbWU6
xxx
334 UGFzc3dvcmQ6
yyy
235 ok, [EMAIL PROTECTED], go ahead (#2.0.0)
mail from:<[EMAIL PROTECTED]>
250 ok
rcpt to:<[EMAIL PROTECTED]>
421 unable to read controls (#4.3.0)
Connection closed by foreign host.