# Mailer Einstellungen Microsoft365

**URL:** <https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005>\
**Category:** Shopware 5\
**Created:** [29. August 2022 um 14:49 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005 "2022-08-29T14:49:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [29. August 2022 um 14:49 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/1 "2022-08-29T14:49:33Z")

</div>

Hallo zusammen,  
ich habe unsere Mailkonten mit Microsoft365 verknüpft und mit den jeweiligen DNS-Einträgen auf Timmehosting umgeschaltet.  
Jetzt habe ich das Problem, dass ich den Shopware Mailer mit den Microsoft-Zugangsdaten nicht zum laufen bekomme.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/1/f145925fcdd2211b151fdb3bdd7e62939f246027.png)  
Laut den Einstellungen müsste es korrekt sein, als Benutzer habe ich die Admin Benutzerdaten angegeben.  
„Authentifiziertes SMTP“ habe ich aktiviert.

Folgende Fehlermeldung erhalte ich, wenn ich z.B. das Kontaktformular absenden will:

> **Fatal error** : Uncaught Zend\_Mail\_Protocol\_Exception: errMsg: 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [[AS8PR04CA0036.eurprd04.prod.outlook.com](http://AS8PR04CA0036.eurprd04.prod.outlook.com)] , cmd: 535 in /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Protocol/Abstract.php:421 Stack trace: #0 /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Protocol/Smtp/Auth/Login.php(94): Zend\_Mail\_Protocol\_Abstract-\>\_expect() #1 /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Protocol/Smtp.php(215): Zend\_Mail\_Protocol\_Smtp\_Auth\_Login-\>auth() #2 /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Transport/Smtp.php(196): Zend\_Mail\_Protocol\_Smtp-\>helo() #3 /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Transport/Abstract.php(343): Zend\_Mail\_Transport\_Smtp-\>\_sendMail() #4 /var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail.php(1175): Zend\_Mail\_Transport\_Abstract-\>sen in **/var/www/clients/client1/web2/web/testserver/engine/Library/Zend/Mail/Protocol/Abstract.php** on line **421**

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [29. August 2022 um 17:12 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/2 "2022-08-29T17:12:43Z")

</div>

Hallo,

ist dem Benutzer mindestens eine Office 365 Basic Lizenz zugewiesen ?  
Auch musst Du ein App-Kennwort generieren und dieses in den Mailer Einstellungen eintragen:  
[https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9](https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9)

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [30. August 2022 um 08:11 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/3 "2022-08-30T08:11:43Z")

</div>

Also die Lizenz ist korrekt zugewiesen. Auf die Sache mit dem App-Kennwort bin ich nun auch schon öfter gestoßen, allerdings sehen meine Zielseiten anders aus, als von Microsoft in der Doku beschrieben, ich finde dort keine Möglichkeit meinem Benutzer diese Kennwörter zuzuweisen.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [30. August 2022 um 08:33 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/4 "2022-08-30T08:33:12Z")

</div>

Hi,

bei Dir ist vermutlich noch die Conditional Access Policy Aktiv (wird im Standard seit einiger Zeit gesetzt) - kannst Du wie folgt abschalten:  
[Office 365 Conditional Access | ManageEngine Mobile Device Manager Plus](https://www.manageengine.com/mobile-device-management/help/profile_management/mdm_o365_conditional_access.html#:~:text=Follow%20these%20steps.-,Login%20to%20Azure%20Portal%20with%20your%20account%20credentials%20and%20navigate,Off%20and%20click%20on%20Save).

Danach ein paar Minuten warten und anschließend dann folgenden Link verwenden:

> **[My Sign-Ins](https://mysignins.microsoft.com/security-info)**
>
> My Sign-ins

Oben dann auf das „+ Anmeldemethode hinzufügen“ klicken.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [30. August 2022 um 09:35 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/5 "2022-08-30T09:35:07Z")

</div>

Hmmm, mir wird keine Access policy angezeigt, die ich deaktivieren könnte.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [30. August 2022 um 09:46 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/6 "2022-08-30T09:46:15Z")

</div>

Hier ist das besser beschrieben:

> **[Azure Active Directory security defaults - Microsoft Entra](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/concept-fundamentals-security-defaults)**
>
> Security default policies that help protect organizations from common attacks in Azure AD

Anmelden musst Du Dich im Azure Portal mit einem Organisations-/Administrator Konto um die Policy abzuschalten - sieht dann so aus:

 ![Bildschirmfoto 2022-08-30 um 11.45.43](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/d/0/d05b01ddba3da67d13ad82f9483a09cc1417fd12.png)

---

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [30. August 2022 um 09:59 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/7 "2022-08-30T09:59:09Z")

</div>

Danke für deine Mühe, die Sicherheitsstandards habe ich nun deaktiviert, leider kann ich dennoch keine weiteren Anmeldemethoden hinzufügen.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [30. August 2022 um 10:00 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/8 "2022-08-30T10:00:32Z")

</div>

Das kann etwas dauern, bis die Einstellung bei Deiner Organisation greift.

---

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [30. August 2022 um 11:26 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/9 "2022-08-30T11:26:10Z")

</div>

Mehr als eine Stunde? Habe jetzt von anderer Stelle noch den Hinweis erhalten, dass man evtl. in der Powershell etwas anpassen muss.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [30. August 2022 um 11:41 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/10 "2022-08-30T11:41:37Z")

</div>

Folgende Links helfen evtl. noch weiter (2FA bei dem User mal deaktivieren/aktivieren und/oder im MS Portal einmal abmelden/anmelden:

[https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f](https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f)

> **[Unable to use the app passwords feature - Microsoft Q&A](https://docs.microsoft.com/en-us/answers/questions/522899/unable-to-use-the-app-passwords-feature.html)**
>
> Microsoft Q&A is the best place to get answers to all your technical questions on Microsoft products and services. Community. Forum.

---

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [30. August 2022 um 12:57 UTC](https://forum.shopware.com/t/mailer-einstellungen-microsoft365/96005/11 "2022-08-30T12:57:36Z")

</div>

Danke Dir für deine Mühen 🙏 es läuft jetzt!  
Zwar kann ich nach wie vor kein App-Kennwort erstellen, aber von den ganzen Sicherheitseinstellungen scheint eine ausschlaggebend gewesen zu sein 😁
