[qmf] Introduce discovery of authentication from the anounced capabilities(IMAP/SMTP)

True, never seen this kind of operation fail, but makes sense.