Separating secure and non secure imap connection.