Moin,
ich versuche mich gerade an dem Thema autodiscover für Microsoft Outlook für die IMAP/SMTP Einstellungen und komme nicht so ganz weiter.
Ich habe die Subdomain autodiscover.xyz.tld erstellt und im Verzeichnis autodiscover auch eine autodisccover.xml hinterlegt mit den Einstellungen zu meinem E-Mail Server. (Der E-Mail Server ist selbst gehosted)
Wenn ich Outlook starte und Name, E-Mail Adresse und Passwort eingebe, erhalte ich folgenden Hinweis:
[Blockierte Grafik: https://www.bilder-upload.eu/bild-fa0b7f-1609088678.png.html]
Den ich mit Allow bestätige und dann öffnet sich der Login für Office 365:
[Blockierte Grafik: https://www.bilder-upload.eu/bild-459c89-1609088705.png.html]
wobei es sich ja um ein E-Mail Konto handelt welches auf meinem Server liegt.
Hat jemand eine Idee was da schief läuft?
<?php
$raw = file_get_contents('php://input');
$matches = array();
preg_match('/<EMailAddress>(.*)<\/EMailAddress>/', $raw, $matches);
header('Content-Type: application/xml');
?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName>MEIN NAME</DisplayName>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<Server>server.xyz.tld</Server>
<Port>993</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<LoginName><?php echo $matches[1]; ?></LoginName>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>server.xyz.tld</Server>
<Port>465</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<LoginName><?php echo $matches[1]; ?></LoginName>
</Protocol>
</Account>
</Response>
</Autodiscover>
Alles anzeigen