Join our Newsletter — 33% off our NHI Course
Home› Guides› Autodiscover for Beginners: How Email Apps Set Themselves…
Guide Email & Communications Security

Autodiscover for Beginners: How Email Apps Set Themselves Up and How It Can Leak

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 11 min read
On this page

Autodiscover is a Microsoft feature that lets email apps find a mailbox's settings from just an address and password.

This guide is for anyone who sets up email for a small business, or wonders how Outlook knew their settings. You do not need to manage servers. If your business has its own email domain, it helps to know how Autodiscover works and where it has leaked passwords in the past.

In short

  • Autodiscover lets Outlook and other apps set up a mailbox from the email address and password alone.
  • The app looks up your email domain on the internet to find the right server, usually through a name record such as autodiscover.example.com.
  • In 2021, researchers showed that some apps, when they could not find the right address, tried addresses outside the company and sent passwords there.
  • Setting up your domain's Autodiscover record correctly, and using modern sign-in instead of plain passwords, lowers the risk.

What you will learn

  • Explain what Autodiscover does in one sentence.
  • Describe how an email app finds its settings.
  • Spot why a missing or wrong record can send a password to the wrong place.
  • Check the basic settings with your email provider or IT supplier.
Internet address book (DNS)
the system that turns names like example.com into the addresses computers use.
Automatic set-up (Autodiscover)
the way an email app asks the mail service for its own settings.
Plain password sign-in (basic authentication)
an older way of signing in that sends the password itself with each request.

What is Autodiscover?

Think of a new member of staff arriving at a big office. They give their name at reception and get a welcome pack with their desk, floor and phone number. They did not need to know any of that in advance.

Autodiscover is that reception desk for email. With Microsoft Exchange, a user types only an email address and password, and Outlook sets itself up [1]. Autodiscover sends back details such as the user's name and where the mailbox lives. It also sends web addresses for things like calendars and the address book [1].

To find the reception desk, the app uses the domain part of the email address. For an address ending in example.com, it may try web addresses such as example.com or autodiscover.example.com [1]. Apps and scripts also use Autodiscover to find the address of Exchange Web Services, a way for software to read and manage mail [1].

Where the comparison stops working: a new starter can see which desk is real reception. An email app cannot see. If the right desk is missing, some apps have gone on asking other desks, and handed over the password to whoever answered.

Why does it matter?

Autodiscover handles passwords. In 2021, a research team set up web addresses that some apps reached by mistake. This happened when the app could not find its own company's settings. In about four months, the team received 372,072 Windows domain credentials [3].

If you run a small business with its own email domain

What could happen: a missing Autodiscover record makes some apps look elsewhere for settings.

Check this: ask your email provider or IT supplier whether your domain's Autodiscover record is set up.

Next: Exchange Online for Beginners

If you look after company laptops

What could happen: an older email app still signs in by sending the password itself.

Check this: confirm that mail apps use modern sign-in, not plain password sign-in.

Next: DNS Security for Beginners

If you run scripts or apps that read mailboxes

What could happen: a script with a stored password uses Autodiscover and sends that password in a weak form.

Check this: give each script its own identity and a modern, token-based sign-in.

Next: Non-Human Identities for Beginners

What does it look like?

Here is a made-up view of the name records an IT helper might check for a small business domain.

Example only. All values are made up.

DNS records for example.com (FAKE)
Name                       Type    Points to
example.com                MX      mail.example.com           (1)
autodiscover.example.com   CNAME   mail.example.com           (2)
example.net (alias domain) MX      mail.example.com
autodiscover.example.net   (none)                             (3)
Mail app sign-in:          Plain password (basic)             (4)
  1. Tells the internet where to deliver mail for the domain.
  2. Points apps to the right place for Autodiscover. In a real file, this line would name your provider's server.
  3. A second domain with no Autodiscover record. Apps using this address must look elsewhere.
  4. Plain password sign-in sends the password with each request.

Why this is risky: the alias domain has no Autodiscover record, and the app signs in with a plain password. That is the mix the 2021 research found could leak passwords.

The safer way: Microsoft recommends an Autodiscover record for every domain you use for mail, including aliases [1]. Pair that with modern sign-in.

How does it work?

  1. The user types an address and password. Outlook takes the domain from the email address [1].
  2. Outlook tries a set list of places. Microsoft documents the order. It includes a directory record inside company networks, the domain itself, the autodiscover name, safe web redirects and a special service record [2].
  3. The server checks who is asking. The app must sign in to get the settings. Microsoft has turned off plain password sign-in in Exchange Online, including for Autodiscover, in favour of modern sign-in [4].
  4. Settings come back. The app gets its mailbox location and service addresses, and finishes setting up [1].
  5. Where it went wrong in 2021. Some apps could not find a company's Autodiscover address. They then "backed off" to a shorter name, outside the company. Whoever owned that name received the request, and plain password sign-in exposed the password [3].
Diagram titled How an email app finds its settings, with two rows. The top row, Safer, shows: a user types an email address at example.com; the app asks autodiscover.example.com, which is set up; the company's mail service checks a modern sign-in; settings come back to the app. The bottom row, Risky, shows: a user types an address at a domain with no Autodiscover record; the app cannot find it and tries a shorter name outside the company; a stranger's server answers; the stranger receives a plain password. A note says to set up a record for every mail domain and use modern sign-in.
Figure 1. A correct record and modern sign-in keep the request inside your own mail service.

