Link to home
Start Free TrialLog in
Avatar of g-techforce
g-techforce

asked on

Exchange 2007 need to enable relay from web server

Hi,
I have a webserver that has a form that sends email out. I need it to send the email through my exchange server 2007 so I imagine i need to setup to allow relaying with the IP adddress of the webserver.

I have a recieve connector with the ip address of the webserver (the webserver is not at the same site as the exchange server)

After enabling the relay under the network tab of the recieve connecter, i still get:
SMTP -> ERROR: RCPT not accepted from server: 550 5.7.1 Unable to relay

i have attached a screenshot of my recieve connector.
Capture.PNG
Avatar of vahiid
vahiid
Flag of Afghanistan image

At the same window, Make sure you check "Anonymous Users" under Permission Groups for the relay to work.
And also you will have to grant ms-Exch-SMTP-Accept-Any-Recipient permission to anonymous user

Run this from Exchange Management Shell:
Get-ReceiveConnector "FSO Mail" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

Some details here: http://msexchangeteam.com/archive/2006/12/28/432013.aspx
Avatar of g-techforce
g-techforce

ASKER

Get-ReceiveConnector "FSO Mail" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient" did the trick.

However when i try to send mail from that webserver, exchange blocks it with the following error:

SMTP -> ERROR: DATA not accepted from server: 550 5.7.1 Message rejected as spam by Content Filtering.
SMTP Error: Data not accepted. Message was not sent.Mailer error: SMTP Error: Data not accepted.
SMTP server error: 5.7.1 Message rejected as spam by Content Filtering

ASKER CERTIFIED SOLUTION
Avatar of vahiid
vahiid
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Set up a dedicated receive server for your web server IP only and then tick Externally configured and exchange servers.

No authentication or other settings necessary.

Shaun