Thunderbird autodiscovery.xml



If you're trying to use autodiscovery with Thunderbird 68.1.0 to handle automatic account creation for a non Exchange server (IMAP, POP3, SMTP) discovery only works if the server advertises SPA (Secure Password Authentication).

If SPA is missing or off autodiscovery will fail as the servers detected by Thunderbird are rejected because authentication methods are unset. The rejection is accompanied by a message in the error console: "No valid configs found in AutoDiscover XML".


Sample request/response below:

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
      <Request>
        <EMailAddress>x@y.z</EMailAddress>
    <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
  </Request>
</Autodiscover>


<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
  <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
    <Culture>en:us</Culture>
    <User>
      <DisplayName/>
      <EMailAddress>x@y.z</EMailAddress>
    </User>
    <Account>
      <AccountType>email</AccountType>
      <Action>settings</Action>
      <Protocol>
        <Type>IMAP</Type>
        <Server>servername</Server>
        <Port>993</Port>
        <SSL>on</SSL>
        <AuthRequired>on</AuthRequired>
        <SPA>on</SPA>
        <LoginName>x@y.z</LoginName>
      </Protocol>
      <Protocol>
        <Type>SMTP</Type>
        <Server>servername</Server>
        <Port>465</Port>
        <SSL>on</SSL>
        <AuthRequired>on</AuthRequired>
        <SPA>on</SPA>
        <LoginName>x@y.z</LoginName>
      </Protocol>
    </Account>
  </Response>

</Autodiscover>

Photo by Aurélien - Wild Spot on Unsplash