How to setup an email storage alerts to get admins notified when each individual users mailbox reaches at least 90 percent storage in EXO?

Vinod Survase 4,776 Reputation points
2023-11-09T08:23:17.75+00:00

How to setup an email storage alerts to get admins notified when each individual users mailbox reaches at least 90 percent storage in EXO?

For example: If users mailbox reached at 90 or 95 percent then it should send an alert saying xyz users mailbox has reached this level of mailbox storage so we as admin can check and take appropriate actions on it.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,772 questions
Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,875 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,880 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,221 Reputation points Microsoft External Staff
    2023-11-10T06:46:11.93+00:00

    Hi @Vinod Survase ,

    Based on my research, so far, I do not find any reference to setup alert emails of users' mailbox storage, or warnings that mailbox is nearly full to admin.

    The appropriate way at this moment is to check the status of the Quota chart to verify whether the user's mailbox is healthy or not on the mailbox usage report page.

    User's image

    Reference: https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/mailbox-usage?view=o365-worldwide#the-quota-chart


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Naufil Mirsinge 5 Reputation points
    2025-03-28T13:12:55.57+00:00

    Rule description - EXCHANGE admin MAIL FLOW >> RULES >>

    Apply this rule if Is sent to 'Inside the organization' and Includes these patterns in the message subject: 'Your mailbox is almost full' Do the following Blind carbon copy(Bcc) the message to "*****@xyz.com"*

    1 person found this answer helpful.
    0 comments No comments

  3. Prabin A T 0 Reputation points
    2024-10-22T18:15:01.9633333+00:00

    Using PowerShell

    1. Connect to Exchange Online: If you're using Exchange Online (part of Office 365), you'll need to connect via PowerShell:
         powershell
         Copy code
         Connect-ExchangeOnline -UserPrincipalName ******@yourdomain.com
      
      Get Mailbox Sizes: You can retrieve mailbox sizes with the following command:
         powershell
         Copy code
         Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select DisplayName, TotalItemSize | Where-Object { $_.TotalItemSize.Value.ToGB() -gt 30 }
      
      This command lists all mailboxes over 30 GB.
    2. Send Alerts: You could create a script that runs periodically (for example, through a scheduled task) and sends an email alert for any mailboxes that exceed 30 GB. Here's a basic example of what that script might look like:
         $largeMailboxes = Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Where-Object { $_.TotalItemSize.Value.ToGB() -gt 30 }
         if ($largeMailboxes) {
          $body = "The following mailboxes exceed 30 GB:`n"
          foreach ($mailbox in $largeMailboxes) {
              $body += "$($mailbox.DisplayName): $($mailbox.TotalItemSize)`n"
          }
          Send-MailMessage -To "******@yourdomain.com" -From "******@yourdomain.com" -Subject "Mailbox Size Alert" -Body $body -SmtpServer "your.smtp.server"
         }
         
         
      
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.