Mail Attachment DownloaderVersion 4.0Version 3.x

Support for modern authentication in Outlook, Microsoft 365, Exchange and Google

How Mail Attachment Downloader signs in to Microsoft 365, Outlook.com, Exchange and Gmail with modern authentication, and what IT needs to know.

The Mail account and server configuration window with the Microsoft 365 tile picked, Connects with Microsoft Graph, and This is a shared mailbox ticked

Mail Attachment Downloader signs in to Microsoft 365, Outlook.com, Exchange Online and Gmail with modern authentication (OAuth 2.0). You sign in on Microsoft’s or Google’s own page in your browser, and the program never sees your password. It keeps only the sign-in (a token), encrypted for your Windows account.

This post covers version 4.0. Everything here is in the Free edition too, except where it says PRO.

New in 4.0

  • A tile for each big provider: Gmail, Outlook.com, Microsoft 365, Yahoo, AOL, Exchange and Other. Type your address and the right one is picked, also on your own domain: the program looks up its mail records.
  • The Microsoft 365 tile connects with Microsoft Graph, the way Microsoft recommends.
  • Sign in in a Private window, so an account your browser is already signed in to isn’t used by mistake. The Permissions tab shows what was Requested and Granted.
  • Setup guides for 150+ providers that need an app password, and a plain explanation when a provider turns a password down.

Which settings should I pick?

Your emailTileConnects withHow you sign in
Microsoft 365 (work or school)Microsoft 365Microsoft GraphMicrosoft, in your browser, or App registration (PRO)
Outlook.com, Hotmail, LiveOutlook.comIMAPMicrosoft, in your browser
Gmail, Google WorkspaceGmailIMAPGoogle, in your browser, an app password, or App registration (PRO)
Exchange on your own serverExchange, with On-premises only tickedExchange Web Services (EWS)Your password, or Windows sign-in
Yahoo, AOL, iCloud and othersYahoo, AOL, or OtherIMAPAn app password, with the setup guide

A Microsoft 365 account can also use Use IMAP instead or Use Exchange Web Services instead on the Server tab, still signing in with Microsoft. Prefer Microsoft Graph: Microsoft is switching EWS off in Exchange Online (from October 2026, and removing it in April 2027, by Microsoft’s schedule). If an older Microsoft 365 account still uses EWS, pick the Microsoft 365 tile and sign in again.

The Mail account and server configuration window with the Microsoft 365 tile picked from the email address, a browser sign-in, and the Server, Sending mail, App registration and Permissions tabs
The account’s settings: the tile is picked from your address, and Microsoft 365 connects with Microsoft Graph.

Signing in with your browser

  1. Click Add account and type your address in Email address. Check the tile against the table. With a browser sign-in, there is no password box.
  2. Click Test Connection. A sign-in window opens, then your browser. Pick Private window if your browser is signed in to another account.
  3. Sign in as the same account and allow every permission. On Google, tick every checkbox: unticked boxes aren’t granted.
  4. Go back to the program. It continues by itself and shows Connection works. Click Save.

If the browser didn’t open, click Browser didn’t open?. Keep Remember ticked so scheduled downloads can sign in by themselves. For a Microsoft 365 shared mailbox, tick This is a shared mailbox on the Server tab (PRO).

The Sign in to Microsoft 365 window for finance@contoso.com: steps Sign in with Microsoft, Allow access, Continue; Use my default browser, Private window, waiting for the browser, Browser didn't open?, the permissions the app asks for and Copy for IT
Signing in to Microsoft 365: the program waits while you sign in in your browser, and lists what it asks Microsoft for.

Yahoo, iCloud and others: app passwords

Yahoo, AOL, iCloud and many other providers don’t offer OAuth to other programs. They need an app password: a separate password for one program, which you can cancel without changing your main one. Gmail accepts one too if 2-Step Verification is on, but the browser sign-in is easier.

Type your address, then click Set up <provider>… in the note under Sign in. The guide opens the provider’s page to create the password, checks what you paste, and tests it. Click Use this password, then Save the account. See what each provider needs.

The Set up AT&T Mail guide: open the provider's help, paste the secure mail key, test the connection, and Use this password
A setup guide: open the provider’s page, paste the password, test it, then “Use this password”.

Typed your regular password instead? The program explains what the provider wants: click Open setup guide.

Yahoo Mail turned down the sign-in: Yahoo only accepts an app password, with How to fix it and an Open setup guide button
When a provider turns down a password, the program says what it needs.

For IT administrators

By default the program signs in to Gmail, Outlook.com and Microsoft 365 through our own app, and each user grants it access. Most organizations only need to grant admin consent once. The sign-in window’s Copy for IT button copies the account, the client ID and the permissions requested, never passwords, tokens or secrets.

Built-in Microsoft app: Mail Attachment Downloader, client ID 327a7151-62e7-4ab6-af0a-55120ca90505, a multi-tenant desktop app with delegated permissions only and no client secret.

PermissionUsed for
Mail.ReadWrite, Mail.SendMicrosoft Graph: reading, moving and marking email, and rules that send email
Mail.ReadWrite.Shared, Mail.Send.SharedShared mailboxes only (PRO)
IMAP.AccessAsUser.All, SMTP.SendMicrosoft 365 and Outlook.com over IMAP
EWS.AccessAsUser.AllExchange (EWS) only
https://mail.google.com/Gmail over IMAP. Google has no narrower IMAP permission.
offline_accessStaying signed in for scheduled downloads

Your own app registration (PRO): pick App registration under Sign in and fill in the App registration tab. For Microsoft 365 (Graph, EWS or IMAP), a Client ID, Client secret and Tenant ID give app-only access, which password resets and sign-in policies don’t stop. For Gmail and Google Workspace, enter your own Google Cloud OAuth client; users still sign in once, through your app. It isn’t available for POP3, Exchange on your own server or personal Microsoft accounts. Guides: Microsoft Entra and Google Workspace. Read the security notes on app-only access first.

A Microsoft 365 account's window with App registration chosen: Client ID, a kept client secret and Tenant ID, made-up values
Your own app registration: Client ID, Client secret and Tenant ID.

The Windows service (PRO Rules Server): browser sign-ins go with the service when it is installed. If one is revoked later, sign in again in the program, then click Reinstall… on Schedule › Service schedule. For Microsoft 365, app-only access avoids this.

Connection or sign-in problems?

Read the message above Test Connection: it gives the mail server’s own words. Then open Troubleshoot › Connection diagnostics, which shows each stage of the latest sign-ins with timings and the error.

What you seeWhat to do
“Some permissions weren’t granted”Sign in again and allow every permission. See granting the permissions.
Microsoft asks for admin approval, or 403 ForbiddenSend your IT team the Copy for IT text and this post.
Signed in as the wrong accountSign in again in a Private window.
A Gmail or Microsoft account keeps failingTroubleshoot › Clear saved sign-in, then Test Connection.
A Microsoft 365 account on EWS stopped connectingPick the Microsoft 365 tile and sign in again.

Still stuck? Tick Verbose logging in Settings › Logs and support, try again, and click Submit a bug report…. Reports leave out passwords and tokens.

Free and PRO

Browser sign-in, the setup guides and Connection diagnostics are in the Free edition. The PRO editions add shared mailboxes, your own app registration, sending mail from your accounts (for rules and email notifications), and, from PRO Rules Client, uploads to OneDrive and SharePoint, which sign in on their own in Cloud connections.

Related

Feedback on sign-in? Contact us.