Typo
Always login if running a public method on the connection.

It only worked so far because queryExtension() implicitly connected to the
server. It didn't catch connection errors though, because it simply returned
false on exceptions.
The Horde configuration defaults to SMTP port 25, stick with that.