Click - Nitin Gupta's HomePage
Nitin Gupta's Leaf
9/7/2010
 

   ...ARTICLES HOME...
Exchange 2010
Exchange 2007
Exchange 2003
MSExchange.org Articles
The Offline Address Book (Part 1).....

How to move from a Single Server to High Availability with DAG.....

Protecting and managing accounts in Exchange Server 2010/Windows Server 2008 R2 (Part 1).....

Exchange 2010 Calendar Repair (Part 2).....

MessageSolution Enterprise Email Archive - Voted MSExchange.org Readers' Choice Award Winner - Exchange Archiving.....

      |    Written: 06 Jun 2008    |    Last Updated: 31 Oct 2008    |    Author: Nitin Gupta    |

How to Allow Application Servers to Relay via Exchange 2007 Server

In almost every organization that deploys a messaging server like Exchange 2007. there is a need to use the Server as SMTP Server for sending Alerts//Mails/Notifications from Application Servers like Helpdesk Management, CRM, Financial Application, Project Management servers etc.

Out of box configurations in Exchange (all versions) allow authenticated relaying. In case your internal servers are able to authenticate; then without any modifications they should be able to relay. Well, if the Server/Device is unable to authenticate and you try to relay, then you would get the SMTP error message "550 5.7.1 Unable to relay"

Business scenario [A]:

Grant the minimum required permissions for relay to a printer (or any server) that cannot authenticate but needs to relay.
  • Domain: nitingupta.in
  • Exchange Server (Hub/Edge) IP: 192.168.1.2
  • Printer IP: 192.168.1.33
  • Receive Connector Name: AllowPrinterRelay

How to go about it:

  • Verify that necesary permissions are in place to perform the activity
    -   Exchange Server Administrator
    -   Membership in the local Administrators group for Hub/Edge server
  • Create a new Receive connector and add Anonymous permission group
    New-ReceiveConnector -Name "AllowPrinterRelay" -usage Custom -Bindings '192.168.1.2:25' -RemoteIPRanges 192.168.1.33 -permissiongroups AnonymousUsers
  • Assign Relay permission to Anonymous Logon to connector
    Get-ReceiveConnector "AllowPrinterRelay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"


Business scenario [B]:

Configure Externally secured Receive connector to allow a Web server to relay via Exchange and treat messages as authenticated messages, so as to
-   Bypass anti-spam checks
-   Avoid Message size limit checks
-   Resolve anonymous senders
  • Domain: nitingupta.in
  • Exchange Server (Hub/Edge) IP: 192.168.1.2
  • Webserver IP: 10.0.0.2
  • Receive Connector Name: AllowWebServerToRelay

How to go about it:

  • Verify that necesary permissions are in place to perform the activity
    -   Exchange Server Administrator
    -   Membership in the local Administrators group for Hub/Edge server
  • Create a new Receive connector, add ExchangeServers permission group and assign ExternalAuthoritative to connector
    New-ReceiveConnector -Name "AllowWebServerToRelay" -Usage Custom -AuthMechanism ExternalAuthoritative -PermissionGroups ExchangeServers -Bindings 192.168.1.2:25 -RemoteIpRanges 10.0.0.2


Note: I wouild always avoid Option B, and always follow option A

Reference and Links

How to Allow Anonymous Relay on a Receive Connector
http://technet.microsoft.com/en-us/library/bb232021(EXCHG.80).aspx

Managing Accepted Domains
http://technet.microsoft.com/en-us/library/bb124423(EXCHG.80).aspx
Website Updated on : Sep 27 2009
Copyright © 2008 Nitin Gupta | Design and Developed by Nitin Gupta | Special Thanks: Mayank Agarwal
Best viewed with 600x800 resolution. Send your comments to Webmaster

Disclaimer: The opinions expressed on this site are mine and do not represent those of my employers (past or present) or any other entity. I give no warranty or guarantee whatsoever regarding the accuracy, reliability or completeness of the information provided on my website. I will not be liable to you under any circumstances for any loss or damage arising from your use of such information. Users are advised to check the accuracy of the information on this website