Grant the relay permission to Anonymous on a dedicated Receive Connector

Ever tried to configure MOSS 2007 to send e-mails through Exchange 2007 Server? Well, it can be a bit tricky. MOSS 2007 sends e-mails anonymously which is not-so-fine by out-of-the-box installation of Exchange 2007.

How to do it? It’s pretty easy:

  1. In a SharePoint 2007 Central Administration > Operations > Outgoing E-Mail Settings enter your server address and e-mail info
    sp07-mailconfig
  2. In Exchange Management Shell, create a new Receive Connector:
    New-ReceiveConnector -Name ‘SharePoint’ -Usage ‘Custom’ –PermissionGroups AnonymousUsers -Bindings ‘0.0.0.0:25’ -Fqdn ‘mail.contoso.com’ -RemoteIPRanges ‘10.1.1.12/32’ -Server ‘exch01’
  3. Run the following command using the name of the Receive connector that you created in step 2:
    Get-ReceiveConnector “SharePoint” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “Ms-Exch-SMTP-Accept-Any-Recipient”

 

More info about allowing Anonymous Relay on a Receive Connector:
http://technet.microsoft.com/en-us/library/bb232021.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s