question

FTINC-4195 avatar image
0 Votes"
FTINC-4195 asked Dan-8237 answered

Exchange online plan 1 504 5.7.4 Unrecognized authentication type

I recently changed my email hosting to Microsoft Exchange online (plan 1). I have a windows desktop application and a scanner that I need to send emails from using SMTP. When I setup my account on the scanner device and software, I get the error "504 5.7.4 Unrecognized authentication type". How do I fix this error?


I have followed the directions:
How to set up a multifunction device or application to send email using Microsoft 365 or Office 365, Option 1
https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365


Outlook on the web works, logon with username and password, send and receive emails.
Multifactor Authentication is disabled.


I have tried using the following host information, all returning the same error:
<mydomain>.mail.protection.outlook.com, port 25
smtp.office365.com, port 25
smtp.office365.com, port 587


My account is licensed: Exchange Online (Plan 1)

In Microsoft 365 admin center, active users, my user, manage email apps: (all are checked)
Outlook on the web - checked
Outlook desktop (MAPI) - checked
Exchange web services - checked
Mobile (Exchange ActiveSync) - checked
IMAP - checked
Pop - checked
Authenticated SMTP - checked


In Exchange properies for account:
Outlook on the web - enabled
Outlook desktop (MAPI) - enabled
Exchange web services - enabled
Mobile (Exchange ActiveSync) - enabled
IMAP - enabled
Pop - enabled


Using SMTP Diag tool, I get the following log trying to send an email:

Connecting to mail server.
Connected.
220 <isthisprivate>.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 20 Oct 2020 18:02:19 +0000
EHLO MYHOST
250-<isthisprivate>.outlook.office365.com Hello [1.2.3.4]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
AUTH LOGIN
504 5.7.4 Unrecognized authentication type [<isthisprivate>.CANPRD01.PROD.OUTLOOK.COM]
Forcing disconnection from SMTP server.
QUIT
221 2.0.0 Service closing transmission channel
Disconnected.


Thanks.

office-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FTINC-4195 avatar image
0 Votes"
FTINC-4195 answered cheong00 commented

Following the instructions did not work for me because I didn't recognize that Azure AD was being used. We only signed up for Exchange Online and wasn't aware Azure AD was being used as well, once I figured out that Azure AD was being used and those settings applied, it worked.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you mean that this issue is solved after using Azure AD? If so, I would suggest you mark it as an answer to help other forum users.

0 Votes 0 ·

Hi FTINC-4195,

Could you please tell us how did you resolve this issue with Azure AD?

Thanks :)

0 Votes 0 ·

Just want to remark that we received report on misleading answer here.

I see that it's possible that @FTINC-4195 may have done additional steps other than just fix the setting towards Azure AD that caused his setup to work (most likely something related to enabling SMTP AUTH), but IMO I don't think this kind of answer as misleading - after all it does fix his problem.

0 Votes 0 ·
KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

@FTINC-4195
Yes, you found the correct article to configure Exchange Online Relay Email for your application. However, we don't know how your application works. We recommend that you use this article to confirm with your application provider to check which option your application supports. Then, try to use the correct, the option 1 and 2 aren't supported by all application/device.

You can also try to use the option 3 to create a dedicated SMTP relay connector to relay email from your application.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dan-8237 avatar image
0 Votes"
Dan-8237 answered

I really wish @FTINC-4195 had provided a better answer. I'm really stuck on this and they've perfectly described everything I've also tried to get our scanner to send with SMTP AUTH unsuccessfully. I still haven't figured out what I'm doing wrong.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.