Outlook setup for K9

Hi There,
searched arround (in forum and web) but can’t find a sollution.
“Years” ago, I worked with K9 and outlook and it worked fine.
Since then little break and now I want to work again with it.

I tried to setup K9 with the informations provided by Microsoft oon official page (can’t put link here):

IMAP:
|**IMAP server**|outlook.office365.com|
|**IMAP port**|993|
|**IMAP encryption**|SSL/TLS|
|**Authentication Method**|OAuth2/Modern Auth|

→ I can receive mails fine.

SMTP:
|**SMTP server name**|smtp-mail.outlook.com|
|**SMTP port**|587|
|**SMTP encryption**|STARTTLS|
|**Authentication Method**|OAuth2/Modern Auth|

→ Can not send mails. During setup I got following error:

Authentication unsuccessful

[FR3P281CA0142.DEUP281.PROD.OUTLOOK.COM 2024-12-15T20:52:37.998Z08DD1D3AD35CCF65]

Can’t find a solution. Found the setup guide for Outlook as well, but this was no help so far.
Any ideas?

Try changing the Sending outgoing server from smtp-mail.outlook.com to smtp.office365.com

And see if that gets you through the setup step.

Same Error.
And I thought, the parameters from official Microsoft page should be correct.

Is this an end user free account, or one through an organization? If an organization, they may have restricted the ability to fetch and/or send email.

It’s my free ****@outlook.de account, so there should be no restrictions.

Can anybody using K9 with outlook verify that those SMTP parameters are the right one?
I can find various different settings in the net, it seems as Microsoft changed there a lot in the past years.