Share via

Exchange 2019 cannot display all user when add allowed sender in delievery management

Andy Chong 897 Reputation points
2022-05-23T06:51:26.913+00:00

Hi,

In both exchange 2016 and 2019, when we try to add “Allowed sender” in the mailbox delivery management, it only can display 500 objects

We tried to edit the web.config file to add a below lines but not works. It still display 500 user only

<!-- allows the OU picker when placing a new mailbox in its designated organizational unit to retrieve all OUs - default value is 500 -->
<add key="GetListDefaultResultSize" value="2000" />

Exchange Server doesn't display all OUs - Exchange | Microsoft Learn

How can we display all users?

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.


3 answers

Sort by: Most helpful
  1. Michael Murillo Sr 0 Reputation points
    2026-05-01T22:27:38.27+00:00

    I ran into this same issue and got tired of manually re-applying the web.config fix after every cumulative update, so I automated it.

    The problem is that Exchange CUs overwrite the web.config file and remove the GetListDefaultResultSize key every time. I created a PowerShell script with a scheduled task that:

    Checks the ECP web.config for the GetListDefaultResultSize key

    Adds it automatically if missing or updates the value if too low

    Creates timestamped backups before making changes

    Restarts the MSExchangeECPAppPool to apply the fix

    Runs daily so you never have to manually fix this post-CU again

    GitHub repository: https://github.com/digitron64/ECPFix

    Works on Exchange Server 2013, 2016, 2019, and Subscription Edition (SE). Must be deployed to all Exchange servers with the Mailbox role since ECP requests can hit any server in the environment.

    The repo includes the PowerShell script and pre-configured scheduled task XML. Tested and working across our three-server environment.

    Hope this helps!

    0 comments No comments

  2. Aholic Liang-MSFT 13,926 Reputation points Microsoft External Staff
    2022-05-24T11:14:47.27+00:00

    Hi @Anonymous ,

    <!-- allows the OU picker when placing a new mailbox in its designated organizational unit to retrieve all OUs - default value is 500 -->
    <add key="GetListDefaultResultSize" value="2000" />

    According to the official documentation, the command is used to solve the complete list of organizational units (OUs) isn't displayed as expected. This does not apply to other situations.

    To my knowledge , there is no official document that explains the number of mailboxes to be displayed in Delivery Management, and guidance on how to change the maximum number of mailboxes displayed .

    If it is possible , I suggest you could refer to the following cmdlets to export them to csv for filtering.

    Get-Mailbox -ResultSize unlimited | select-object DisplayName, userPrincipalName | Export-CSV-Path c:\share\mailbox.csv  
    

    Then refer to the following cmdlets to add allowed senders:

    Set-DistributionGroup -Identity "******@contoso.com" –AcceptMessagesOnlyFromSendersOrMembers @{Add=“******@contoso.com”, “******@contoso.com”;}  
    

    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][1] to enable e-mail notifications if you want to receive the related email notification for this thread.

    [1]: https://learn.microsoft.com/en-us/answers/articles/67444/email-notifications.html

    0 comments No comments

  3. Andy David - MVP 160.2K Reputation points MVP Volunteer Moderator
    2022-05-23T11:14:25.307+00:00

    Use Exchange Powershell instead

    (Get-distributiongroup <group>).AcceptMessagesOnlyFromSendersOrMembers
    

Your answer

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