Exception in defer callback: Error: Invalid login 504 5.7.4 Unrecognized authentication type

We are running on v0.71 of rocket chat for the current case, and will plan to upgrade.
My question was regarding the smtp auth, as I was able to use the email functionality with Google smtp but not with office365. So, is there any restriction in configuring office365 with rocket chat for the mailing function ?