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

Is authReset only used to avoid looping?