Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Azure and Microsoft 365 / How to Increase Attachment Size Limit in Outlook

March 15, 2024 Azure and Microsoft 365Microsoft Office

How to Increase Attachment Size Limit in Outlook

There is a 20 MB limit on the maximum attachment size in the Outlook email client (including the latest versions of Outlook for Office 365 and Office 2019/2016). It doesn’t matter if a single large file or several small ones are attached — the total size of attachments would not exceed 20 MB.

When trying to send an email larger than 20 MB using Outlook, the following error message appears:

The attachment size exceeds the allowable limit.

The attachment size exceeds the allowable limit.

The file you're attaching is bigger than the server allows. Try putting the file in a shared location and sending a link instead.

outlook 365 error: The file you're attaching is bigger than the server allows. Try putting the file in a shared location and sending a link instead

If your email server and the recipient’s server support large email sizes, you can increase the maximum attachment size limit in Outlook.

Increasing the Maximum Attachment Size Limit in Outlook

You can change the maximum attachment size limit in Outlook only through the registry. There is no such option in the Outlook GUI.

  1. Close Outlook and open the Registry Editor (regedit.exe);
  2. Depending on your version of Outlook, navigate to the following registry key:
    • Outlook 2019/2016 and Outlook for Office 365 — HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Preferences
    • Outlook 2013 — HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Preferences
    • Outlook 2010 — HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences
  3. Specify a new attachment size limit in the DWORD registry parameter named MaximumAttachmentSize. The value is specified in KB. For example, to increase the attachment size to 50 MB, specify here the decimal value 51200. By default, the attachment size limit is 20 MB (20480 KB). To completely disable the limit, change this value to 0; MaximumAttachmentSize Outlook registry parameter
    Note. If there is no MaximumAttachmentSize parameter in this registry key, create it manually: New -> DWORD (32-bit) Value.
  4. Create the MaximumAttachmentSize registry parameter with the same value in the reg key HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\x.0 \Outlook\Preferences;
    You can set a limit on the size of Outlook attachments in the registry from the command prompt. For example, to set the limit of 50 MB for Outlook in Office 365, run the command:
    reg add HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Preferences\ /v "MaximumAttachmentSize" /t REG_DWORD /d 51200 /f
    reg add HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles\Outlook\Preferences\ /v "MaximumAttachmentSize" /t REG_DWORD /d 51200 /f
  5. Close the Registry Editor and restart Microsoft Outlook.
You can centrally configure the attachment size in Outlook on users’ computers in the Active Directory domain by deploying a registry parameter through a GPO.

After the changes are made, you can attach larger files to your Outlook email (in our example, we have attached a 50 MB PST file).

Increase max attachment size Outlook 2013

If your or recipient’s email server doesn’t support large emails, you will receive an NDR (Non-delivery report) when trying to send a large email message from the Outlook or PowerShell script. This NDR will contain information that the maximum attachment size has been exceeded. Here are sample NDR messages you can get:

  • Attachment size exceeds the allowable limit
  • 552: Message size exceeds the maximum permitted
  • System Undeliverable, message size exceeds outgoing message size limit
  • The message was not sent; reduce the message size and try again
  • 552 5.3.4 Message size exceeds the fixed maximum message size
  • Error 0x80040610: The message being sent exceeds the message size established for this user
  • Maximum size of appendable message has been exceeded


If you send large emails only within your organization (local network), you can set any attachment size in Outlook. But most public email providers don’t accept emails larger than 25 MB.

The following table contains the maximum attachment size limits for most popular email services:

Mail serviceMaximum message size
Gmail25 Mb
Google Apps20 Mb (50 Mb for premier )
Microsoft Exchange Online (Office 365)25 Mb
Yahoo/ AOL25 Mb
Zoho Mail20 Mb

Attachment Size Limit in Exchange and Microsoft 365

In an on-premises Exchange Server, maximum email size limits are configured in several places (at the server, mailbox, and connector levels). You can view the current limits using the Exchange Management Shell:

Get-TransportConfig | ft MaxSendSize, MaxReceiveSize
Get-ReceiveConnector | ft Name, MaxSendSize
Get-SendConnector | ft Name, MaxMessageSize
Get-Mailbox maxbak |ft Name, MaxSendSize, MaxReceiveSize

In Exchange Online (Microsoft 365), you can set the maximum message size limit in the settings of each mailbox individually. You can check current limits through the Exchange Admin Center or with PowerShell. Connect to Exchange Server using a remote PowerShell session or using the Exchange Online PowerShell module(EXO v3) module.

For new mailboxes, restrictions on the max size of incoming and outgoing emails are set in the plan settings:

Get-MailboxPlan | fl Name,MaxSendSize,MaxReceiveSize,isdefault

exchange online (microsoft 365) get maxsendsize limit

By default, Microsoft 365 has a limit of 35 MB for outgoing and 36 MB for incoming emails.

For a specific mailbox, you can view or change the limits for outgoing email as follows:

Get-Mailbox [email protected]| fl MailboxPlan,MaxSendSize
Set-Mailbox [email protected] -MaxReceiveSize 50MB -MaxSendSize 50MB

office 365: set maximum email size using powershell

If you mainly send emails with large email attachments only inside Microsoft datacenters, it is recommended to set the limit to 150 MB.
2 comments
7
Facebook Twitter Google + Pinterest
previous post
Hyper-V: Configuring Automatic Startup and Boot Order of VMs
next post
Windows Server Core: Installing Active Directory Domain Controller

Related Reading

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

Hardware Graphics Acceleration Causes Visual Glitches in Microsoft...

December 23, 2024

Rollback Microsoft Office to an Earlier Version After...

December 10, 2024

Mapping SharePoint Online Library as Network Drive in...

July 15, 2024

Automatic Outlook User Profile Configuration with ZeroConfigExchange

May 21, 2024

2 comments

Patrice December 22, 2022 - 9:59 pm

The problem of this solution is many mail servers in the world are not allowing attachments of this size !

Another option is to use a third party product like Attach2Cloud, this product allows uploading to OneDrive, SharePoint or Teams the attachments directly from inside Outlook in a few seconds through a very easy-to-use control center.
The limit of the attachment size is then the limit of the size of the cloud service (which is huge and could be 250GB for OneDrive by example! )
And the mail that goes through the servers is only a few kb only as the attachments are links to the cloud service.

Reply
Umair May 18, 2024 - 12:14 am

Editing the registry worked for me. Thanks.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Outlook Keeps Asking for Password on Windows
  • Checking User Sign-in Logs in Entra ID (Microsoft 365)
  • How to Manually Configure Exchange or Microsoft 365 Account in Outlook 365/2019/2016
  • Search and Delete Emails from User Mailboxes on Exchange Server (Microsoft 365) with PowerShell
  • Blank Sign-in Screen in Office 365 Apps (Outlook, Teams, etc.)
  • Removing Built-in Teams Chat in Windows 11
  • Fix: Microsoft Outlook Search Not Working on Windows 10/11
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top