OK. I think I tracked the error down. It's the TLSDEBUG option that confuses qmail-rspawn because the quit message starts with a S (STARTTLS...) instead of a K, Z or D.
I'm running qmail-ldap with ssl and I'm using it heavily and never noticed the problem so I think it is definitifly the TLSDEBUG option.
Hm ok, it seems to be the DEBUG-Option. Without it the delivery produces no failure.
You can also try this not yet tested patch.
With the patch AND enabled TLSDEBUG it also works.
Thanks!
PS: Would this small patch be applied to the (not yet offical announced) 0304-patch?
Oskar
