Revert "Use new connect api"
This reverts commit 94b979956b9012b2ed9f7821ae02cf5c683c849a.
This causes massive memory leaks and makes maildispatcher unable to send mails.
CCMAIL: montel@kde.org