Open Bug 1806915 Opened 2 years ago Updated 1 year ago

AutoDiscover (Exchange) fails when DNS A record domain.com missing or url-redirected

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: siil, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

autoconfig works perfectly using schema:
https://autoconfig.mydomain.com/mail/config-v1.1.xml
no issues here.

if previous is not configured, autoconfig usually works perfectly using exchange schema:
https://autodiscover.mydomain.com/autodiscover/autodiscover.xml

but in case of:
a) DNS has no A record for mydomain.com (no: mydomain.com. IN A 1.2.3.4)
or
b) ISP does URL 301/302 redirect for mydomain.com to another domain

https://autodiscover.mydomain.com/autodiscover/autodiscover.xml contents are partially ignored for accounts SSL/TLS configuration, although these are correct in autodiscover.xml.
all hosts - side.mydomain.com, autoconfig.mydomain.com, autodiscover.mydomain.com, have valid certs and http redirect to https.

example of b) follows, domain/account names are replaced.

  • server names/ports are correctly parsed
  • but take a look at "no SSL"...

Actual results:

2022-12-21 18:57:37 mail.setup INFO Initializing setup wizard
2022-12-21 18:57:37 mail.setup INFO Email account setup dialog loaded.
2022-12-21 18:57:37 mail.setup INFO switching to UI mode start
2022-12-21 18:57:46 mail.setup INFO findConfig()
2022-12-21 18:57:46 mail.setup INFO switching to UI mode find-config
2022-12-21 18:57:46 mail.setup WARN spinner start looking_up_settings
2022-12-21 18:57:46 mail.setup INFO status msg: Looking up configuration…
2022-12-21 18:57:46 mail.setup INFO Requesting https://autoconfig.mydomain.com/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO Requesting https://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO Requesting http://autoconfig.mydomain.com/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO Requesting http://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO Requesting https://live.thunderbird.net/autoconfig/v1.1/mydomain.com
2022-12-21 18:57:46 mail.setup INFO Requesting https://autodiscover.mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO Requesting https://mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO Requesting http://autodiscover.mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO call 0 took 17ms and failed with local file not found
2022-12-21 18:57:46 mail.setup INFO getmx took 37ms
2022-12-21 18:57:46 mail.setup INFO base domain mydomain.com for side.mydomain.com
2022-12-21 18:57:46 mail.setup INFO call 3 took 38ms and failed with MX lookup would be no different from domain
2022-12-21 18:57:46 mail.setup INFO call 0 took 83ms and failed with 404 Not Found at https://autoconfig.mydomain.com/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO call 1 took 82ms and failed with 404 Not Found at https://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO call 1 took 97ms and failed with 404 Not Found at https://mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO call 0 took 105ms and succeeded at https://autodiscover.mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO Exchange Autodiscover gave some results.
2022-12-21 18:57:46 mail.setup INFO call 4 took 107ms and succeeded
2022-12-21 18:57:46 mail.setup INFO Cannot contact server on http://autodiscover.mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO call 2 took 105ms and failed with Another higher call succeeded at http://autodiscover.mydomain.com/autodiscover/autodiscover.xml
2022-12-21 18:57:46 mail.setup INFO call 2 took 126ms and failed with 404 Not Found at http://autoconfig.mydomain.com/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO call 3 took 124ms and failed with 404 Not Found at http://mydomain.com/.well-known/autoconfig/mail/config-v1.1.xml
2022-12-21 18:57:46 mail.setup INFO call 1 took 130ms and failed with 404 Not Found
2022-12-21 18:57:47 mail.setup INFO call 2 took 269ms and failed with 404 Not Found at https://live.thunderbird.net/autoconfig/v1.1/mydomain.com
2022-12-21 18:57:47 mail.setup INFO status msg: Configuration found for a Microsoft Exchange server
2022-12-21 18:57:47 mail.setup WARN all spinner stop found_settings_exchange
2022-12-21 18:57:47 mail.setup INFO found config:
Incoming: imap, side.mydomain.com:993, no SSL, auth: plain, username: userx@mydomain.com, password: not set
Outgoing: smtp, side.mydomain.com:465, no SSL, auth: plain, username: userx@mydomain.com, password: not set
Incoming alt: pop3, side.mydomain.com:995, no SSL, auth: plain, username: userx@mydomain.com, password: not set
2022-12-21 18:57:47 mail.setup INFO switching to UI mode result
2022-12-21 18:57:53 mail.setup INFO Shutting down email config dialog

Expected results:

accounts SSL/TLS configuration should be based on contents of autodiscover.xml regardless of different DNS configuration cases.

See Also: → 1859654
You need to log in before you can comment on or make changes to this bug.