TechShizz | All posts tagged 'NDR'

Set Message Size Limits in Exchange 2010 and Exchange 2007

Typical Errors:

#550 5.2.3 RESOLVER.RST.SendSizeLimit; message too large for this sender ##

#550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient ##

There are several places to check/set message size limits:

1. Organizational Limits
Set-TransportConfig -MaxReceiveSize 40MB -MaxSendSize 40MB

In Exchange 2007 SP1 and later, you can also set the organizational message size limits using the EMC by going to Organization Configuration | Hub Transport | Global Settings tab | Transport Settings | properties | General tab.
Transport Settings Properties
2 Receive Connector Limits
Set-ReceiveConnector “CONNECTOR NAME” -MaxMessageSize 40Mb
.
To modify the maximum message size on a Receive Connector using the Exchange console, select Server Configuration | Hub Transport | select a Hub Transport server | Receive Connectors -> select a connector | Properties | General tab.
Receive Connctor Properties
3. Send Connector Limits
Set-SendConnector “CONNECTOR NAME” -MaxMessageSize 40Mb

To modify the maximum message size on Send Connectors, select Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties | General tab.
Send Connector Properties
4. Recipient Limits
Set-Mailbox “Rich” -MaxSendSize 20Mb -MaxReceiveSize 20Mb

To set these using the Exchange console: Recipients | Mailbox -> select mailbox (or select another recipient type such as a contact or mail user from the corresponding node) | properties | Mail Flow Settings tab | Message Size Restrictions.
To modify the maximum message size on Send Connectors, select Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties | General tab.
Recipient Limits
5. Active Directory Site Link Limit
By default, the MaxMessageSize on AD Site Links is set to unlimited. This can be changed using the following command:

Set-ADSiteLink “DEFAULTIPSITELINK” -MaxMessageSize 20Mb

6. To track messages that failed because of recipient’s MaxReceiveSize:

Get-MessageTrackingLog -EventID FAIL | where {$_.RecipientStatus -like “*RecipSizeLimit*”}

To track messages that failed because of the sender’s MaxSendSize:

Get-MessageTrackingLog -EventID FAIL | where {$_.RecipientStatus -like “*SendSizeLimit*”}

To track messages that failed because of a SizeLimit

To track messages that failed because of recipient’s MaxReceiveSize:

Get-MessageTrackingLog -EventID FAIL -ResultSize Unlimited | where {$_.RecipientStatus -like “*RecipSizeLimit*”}

To track messages that failed because of the sender’s MaxSendSize:

Get-MessageTrackingLog -EventID FAIL -ResultSize Unlimited | where {$_.RecipientStatus -like “*SendSizeLimit*”}

NDR - IMCEAEX #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##

If you have ever moved a mailbox to another user, you will have no doubt found that when people send email to that mailbox after you have moved the mailbox they get an NDR.

This happens because Microsoft Outlook caches the address and it's linked to the origional user account the mailbox was attached to.

Example Error

Diagnostic information for administrators:

Generating server: ALPHA.Contoso.local

IMCEAEX-_O=CONTOSO_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_
CN=RECIPIENTS_CN=Jo+20Bench+20+28mycompany+29d1f@contoso.co.uk
#550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##

Resolution

Depending on the scenario there are a few ways to fix this, but the goal is the same which is to get the X500 address of the original user account that the mailbox was atached to.

Step 1

If the account still exists, this is easily queried with the following PowerShell command.

Get-ADUser -SearchBase “OU=users,DC=domain,DC=local” -Filter * -Properties SamAccountName,legacyExchangeDN | Select-Object SamAccountName,legacyExchangeDN | Export-CSV C:\UserExport.csv -NoTypeInformation

If the account has been deleted (which is commonly why you would want to do this if the user account had to be re-created instead of restored) then you will need to get the X500 address from anyone who has sent an email to that account before it was deleted. To do this, NirSoft have a program called N2KEdit. Run this EXE and find the X500 for the account.

Step 2

Once you have the X500, the rest is easy.

Go to the Exchange mailbox properties > Email Addresses tab > Add (custom) >

Enter the X500 address in the email address field

Enter "X500" in the Email type field.

Click OK > Apply.