Exchange 2007 Administrative Scripts
Ongoing     Case # 10034     Affiliated Job:  New Trier Township District 2031
Opened:  Thursday, May 6, 2010     Closed:  N/A
Total Hit Count:  44636     Last Hit:  Tuesday, April 23, 2024 9:29:05 AM
Unique Hit Count:  8146     Last Unique Hit:  Tuesday, April 23, 2024 9:29:05 AM
Case Type(s):  Server, Development
Case Notes(s):  All cases are posted for review purposes only. Any implementations should be performed at your own risk.

Request:
By request I will frequently research out some scripts or batches I can run to automate or extract information out of the Information store about user/mailbox accounts. This is just a glimpse into some of the useful ones I have come across.

Action(s) Performed:
Total Action(s): 4
Action # Recorded Date Type Hit(s) User Expand Details
10122 5/6/2010 12:08:00 PM Server 3353 contact@danieljchu.com Mailbox Sizes This process builds a listing of mailbox sizes base  More ...
10128 5/6/2010 12:07:00 PM Server 3178 contact@danieljchu.com Enabling Open Relay in Exchange 2007 Occasionally there will be t  Collapse ...
Last Hit: Tuesday, April 23, 2024 3:22:45 AM

Enabling Open Relay in Exchange 2007

Occasionally there will be the need to open relay through an Exchange server for internal devices/applications. This can be accomplished by creating a Receive Connector through the management console and then setting the permissions on this connector through a shell command.

-   Exchange Management Console - Server Configuration - Hub Transport - New Receive Connector
-   Give it a name i.e. "Open Relay" and leave "Custom" selected - Next
-   Bind it to "All available IP Addresses on Server" through port 25 (assuming this is what you want)
-   Enter your FQDN this server should announce itself as - Next
-   Remove the default specified remote IP address range and enter in the specific or range of IPs you intend to allow to relay through this host - Next
-   Complete the creation of the new receive connector and then edit the properties of the new connector
-   Goto the "Authentication" tab and uncheck everything except "Transport Layer Security (TLS)"
-   Next goto the "Permissions Groups" tab and uncheck everything except "Anonymous users" - click "Apply" and then "Ok"
-   Now we need to edit the connector through the following shell command to enable it for open relay:
   o   Get-ReceiveConnector "Open Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON"
-ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"


And that's it, be cautious of what IPs you specified to allow for relaying through this Exchange Client Access server - you will point your devices/applications over to the CAS server for message delivery.
10123 5/6/2010 12:06:00 PM Server 3166 contact@danieljchu.com Disconnected mailboxes not being displayed A simple way to see th  More ...
10124 5/6/2010 12:05:00 PM Server 3147 contact@danieljchu.com Mass Update to Mailbox Permissions Simply by using the pipe "|" b  More ...



Profile IMG: Footer Left Profile IMG: Footer Right