Separating secure and non secure imap conneciton.