Recommended Free Tools
The correct way to close an IMAP connection depends on your Outlook edition. In Outlook for Mac, set a server-disconnect timer. In classic Outlook for Windows, remove the IMAP account from the app. If you administer Exchange Online, disable IMAP for the mailbox with Set-CASMailbox. Removing an account from Outlook changes only that app’s configuration; it does not delete the mailbox stored with your email provider.
Choose the action that matches your Outlook edition
“Close the connection” can mean three different things: let an idle client disconnect temporarily, stop Outlook from using an account on one computer, or block the IMAP protocol for a Microsoft 365 mailbox. Use the row that matches both your edition and your goal.
As an Amazon Associate I earn from qualifying purchases.
| Outlook environment | Goal | Action | What changes |
|---|---|---|---|
| Outlook for Mac | Disconnect after inactivity | Set Disconnect from server after x minutes under the account’s Advanced settings | Outlook follows a server-connection schedule; the account remains configured |
| Classic Outlook for Windows | Stop this Outlook installation from using the account | Remove the IMAP account through Account Settings | The account configuration is removed from Outlook, while the provider mailbox remains |
| Exchange Online administration | Prevent IMAP protocol access to a mailbox | Run Set-CASMailbox <Alias, Primary SMTP, or UPN> -ImapEnabled $False |
IMAP is disabled for the mailbox, subject to the authenticated user’s own protocol permissions |
What closing an IMAP connection actually does
IMAP keeps the master mailbox on the service
IMAP is designed to synchronize mail that remains on the email service. Outlook displays folders and messages locally while maintaining access to the same mailbox from other devices. Closing a client connection therefore differs from deleting an account or erasing messages: it ends or prevents a connection from one Outlook client, but it does not inherently remove the mailbox or its contents.
IMAP is different from POP
POP downloads messages to a computer and, depending on its settings, may remove them from the server. That behavior can make mail unavailable to phones, tablets, or other computers. Switching protocols simply to avoid a persistent IMAP connection can therefore change where messages are stored and how they are synchronized. Keep IMAP when the mailbox must remain available across several devices.
#1 Best Overall
Temporary disconnect versus account removal
A disconnect timer is appropriate when you want Outlook for Mac to stop maintaining an active server connection after idle time. Removing an account is a stronger local action: Outlook no longer has that account configured on the Windows installation. Neither action is a substitute for disabling IMAP at the service level.
Set an automatic disconnect in Outlook for Mac
Outlook for Mac exposes a connection-scheduling preference for each IMAP account. Use this when you want Outlook to disconnect after a chosen period rather than remove the account.
- Open Outlook from the macOS menu bar.
- Choose Settings.
- Open Accounts.
- Select the IMAP account you want to change.
- Choose Advanced.
- Set Disconnect from server after x minutes to the interval you want.
Microsoft describes this preference as setting a server connection schedule. Choose an interval that allows normal synchronization and message submission before Outlook goes idle. A very short interval can interrupt workflows that depend on an open connection, while a longer interval leaves the client connected for more time.
When the Mac timer is the right choice
- You still need the account in Outlook for reading and sending mail.
- You want to reduce idle connections without changing the mailbox or other devices.
- You are troubleshooting a connection that should end after inactivity rather than disappear from the profile.
When it is not enough
The timer controls Outlook for Mac’s connection behavior. It does not disable IMAP for the mailbox, revoke another user’s access, or stop a phone or second computer from connecting. An administrator-level protocol change is required when the objective is to block IMAP service-wide.
Remove an IMAP account from classic Outlook for Windows
Classic Outlook for Windows does not use the Mac disconnect-timer workflow described above. To stop that installation from connecting with the account, remove the account configuration.
- Open Outlook and select File.
- Choose Account Settings, then choose Account Settings again from the menu.
- On the Email tab, select the IMAP account.
- Choose Remove.
- Confirm the removal when Outlook asks.
This action removes the account configuration from Outlook. It is not a command to delete the mailbox at the email provider, so messages stored in the provider’s mailbox remain available through another configured client or webmail service.
Rank #3
- The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
- ABIS BOOK
Prepare before removing the account
- Send or save any messages still in the Outbox.
- Copy important unsent drafts or local notes to a location you will retain.
- Allow recent changes to finish synchronizing before you remove the account.
- Record the account address and any provider-specific settings needed to add it again.
These precautions matter because removal changes Outlook’s local configuration. A message that exists only as an unsent or not-yet-synchronized local item may not be present in the provider mailbox after the account is removed.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
What removal does not do
Removing the account from one Outlook profile does not close sessions on other devices and does not turn off IMAP for the service. Anyone who still has the account configured elsewhere can continue to use that connection unless the provider or an administrator blocks it.
Disable IMAP for a Microsoft 365 mailbox
If you administer Exchange Online and need to prevent IMAP access rather than merely disconnect one Outlook client, disable the protocol on the mailbox with Exchange Online PowerShell:
Rank #4
Set-CASMailbox <Alias, Primary SMTP, or UPN> -ImapEnabled $False
What the command targets
Replace the placeholder with the mailbox’s alias, primary SMTP address, or user principal name. The command changes the mailbox’s IMAP-enabled setting, so clients that rely on IMAP can no longer use that protocol for the targeted mailbox after the service applies the change.
The shared-mailbox caveat
Microsoft cautions that protocol access follows the authenticated user. Disabling IMAP on a shared mailbox alone may not prevent access when users authenticate with their own accounts and their own protocol access remains enabled. Review the sign-in identity and protocol permissions used by the connection before treating the mailbox-level switch as a complete block.
When an administrator change is appropriate
- Your policy requires IMAP to be unavailable for a mailbox.
- You are retiring an old client or protocol and need enforcement beyond one device.
- You need to control access centrally rather than asking each Outlook user to remove an account.
This is an Exchange Online administration action, not a setting available to an ordinary Outlook user without the required administrative role and PowerShell access.
Best Value
Decide which method fits your goal
| Your objective | Use | Keep in mind |
|---|---|---|
| Let Outlook for Mac disconnect when idle | Mac account Advanced setting | The account stays configured and other devices are unaffected |
| Stop one classic Windows installation from using the account | Remove the account in Account Settings | Save unsent or not-yet-synchronized work first |
| Keep the account available in Outlook but block IMAP at the service | Exchange Online Set-CASMailbox command |
Check the authenticated user’s protocol access, especially for shared mailboxes |
| Disconnect every device immediately | Do not rely on a single Outlook setting | A Mac timer and Windows account removal affect only their respective Outlook installations; service-level control is needed for a central block |
Troubleshoot common IMAP disconnect problems
The Mac setting is missing
Verify that you opened Outlook > Settings > Accounts, selected the IMAP account itself, and entered Advanced. The disconnect preference is associated with the account’s advanced options, not a general macOS network setting. If the account is not configured as IMAP, this specific preference may not apply.
Outlook still connects after removing the Windows account
Check whether another Outlook profile, another Windows user, or a second mail application still contains the account. Removing one configuration does not remove parallel configurations. Also distinguish an existing cached view from a live connection: locally displayed messages can remain visible even after the account is no longer configured.
A shared mailbox remains reachable after IMAP is disabled
Check which identity authenticated to the service. Exchange Online evaluates protocol access for the authenticated user, so a user’s enabled IMAP access can matter even when the shared mailbox itself has IMAP disabled. Review the users and authentication path involved instead of changing only the shared-mailbox object.
You are worried that removing the account deleted messages
Account removal in classic Outlook removes the Outlook configuration; it does not instruct the provider to delete the mailbox. Sign in through another approved client or the provider’s web interface to verify server-side mail. The main local risk is losing unsent or not-yet-synchronized work, which is why it should be saved before removal.
You are considering POP as a workaround
Do not change to POP solely to avoid an IMAP connection without checking the storage consequences. POP downloads mail to a computer and may remove messages from the server according to its settings, which can prevent other devices from seeing them. IMAP remains the recommended method when the same mailbox must be checked from a phone, laptop, and tablet.
Reconnect later without changing the mailbox
If you used the Mac timer, change the same Disconnect from server after x minutes preference when you need a different schedule. If you removed the account from classic Outlook for Windows, add it again through Outlook’s account setup using the provider’s current IMAP details. Re-adding the account recreates a client configuration; it does not restore local items that were never synchronized to the provider, so preserve those items before removal.
Quick Recap
Practical checklist
- Identify whether you use Outlook for Mac, classic Outlook for Windows, or Exchange Online administration.
- Decide whether you need an idle disconnect, local account removal, or a protocol block.
- Keep IMAP when multiple devices need synchronized access to the same mailbox.
- Save Outbox messages, drafts, and other unsynchronized work before removing a Windows account.
- After a service-level change, check the identity that authenticates the connection, especially with shared mailboxes.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

