Kein Mailabruf und Versand nach Einrichtung der OAuth2 mit Znuny 6.4.3

Hilfe zu OTRS Problemen aller Art
Post Reply
Scheffold
Znuny newbie
Posts: 13
Joined: 13 Aug 2015, 15:53
Znuny Version: 6.4.3
Real Name: Markus Scheffold
Company: Häussler Technische Orthopädie GmbH
Contact:

Kein Mailabruf und Versand nach Einrichtung der OAuth2 mit Znuny 6.4.3

Post by Scheffold »

Guten Tag zusammen,

nach der Einrichtung von OAuth2 nach diesem Blogartikel (https://www.znuny.org/de/blog/modern-au ... -microsoft) bekomme ich einen gültigen Token.
Die Berechtigungen in der App-registrierung wurden folgende gesetzt:
Office 35 Exchange Online - IMAP:AccessAsApp, Mail.ReadWrite, Mail.Send
Microsoft Graph - IMAP.AccessAsUser.All, Mail.ReadWrite, Mail.Send, SMTP:Send, User.Read

Der Service-Principal auf dem ExchangeOnline wurde eingerichtet und die Mailboxberechtigungen für 5 Postfächer wurden mit "FullAccess" eingerichtet.

Jetzt kommt im Systemprotokoll folgende Fehlermeldungen:

Fri Nov 18 13:20:24 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-88 Error while retrieving the messages 'IMAPTLS': Could not select:
Fri Nov 18 13:20:21 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-88 Error while retrieving the messages 'IMAPS': Could not select:
Fri Nov 18 13:20:18 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-88 Error while retrieving the messages 'IMAPS': Could not select:
Fri Nov 18 13:20:15 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-88 Error while retrieving the messages 'IMAPS': Could not select:
Fri Nov 18 13:20:12 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-88 Error while retrieving the messages 'IMAPS': Could not select:
Fri Nov 18 13:20:11 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 There was an error executing Execute() in Kernel::System::Console::Command::Maint::Email::MailQueue: ERROR: OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 Perl: 5.16.3 OS: linux Time: Fri Nov 18 13:20:11 2022
Fri Nov 18 13:20:11 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 CommunicationLog(ID:1271530,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:1283944)::Kernel::System::MailQueue => Permanent sending problem or we reached the sending attempt limit. Message will be removed
Fri Nov 18 13:20:11 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 CommunicationLog(ID:1271530,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:1283944)::Kernel::System::MailQueue => Message could not be sent! Error message: SMTP authentication failed: 535, 5.7.3 Authentication unsuccessful [FR3P281CA0164.DEUP281.PROD.OUTLOOK.COM]
Fri Nov 18 13:20:11 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 CommunicationLog(ID:1271530,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:1283944)::Kernel::System::Email => Error sending message using backend 'Kernel::System::Email::SMTPTLS'.
Fri Nov 18 13:20:11 2022 (Europe/Berlin) error OTRS-otrs.Console.pl-Maint::Email::MailQueue-88 CommunicationLog(ID:1271530,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Connection,ObjectLogID:1283946)::Kernel::System::Email::SMTPTLS => SMTP authentication failed (SMTP code: 535, ErrorMessage: 535, 5.7.3 Authentication unsuccessful [FR3P281CA0164.DEUP281.PROD.OUTLOOK.COM]

Weder der Versand noch der Empfang von E-Mails ist möglich.

Weiß hier mir hier jemand weiter?

Viele Grüße
Markus
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Kein Mailabruf und Versand nach Einrichtung der OAuth2 mit Znuny 6.4.3

Post by root »

Hallo,

meine erste Vermutung: der Benuzter des sich in Office365 für den Token eingeloggt hat, hat keine Berechtigungen auf die Postfächer.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Scheffold
Znuny newbie
Posts: 13
Joined: 13 Aug 2015, 15:53
Znuny Version: 6.4.3
Real Name: Markus Scheffold
Company: Häussler Technische Orthopädie GmbH
Contact:

Re: Kein Mailabruf und Versand nach Einrichtung der OAuth2 mit Znuny 6.4.3

Post by Scheffold »

Guten Morgen,

Genau das war es. Rechte für den User des Token erteilt + die Rechte für "Senden als" jetzt läuft es. Vielen Dank!!!

Bedeutet das aber, dass Beide Berechtigungen gesetzt sein müssen? Von dem der sich einloggt für den Token und die App-Regisitrierung selbst?

Grüße
Markus
Post Reply