Can not connect email in CRM Frappe

I do not manage to setup email in CRM Frappe. I definatly have set up and app password and for the email ID i used my M365 address. Why does it not work and sais invalid credentials? Any idea?

i wonder why standard smtp and IMAP is not suppsoed

Unfortunately I can not answer that question. Would be much easier. Maybe security??? I am no expert in this