The researchers advised three things. Block requests to those outside Autodiscover names at the firewall. Turn off plain password sign-in. And app makers should stop apps from trying names outside the company [3].

A worked example

Calla Engel helps out with IT at a small accountancy firm. The firm has two email domains: its main one and an older one kept for clients who still use it.

After reading about the 2021 Autodiscover research, Calla wants to check the firm is set up well. She does not touch any settings herself at first. She asks the firm's IT supplier three questions.

First, does each of the firm's mail domains have an Autodiscover record? The supplier checks. The main domain does. The older domain does not, so the supplier adds one, following the email provider's instructions.

Second, do the firm's mail apps sign in with modern sign-in? The firm uses Exchange Online, where Microsoft has turned off plain password sign-in. The supplier confirms that staff laptops and phones use the current Outlook apps.

Third, does anything else read the mailboxes? This one takes longer. The supplier finds an old scanning tool that emails scanned documents. It uses a saved password for a shared mailbox. The supplier replaces it with a newer method from the provider that uses its own identity, and turns off the old saved password.

Calla writes a short note of what was checked and when. She adds a reminder to check again whenever the firm adds a new email domain.

Myths and mistakes

What people thinkWhat is true
Autodiscover is only about convenience.It handles sign-in details, so a wrong set-up can affect security as well as convenience.
One Autodiscover record covers all our domains.Microsoft recommends a record for every domain used for mail, including aliases [1].
The leak was a server bug that has been fixed for everyone.The research pointed at app behaviour and plain password sign-in. Your own set-up and apps still matter [3].
Only people's mail apps use Autodiscover.Scripts and tools that read mailboxes can use it too [1]. Many have stored passwords.
Certificate warnings during email set-up are harmless.A warning can mean the app reached the wrong server. Report it instead of clicking past [1].

What can I do this week?

  • List every email domain your business uses, including old and alias domains.
  • Ask your email provider or IT supplier whether each one has an Autodiscover record.
  • Check that mail apps on laptops and phones are current and use modern sign-in.
  • Find any scanners, scripts or tools that send or read mail, and how they sign in.
  • Tell staff to report certificate warnings during email set-up.

Checklist

  • Every mail domain is listed, including aliases.
  • Each mail domain has an Autodiscover record that points to the right service.
  • Mail apps use modern sign-in, not plain password sign-in.
  • Old mail apps that only support plain passwords are replaced.
  • Scripts and tools that use mailboxes are listed, each with an owner.
  • Those tools use their own identity and modern sign-in, not a saved user password.
  • Staff know to report certificate warnings when setting up email.

Common questions

Do I need to turn Autodiscover off?

Usually not. Autodiscover is how Outlook and many other apps set themselves up, and turning it off would make set-up much harder. The safer path is to set up the record for each mail domain correctly and make sure apps use modern sign-in.

What was the 2021 Autodiscover leak?

Researchers found that some mail apps, when they could not find a company's Autodiscover address, tried shorter names outside the company. The researchers owned some of those names. Over about four months, they received hundreds of thousands of Windows domain credentials, many sent as plain passwords [3].

Does this affect Microsoft 365 email?

The risk is lower than it was. Microsoft has turned off plain password sign-in in Exchange Online, including for Autodiscover, so apps must use modern, token-based sign-in [4]. Older apps and your own domain records still need checking, especially for alias domains.

How do I check my Autodiscover record?

Ask your email provider or IT supplier, since they manage the records. Microsoft offers a free online connectivity test that checks whether Outlook can connect and use Autodiscover for a mailbox [1]. Check each domain you use for email, not just the main one.

Why do scripts and tools matter here?

Because they often use Autodiscover too, and they tend to have saved passwords that nobody changes. A tool that signs in with a plain password can leak it just like an old mail app. Give each tool its own identity and a modern sign-in.

Where next?

Ready for the detail? Read the practitioner guide: Exchange Online Security Guide. It goes further into authentication policies, mail flow controls and monitoring for an Exchange Online tenant.

Also useful:

Related NHI Mgmt Group resources: Exchange Web Services retirement, DNS in Active Directory for Beginners and Non-Human Identities for Beginners.

Key terms

Autodiscover
The way email apps find the correct Exchange settings for a mailbox.
DNS
The naming system that turns domain names into the addresses computers use.
Basic authentication
An older sign-in method that sends the user name and password with each request, without strong protection.
Modern authentication
Newer sign-in methods that use tokens and stronger checks instead of sending a password each time.
Exchange Online
Microsoft's cloud-hosted email, calendar and contacts service within Microsoft 365.
Exchange Web Services
A way for tools and scripts to read and manage Exchange mailboxes.

Sources and further reading

  1. Microsoft Learn, "Autodiscover service in Exchange Server", last updated 30 April 2025. https://learn.microsoft.com/exchange/architecture/client-access/autodiscover (accessed 2 Dec 2026).
  2. Microsoft Support, "Outlook 2016 implementation of Autodiscover". https://support.microsoft.com/en-US/Outlook/outlook-2016-implementation-of-autodiscover (accessed 2 Dec 2026).
  3. Amit Serper, Guardicore Labs, "Autodiscovering the Great Leak", 22 September 2021, now published on the Akamai blog. https://www.akamai.com/blog/security/autodiscovering-the-great-leak (accessed 2 Dec 2026).
  4. Microsoft Learn, "Deprecation of Basic authentication in Exchange Online", last updated 16 July 2026. https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.