====== Authentifizierung über OAuth 2.0. mit Office 365 ====== ===== eBiss Host ===== For SMTP the host should be *.mail.protection.outlook.com on port 25, .e.g.: * .mail.protection.outlook.com on port 25 to get it to work The information is from: https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide ===== Azure Konfiguration ===== Auf Micosoft Azure müssen Sie unter "App-Registrierungen" eine neue Registrierung eintragen. Auf dieser Finden Sie dann die: - Anwendungs-ID (Client) - Tenant ID = Verzeichnis-ID (Mandant) und - das Client Secret unter "Zertifikate & Geheimnisse" Die Registrierte App muss dann über "API-Berechtigungen" für den Zugriff mittels POP3 und SMTP freigeschaltet werden. Unter Berechtigung hinzufügen und dann das Register "Von meiner Organisation verwendete APIs" dort "Office 365 Exchange Online" auswählen dann "Anwednungsberechtigungen" und dort finden Sie POP und SMTP Nach dem muss man in die Power Shell folgendes durchführen: Install-Module -Name ExchangeOnlineManagement Install-Module -Name AzureAD Install-Module Microsoft.Graph Connect-AzureAD -TenantID Connect-ExchangeOnline -Organization # prüfen Get-AzureADServicePrincipal -SearchString "" $MyApp = Get-AzureADServicePrincipal -SearchString "" New-ServicePrincipal -AppId $MyApp.AppId -ServiceID $MyApp.ObjectID -Display "Sercie Principal for POP3 App" Add-MailboxPermission -Identity "" -User $MyApp.ObjectId -AccessRights FullAccess