504 5.7.4 Unrecognized authentication type (with o365 licenced account and pdf-device-scanner)

Matrix-Matrix-Matrix 46 Reputation points
2022-03-26T14:01:22.197+00:00

Hello,

with a licenced account in o365 tenant:

it is required to enable "scan to mail" via brother multifunction scanner

504 5.7.4 Unrecognized authentication type
How do I fix this error?

Brother says:
Testergebnis der E-Mail-Konfiguration
Konfiguration des E-Mail-Versands
Die Test-E-Mail ist fehlgeschlagen. Der E-Mail-Server hat wie folgt geantwortet:
504 5.7.4 Unrecognized authentication type [xxxxxxxx0.eop-deu01.prod.protection.outlook.com]
Prüfen Sie Ihre Einstellungen und versuchen Sie es erneut.

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://learn.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

OWA works,
Outlook 2013: adding the o365 account as IMAP/SMTP works
imap: outlook.office365.com 143 TLS
smtp: "tenantname".mail.protection.outlook.com 587 TLS

Multifactor Authentication is disabled.
My account is licensed: Exchange Online (Plan 1)
PDF scan 2 mail is successful via SMTP Server of the WEbhosting-Domainprovider.

Based on this:
https://aka.ms/smtprelay
this EO Powershell command was inserted:
Set-CASMailbox -Identity user@Company portal .com -SmtpClientAuthenticationDisabled $false

++++

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
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.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,310 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Matrix-Matrix-Matrix 46 Reputation points
    2022-03-26T14:18:19.51+00:00

    can´t find my try with scanner-device in this log:

    https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/SignIns

    discovered on:
    https://community.spiceworks.com/topic/2276644-everything-using-office-365-smtp-authentication-is-broken-wont-authenticate
    After some digging around I found that I could go in to the Azure side of our tenant > azure ad > sign ins, add a column for client app and under legacy auth options for that filter choose SMTP. This displays all the failed SMTP login attempts on our backup@ mailbox that we use for our in-house backup solution to send backup reports.

    0 comments No comments

  2. Joyce Shen - MSFT 16,646 Reputation points
    2022-03-28T02:22:35.677+00:00

    Hi @Matrix-Matrix-Matrix

    That's cool, glad to know that your issue is resolved and thanks so much for providing your solution here! Since our forum has the policy that The question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A

    I would make a brief summary of this post so that other forum members could easily find useful information here:

    [504 5.7.4 Unrecognized authentication type (with o365 licenced account and pdf-device-scanner) - Summary]

    Issue Symptom:
    It is required to enable "scan to mail" via brother multifunction scanner
    And get the error: 504 5.7.4 Unrecognized authentication type

    Solution:
    Exchange Online to Introduce Legacy SMTP Endpoint in 2022

    Reference Links:
    Opt in to the Exchange Online endpoint for legacy TLS clients using SMTP AUTH

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If an Answer 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.