Can't connect to IMAP mail server with Thunderbird and KMail


I have a strange problem. My e-mail servers is IMAP and have TLS/SSL. I am sure that i entered right informations (servername, port, type, pw…). But i connect to my outgoing mail server but then login failed, on both Thunderbrd 3 and KMail that come with openSuSE 11.2. And now i tried one POP server with Thunderbir 3, and it fails to download my messages from server too. What could be wrong?