none
Outlook的自动配置用户帐户(autodiscover/自动发现)无法配置POP3/IMAP方式?(第二次提问) RRS feed

  • 问题

  • 首先解释一下,OUTLOOK可以自动配置邮件的服务器设置(POP3/IMAP/EXCHANGE等),这个功能就叫autodiscover(自动发现),但是在中文社区几乎找不到什么可用的信息,英文的翻了几个,有点不大懂,自己看了官方给个注释,发现根本配不出来……

    首先域名和放置地点这些都搞定了(类似官方实例放置在这个文件夹下面,可以通过这个地址访问 https://domain.com/autodiscover/autodiscover.xml ),Outlook也获取到配置文件了

    主要就是配置文件的内容不正确!!!

    按照官方的这个页面给的配置帮助,还是配不出来

    https://technet.microsoft.com/zh-cn/library/cc511507(v=office.14).aspx

    我要配置的是这样

    pop.exmail.qq.com SSL 995

    smtp.exmail.qq.com SSL 465 (要勾选邮件设置里的“我的发送服务器(SMTP)要求验证”)

    但是!!!!自动获取配置,SMTP部分这里应该勾选“使用与接收邮件服务器相同的设置”而不是截图中的第三项,于是发邮件不成功,请看截图。

    附autodiscover.xml文件和微软自己的注释

    autodiscover.xml
    <?xml version="1.0" encoding="utf-8"?>
    <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>POP3</Type>  
            <Server>pop.exmail.qq.com</Server>
    <LoginName>test@domain.net</LoginName>
            <Port>995</Port>  
            <DomainRequired>off</DomainRequired>  
            <SPA>off</SPA>  
            <SSL>on</SSL>  
            <AuthRequired>on</AuthRequired> 
          </Protocol>  
          <Protocol> 
            <Type>SMTP</Type>  
            <Server>smtp.exmail.qq.com</Server>
    <LoginName>test@domain.net</LoginName>
            <Port>465</Port>  
            <DomainRequired>off</DomainRequired>  
            <SPA>off</SPA> 
            <SSL>on</SSL>  
            <AuthRequired>on</AuthRequired>  
            <SMTPLast>on</SMTPLast> 
          </Protocol> 
        </Account> 
      </Response> 
    </Autodiscover>
    官方autodiscover.xml注释

    <!-- RESPONSE FROM THE SERVER -->
    <?xml version="1.0" encoding="utf-8" ?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    <!-- Response: Required
    This tag serves as an indication that the retrieved XML is an Autodiscovery Response
    -->
    <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
    <!-- User: Optional
    This tag gives user-specific information.  Autodiscover must be UTF-8 encoded.
    -->
    <User>
    <!-- DisplayName: Optional
    The server may have a good formal display name.  The client can decide to accept it or change it.  This will save the user time in the default case.
    -->
    <DisplayName>John Doe</DisplayName>
    </User>

    <!-- Account: Required
    This tag specifies the type of account, such as Email vs Newsgroups, vs SIP server, etc.
    -->
    <Account>
    <!-- AccountType: Required
    This value indicates the type of the account.
    VALUES:
    email: The values under this Account tag indicate configuration settings for an email server.
    nntp: The values under this Account tag indicate configuration settings for a NNTP server. (not used by Outlook 2007)
    -->
    <AccountType>email | nntp</AccountType>

    <!-- Action: Required
    This value indicates if the goal of this account results is to provide the settings or redirect to another web server that can provide results.
    VALUES:
    redirectUrl: If this value is specified, then the URL tag will specify the http: or https: URL containing the Autodiscover results to be used.  In order to prevent the server from being able to send the client into an infinite loop, the client should stop redirecting after 10 redirects.
    redirectAddr: If this value is specified, then the XML tag will specify the e-mail address that Outlook should use to execute Autodiscover again.  In other words, the server is telling the client that the e-mail address the client should really be using for Autodiscover is not the one that was posted, but the one specified in this tag. 
    settings: If this value is specified, then the XML will contain the settings needed to configure the account.  The settings will primarily be under the PROTOCOL tag.
    -->
    <Action>redirectUrl | redirectAddr | settings</Action>

    <!-- RedirectUrl: Required if ACTION tag has value of 'redirectUrl'. Otherwise this tag must not exist.
    The value will be a https: URL that the client should use to obtain the Autodiscover settings or a http: URL that the client should use for further redirection.
    -->
    <RedirectUrl>redirect.URL</RedirectUrl>

    <!-- RedirectAddr: Required if ACTION tag has value of 'redirectAddr'. Otherwise this tag must not exist.
    The value will be an email address that the client should use to rediscover settings using the Autodiscover protocol.
    -->
    <RedirectAddr>email@address</RedirectAddr>

    <!-- Image: Optional
    This is a JPG picture to brand the ISP configuration experience with. The client can choose whether or not they download this picture to display. (not used by Outlook 2007)
    -->
    <Image>http://path.to.image.com/image.jpg</Image>

    <!-- ServiceHome: Optional
    This is a link to the ISP's Home Page. The client can choose whether or not they expose this link to the user. (not used by Outlook 2007)
    -->
    <ServiceHome>http://web.page.com</ServiceHome>

    <!-- Protocol: Required if ACTION tag has value of 'settings'. Otherwise, this tag must not exist.
    The tag encloses the specifications for a single account type.  The list of Protocol tags are in order of preference of the server.  The client may over ride the preference.
    -->
    <Protocol>
    <!-- TYPE: Required.
    The value here specifies what kind of mail account is being configured.
    POP3: The protocol to connect to this server is POP3. Only applicable for AccountType=email.
    SMTP: The protocol to connect to this server is SMTP. Only applicable for AccountType=email.
    IMAP: The protocol to connect to this server is IMAP. Only applicable for AccountType=email.
    DAV: The protocol to connect to this server is DAV. Only applicable for AccountType=email.
    WEB: Email is accessed from a web browser using an URL from the SERVER tag. Only applicable for AccountType=email. (not used by Outlook 2007)
    NNTP: The protocol to connect to this server is NNTP. Only applicable for AccountType=nntp. (not used by Outlook 2007)
    -->
    <Type>POP3 | SMTP | IMAP | DAV | WEB | NNTP</Type>

    <!-- ExpirationDate: Optional.
    The value here specifies the last date which these settings should be used. After that date, the settings should be rediscovered via Autodiscover again. If no value is specified, the default will be no expiration.
    -->
    <ExpirationDate>YYYYMMDD</ExpirationDate>

    <!-- TTL: Optional.
    The value here specifies the time to live in hours that these settings are valid for. After that time has elapsed (from the time the settings were retrieved), the settings should be rediscovered via Autodiscovery again. A value of 0 indicates that no rediscovery will be required. If no value is specified, the default will be a TTL of 1 hour.
    -->
    <TTL>168</TTL>

    <!-- Server: Required.
    The value here specifies the name of the mail server corresponding to the server type specified above.
    For protocols such as POP3, SMTP, IMAP, or NNTP, this value will be either a hostname or an IP address.
    For protocols such as DAV or WEB, this will be an URL.
    -->
    <Server>mail.contoso.com</Server> <!--IP Addr or DNS name of server-->

    <!-- Port: Optional.
    The value specifies the Port number to use.  If no value is specified, the default settings will be used depending on the mail server type.  This value is not used if the SERVER tag contains an URL.
    -->
    <Port>110</Port>

    <!-- LoginName: Optional.
    This value specifies the user's login.  If no value is specified, the default will be set to the string preceding the '@' in the email address.  If the Login name contains a domain, the format should be <Username>@<Domain>.  Such as JoeUser@SalesDomain.
    -->
    <LoginName>johndoe</LoginName>

    <!-- DomainRequired: Optional.  Default is off.
    If this value is true, then a domain is required during authentication.  If the domain is not specified in the LOGINNAME tag, or the LOGINNAME tag was not specified, the user will need to enter the domain before authentication will succeed.
    -->
    <DomainRequired>on | off</DomainRequired>

    <!-- DomainName: Optional.
    This value specifies the user's domain. If no value is specified, the default authentication will be to use the e-mail address as a UPN format <Username>@<Domain>. Such as JoeUser@SalesDomain.
    -->
    <DomainName></DomainName>

    <!-- SPA: (Secure Password Authentication) Optional.
    This value specifies whether or not secure password authentication is needed.
    If unspecified, the default is set to on.
    -->
    <SPA>on | off</SPA>

    <!-- SSL: Optional.
    This value specifies whether secure login is needed.
    If unspecified, the default is set to on.
    -->
    <SSL>on | off</SSL>

    <!-- AuthRequired: Optional.
    This value specifies whether authentication is needed (password).
    If unspecified, the default is set to on.
    -->
    <AuthRequired>on | off</AuthRequired> <!-- Optional: Is Authentication required? -->

    <!-- UsePOPAuth: Optional.
    This value can only be used for SMTP types.
    If specified, then the authentication information provided for the POP3 type account will also be used for SMTP.
    -->
    <UsePOPAuth>on | off</UsePOPAuth>

    <!-- SMTPLast: Optional.  Default is off.
    If this value is true, then the SMTP server requires that email be downloaded before sending email via the SMTP server.  This is often required because the SMTP server verifies that the authentication succeeded when downloading email.
    -->
    <SMTPLast>on | off</SMTPLast>
    </Protocol>
    </Account>
    </Response>
    </Autodiscover>
    
    


    电脑知识收藏夹 http:// www.x2009.net




    2016年12月17日 3:33

全部回复

  • 这个功能我也只是在企业的域环境配置公司邮箱的时候用过,域成员用自己的帐户密码登录公司内网后 Outlook 可以自动发现并配置公司邮箱。但即便这样有些个别的设置自动刷出来也是有小错需要用户自行修正的。比如我们公司的邮箱 Outlook 总是把邮箱地址自动发现为 UserPIN@Domain.companyname.com,需要用户自己删掉 Domain 修 正为 UserPIN@companyname.com。

    至于非企业环境的个人用邮箱,尤其是大众式的免费邮箱,哪些邮箱支持这个功能,哪些自动发现的配置文件会有问题,这个就真不好说了。


    Alexis Zhang

    http://mvp.microsoft.com/zh-cn/mvp/Jie%20Zhang-4000545
    http://blogs.itecn.net/blogs/alexis

    推荐以 NNTP Bridge 桥接新闻组方式访问论坛。

    本帖是回复帖,原帖作者是楼上的 "哈哈大侠"

    | 首先解释一下,OUTLOOK可以自动配置邮件的服务器设置(POP3/IMAP/EXCHANGE等),这个功能就叫autodiscover(自动发现),但是在中文社区几乎找不到什么可用的信息,英文的翻了几个,有点不大懂,自己看了官方给个注释,发现根本配不出来

    2016年12月18日 1:50
    版主
  • 如果愿意帮忙的话,希望您能仔细看一下我写的内容,这个配置文件根本就无关免费收费邮箱还是自建邮箱。我贴出的微软的链接,也没有任何地方表明需要自己搭建,甚至连服务器方面都没有要求,因为从XML的注释你也看到了,它仅仅是一个配置文件。

    我配置好了一部分(看,可以自动获取配置文件了),但是可能是英文理解能力不够好,对于注释部分没有找到适合我要的那个属性(仅仅是截图上那个一个故障,其他都没问题了!就差这一个地方)

    请注意!它只是一个配置文件,配置如何去访问我的服务器,至于什么免费?收费?只要他们支持我想要的POP3,IMAP就可以啊。这些功能即便是免费邮箱也仅有极少数不提供的。

    我这是第二次提问了,上一位回答者也是和你差不多思路,仅仅在域环境用,于是也没细看,我自己调整了好久,其他都调整好了,只差这一步了。

    我在想如果您配置过邮箱客户端,应该能明白我想要的是什么。能帮我仔细看一下XML的注释吗?看看如何设置那个属性就好。感谢!



    电脑知识收藏夹 http:// www.x2009.net

    2016年12月19日 1:09
  • 你配置的是 QQ 邮箱吗?最好还是咨询一下腾讯邮箱客户服务,当以全手工方式在客户端配置 QQ 邮箱时,是否需要勾选 SMTP 服务器需要验证。

    我不是在纠结邮箱是免费还是收费,而是说不同的邮箱会对 SMTP 服务器是否需要验证、会对是否使用与接受邮件服务器相同的设置有不同的要求。最早邮件客户端在没有自动发现功能之前,配置邮箱所有的参数都需要向邮箱服务提供商问明白之后自己配置。自动发现功能的目的就是为我们省去这个步骤,通过配置文件自动添加所需的参数设置。

    TechNet 那篇文章只是给您做一个实例说明,它并没有拿 QQ 邮箱做例子啊,所以如果您拿这个例子为蓝本做修改,添加 QQ 邮箱所需的参数,是否与邮箱的实际要求一致,还是需要考证一下的。


    Alexis Zhang

    http://mvp.microsoft.com/zh-cn/mvp/Jie%20Zhang-4000545
    http://blogs.itecn.net/blogs/alexis

    推荐以 NNTP Bridge 桥接新闻组方式访问论坛。

    本帖是回复帖,原帖作者是楼上的 "哈哈大侠"

    | 如果愿意帮忙的话,希望您能仔细看一下我写的内容,这个配置文件根本就无关免费收费邮箱还是自建邮箱。我贴出的微软的链接,也没有任何地方表明需要自己搭建,甚至连服务器方面都没有要求,因为从XML的注释你也看到了,它仅仅是一个配置文件。

    2016年12月19日 12:17
    版主
  • 那篇文章是没有以这家为例子,甚至没有SMTP的例子,而且这个注释可以看出,这是2006年定制的标准,而2006年邮箱协议已经是很通用标准了(POP3,SMTP都是很常见的),SMTP也必然要 勾选我说的那个选项,OUTLOOK早期版本也有对应的设置,那么我想这个XML文件必然也是支持的,不然设计出一个标准却不符合当代的情况(甚至自身的邮箱也很大众),有何意义呢。你看,这玩意支持的协议还挺多的呢(POP3 | SMTP | IMAP | DAV | WEB | NNTP),说明也是有用心去设计的。

    我也说啦,主要自身英文能力不大行……哎,所以能不能帮忙搜搜谷歌什么的……

    (最近几天工作忙,才回来回复不好意思)



    电脑知识收藏夹 http:// www.x2009.net

    2016年12月28日 6:53