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:
- In a SharePoint 2007 Central Administration > Operations > Outgoing E-Mail Settings enter your server address and e-mail info
- 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’ - 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