2016-01-06 63 views
2

的Outlook自动发现SMTP认证

我想创建我的网站的用户自动发现脚本的问题。目前,我创造我的邮件服务器的有效连接,但是我的邮件服务器需要SMTP认证。我目前发送:

<AuthRequired>on</AuthRequired> 

完整的XML文件中启用SMTP认证功能。这使得在细节勾选旁边的“我的发送服务器(SMTP)要求验证”。与这两个选项的符号列表“使用相同的设置接收邮件服务器”(者优先)或“登录使用”没有选择的选择。

我已经试过

我曾尝试加入POP3信息,并把下面的属性在我的SMTP部分:

<UsePOPAuth>on</UsePOPAuth> 

但没有奏效。要创建我已经使用了下列URL XML文件:https://technet.microsoft.com/en-us/library/cc511507.aspx

我现在的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.test.nl</Server> 
<Port>143</Port> 
<DomainRequired>on</DomainRequired> 
<LoginName>[email protected]</LoginName> 
<SPA>off</SPA> 
<SSL>off</SSL> 
<AuthRequired>on</AuthRequired> 
</Protocol> 
<Protocol> 
<Type>SMTP</Type> 
<Server>mail.test.nl</Server> 
<Port>587</Port> 
<DomainRequired>on</DomainRequired> 
<LoginName>[email protected]</LoginName> 
<SPA>off</SPA> 
<SSL>off</SSL> 
<AuthRequired>on</AuthRequired> 
<SMTPLast>on</SMTPLast> 
</Protocol> 
</Account> 
</Response> 
</Autodiscover> 
+0

你试过从SMTP协议,当你省略DomainRequired而LoginName提供UsePOPAuth –

回答

1

我发现在TechNet上基本上解释了为什么这种情况正在发生一个非常有用的article。从我的理解,指定SMTPLast特性使展望尝试登录SMTP之前POP/IMAP,实际上并没有SMTP认证(一些服务器,如我校唯一的工作这种方式)。

我复制你有与配置相同的问题,但一旦我删除它,它的工作就像一个魅力。

我注意到没有很多关于自动发现有用的文档,又名POX autodiscover所以这里是为我工作的XML模板:

<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> 
    <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a"> 
     <User> 
      <DisplayName>First Last</DisplayName> 
     </User> 
     <Account> 
      <AccountType>email</AccountType> 
      <Action>settings</Action> 
      <Protocol> 
       <Type>IMAP</Type> 
       <Server>mail.example.com</Server> 
       <Port>993</Port> 
       <AuthRequired>on</AuthRequired> 
       <LoginName>[email protected]</LoginName> 
       <SPA>off</SPA> 
       <SSL>on</SSL> 
      </Protocol> 
      <Protocol> 
       <Type>SMTP</Type> 
       <Server>mail.example.com</Server> 
       <Port>587</Port> 
       <AuthRequired>on</AuthRequired> 
       <LoginName>[email protected]</LoginName> 
       <SPA>off</SPA> 
       <Encryption>TLS</Encryption> 
       <UsePOPAuth>on</UsePOPAuth> 
      </Protocol> 
     </Account> 
    </Response> 
</Autodiscover> 
+0

正确答案+1 –