Use AUTHENTICATE PLAIN on servers that say they support that.