SMTP authentication failing with third party application

Saurabh Pore 0 Reputation points
2023-03-14T17:28:37.8966667+00:00

Hello,

I am trying to send email from third party application (Knime Analytics Platform) to external user. I tried setting up "App Password" and “Authenticated SMTP” option is enabled. We have MFA enabled on our account. Upon checking with IT team I got a below information from logs, I made sure that my Username/Password ( used app password too) is typed correctly

error_1

I followed steps mentioned in this article: Option 1: Authenticate your device or application directly with a Microsoft 365 or Office 365 mailbox, and send mail using SMTP AUTH client submission t=

I am getting error: Error while communicating with the smtp server: javax.mail.AuthenticationFailedException

Please suggest if you have any ideas to solve this issue. Thank you.

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-03-14T20:55:39.87+00:00

    The problem there is that the application cant respond to the MFA prompt.

    Can you create a service account that doesnt require MFA or use Oauth instead? That would allow this to work

    https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth

    You could use a conditional access policy to limit the account logons to specific IP addresses as well to help protect it.

    1 person found this answer helpful.

  2. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2023-03-14T17:33:29.79+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.