AlfonsoPC
Do you have Authenticated SMTP enabled for the email account in O365? To check this you can login to O365 as global admin, go to the Admin Center (not Exchange Admin Center), go to Active Users, search for the email account, click the name of the email account, go to the Mail tab in the popup, click Manage email apps, and ensure Authenticated SMTP is checked (enabled).
Cheers.