我不确定这个问题是否最适合在这里或 StackOverflow 上。我正在尝试让自动发现适用于 Windows 10 邮件(只是标准 IMAP/SMTP 类型 - 不是 Exchange)。根据文档,我需要一个/自动发现/自动发现.xml归档自动发现网站。 所以我有:
https://autodiscover.ultranerds.co.uk/autodiscover/autodiscover.xml
即:
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<Server>mail.ultranerds.co.uk</Server>
<Port>993</Port>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>POP3</Type>
<Server>mail.ultranerds.co.uk</Server>
<Port>995</Port>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>mail.ultranerds.co.uk</Server>
<Port>465</Port>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
</Account>
</Response>
</Autodiscover>
我可以在日志文件中看到传入的请求:
52.125.138.6 - - [05/Jan/2023:07:03:16 +0000] "GET /autodiscover/autodiscover.json?Email=test%40ultranerds.co.uk&Protocol=ActiveSync&RedirectCount=1 HTTP/1.1" 404 1434 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:03:16 +0000] "POST /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:03:16 +0000] "POST /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:03:16 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 301 162 "-" "-"
52.125.138.6 - - [05/Jan/2023:07:03:16 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 301 162 "-" "-"
当我尝试在 Windows Mail 中添加帐户时,我只得到:
我遗漏了什么?我甚至尝试添加 DNS SRV 记录,因为这显然在某些程序中有效?(我希望它们都使用一个固定的标准!)
更新:禁用自动 https 重定向后,我得到:
52.125.138.6 - - [05/Jan/2023:07:37:44 +0000] "GET /autodiscover/autodiscover.json?Email=test%40ultranerds.co.uk&Protocol=ActiveSync&RedirectCount=1 HTTP/1.1" 404 1434 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:37:44 +0000] "POST /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:37:44 +0000] "POST /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
52.125.138.6 - - [05/Jan/2023:07:37:44 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "-"
52.125.138.6 - - [05/Jan/2023:07:37:44 +0000] "GET /autodiscover/autodiscover.xml HTTP/1.1" 200 305 "-" "-"
我猜这两个版本是http://和https://调用 - 但它仍然不接受自动发现参数:(
更新 3:还是没有成功。我甚至尝试通过 DNS SRV 记录 - 但似乎仍然没有采用以下值:
太气人了!