TechShizz | All posts tagged 'Exchange 2010'

Find email attachment limits in Exchange

get-transportconfig | ft maxsendsize, maxreceivesize

get-receiveconnector | ft name, maxmessagesize

get-sendconnector | ft name, maxmessagesize

get-mailbox |ft Name, Maxsendsize, maxreceivesize

Divert a copy of NDR to a specific user/contact




Running this command sets a Divert (copy) to a specified user so that we can look at the NDR email reports. If your administering an exchange externally, just create a contact for your own email address and use that.

To send a copy of internal NDRs run:


Set-OrganizationConfig -MicrosoftExchangeRecipientReplyRecipient JonJones

To send a copy of external NDRs run:

Set-TransportConfig -ExternalPostmasterAddress

Recover Deleted Mailbox Items

If you ever need to export just the recoverable deleted items, and the retrievable purged items, for a mailbox you can run the following command in EMS 2010 onwards:

New-MailboxExportRequest -mailbox USER.NAME -FilePath \\servername\folderlocation\MUSTSPECIFYPSTNAME.pst -IncludeFolders "Recoverable Items"

A good guide:



To search for items you need to have the "Discovery Management" built-in role group permission.


To add the permission via EMS use:

Add-RoleGroupMember "Discovery Management" -Member <user account>


Or use AD.




Search-Mailbox UserA -SearchQuery "from:'boss' AND seattle" -TargetMailbox "Discovery Search Mailbox" -TargetFolder "FolderA" -LogLevel Full


The email then appears in the folder structure.


Send Connectors in Exchange 2010

A send connector is a logical connector that deals with the outbound mail and send the mail to a device that begins the routing of email to the internet.


On the Organizational Configuration > Hub Transport > Send Connectors (tab) > Click New Send connector


Name the connector and then select the type.


We can create:

  • Internal : used to send email to servers inside of your exchange organization - This includes smart hosts.
  • Internet : This uses the DNS MX records, and sends emails out to the internet.
  • Partner : Can be used if a partner company is connected to your network with a TLS connection.


On the next menu, select add to add an address space.

We type an * if we want to route all mail out of this connector. If we wanted to make sure that all mail to was routed out of this connector, we would type in the domain for Contoso in this location.


Next, we specify if we want to send the mail to a smart host, or out via our own DNS MX records. It's important that we have all the required MX records if selecting this otherwise mail wont get routed anywhere.

If we wanted to specify a smart host this is where we would enter the IP address for the host.


Next we need to associate this connector with a Hub Transport server for which it will work for, then next and finish out of the wizard.