Look for the "imaps" entry in the .authinfo if we're using ssl connection.