Administración de la configuración, la seguridad y la privacidad de la cuenta personal de Outlook.com
Microsoft stopped allowing Basic Authentication for Outlook.com IMAP on September 16, 2024. An application password is still password-based authentication, so it cannot bypass this restriction. The failed response is therefore expected when Paperless-NGX tries to authenticate using a username and password.
imap-mail.outlook.com is an older server name, but changing it will not solve the authentication problem because OAuth2 is still required.
You need to see if Paperless-NGX has an ugpraded version that supports OAuth2. If upgrading and configuring OAuth2 is not possible, there is no Microsoft-side setting that will make app-password IMAP work. The practical alternative is to forward the relevant messages to a separate mailbox that Paperless can access using its supported authentication method.