[qmf] Handle SMTP response 504.

Handle SMTP response 504 and reset auth method if auth from caps is
enabled.