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