OneDrive and SharePoint Online serve as file-sharing hubs that enable extensive collaboration. Microsoft Outlook, on the other hand, is intended for professional communication and has a limited message size (35 MB by default) that includes both content and attachments.
However, in situations where external sharing is disabled across SharePoint Online or OneDrive, users often rely on Outlook to share files with external partners, stakeholders, or vendors. In such cases, you may need to increase the mailbox message size limit (up to 150MB) to ensure attachments can be sent successfully.
- In the Exchange admin center, navigate to Recipients»Mailboxes, and select the desired mailbox.
- Go to the Mailbox tab and locate Mail flow settings, then click Manage message size restriction under Message size restriction.
- Enter the value as per your requirement in the Sent messages maximum size (KB) field and the Received messages maximum size (KB) field.
- Click Save and wait for 5 minutes to make the changes take effect.
To manage message size restrictions for a user via PowerShell, run the following cmdlet after connecting to Exchange Online.
Set-Mailbox -Identity "<MailboxUPN>" -MaxSendSize "<Size>MB" -MaxReceiveSize "<Size>MB"
- In the Exchange admin center, navigate to Recipients»Mailboxes, and choose the required mailboxes (all mailboxes if required).
- Then, click Mailflow setting, and select Message size restriction.
- Enter the value as per your requirement in the Sent messages maximum size (KB) field and the Received messages maximum size (KB) field.
- Click Save to apply the changes.
To configure the message size limit for multiple users using PowerShell, first create a CSV file with the list of mailbox's User Principal Name as shown here.
Then, replace <InputPath> with the CSV file location and run the following cmdlet to configure message size restrictions for multiple users.
$mailboxes = Import-csv -Path "<InputPath>"
foreach ($mailbox in $mailboxes) {
Set-Mailbox -Identity $mailbox.EmailAddress -MaxSendSize "<Size>MB" -MaxReceiveSize "<Size>MB"
}
To configure the message size limit for all existing mailboxes, run the following cmdlet with the appropriate values.
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxSendSize "<Size>MB" -MaxReceiveSize "<Size>MB"