Link to home
Start Free TrialLog in
Avatar of Dennis Janson
Dennis JansonFlag for United States of America

asked on

SMTP Relay stopped working

I setup a server at site #1 to relay emails off of my exchange server at site#2. The sites are not interconnected and are only public to each other. The Exchange server is setup for anonymous relay of messages from the IP of the SMTP server. For some reason the messages no longer go through. I receive a "550 5.7.1 Unable to relay for me@mydomain.com". I cannot find any settings that have changed. Both servers have been rebooted.

Any ideas?
Avatar of Akhater
Akhater
Flag of Lebanon image

We need more info

1) are both sites exchange 2007 ?
2) when you say you setup a server to relay is this server also exchange ?
3) is this server used only for relaying to the other site or is it used for all your public emails ?
4) if this not exchange what is it ?

Finally this is typically a message that the SMTP relay doesn't have the exchange server in its allow list
Does the server (mailserver) at the other gotten another ip-adres?
If that's the case the relay wil stop working because of your settings
Avatar of Dennis Janson

ASKER

Akhater,
1&2) No, Site 1 is just running SMTP and IIS. SIte 2 is Exchange 2007 with both exchange and edge servers. I created a receive connector for relaying from site 1 only.
Braskoer, I checked the IP address and it is the same as in my receive connector.

3) My site 1 has email hosting on godaddy, I could not find how to rlay off them. I set up SMTP serviceon site 1 ONLY for outgoing messages to be sent from my ERP software.
the NDR is it generated on your IIS or your exhcange ?
I am not getting and NDR. The error is stating that the outgoing message from the STMP server could not relay. This is setup for outgoing messages only.
so you are seing this on the IIS side right ?

is me@mydomain.com the exchange 2007 side or the IIS side ?
Akhater,

The outgoing email addresses are public and could be anyone, as well as the from addresses. I just want to use my exchange server to relay any email from a single IP address to he real world.
then you got me lost !


let's go over the scenario again shall we?

you have an IIS smtp in a branch location

this IIS server is configured to use an exchange server (edge??) as its relay host

emails sent from the IIS server are failing with relay deny error

am i close ?
I do have an IIS SMTP virtual server in a branch location

This server is set with smart host point of an outside exchange server.

The exchange server has a receive connector to receive from the IP address of the SMTP server.

When I attempt to send a message a immediately receive a relay 500 error
Update:
 I found some articles where a recent windows update (KB976323) had wiped out some SMTP relay settings in IIS. I uninstalled the update adn reconfigured my IIS settings. I ran some email test though telnet successfully. However I still cannot email through my Prohet21 application. I am waiting until the end of the day to reboot the server and see if that makes a difference.
can you please issue on your exchange server a get-receiveconnector | fl and give the results ?
Attached are the results of get-receiveconnector | f
reciecveConnectors.txt
my best guess was that your server IIS ip is 98.236.95.204 am i right ?
Yes. You are correct.
well your problem is obviously because you have

Default EXCHANGE, Scan to Email App, Webserver, and GIS Relay listeners  all set to listen to all unassigned IPs

even if each has a specific remote IP range you cannot have more than one connector listening to the same IP.

in your case it is the default exchange connector that is "Answering" to your IIS server and denying relaying
So should I set the receive connector binding to the same IP as the remote IP range?
My main question now is how come I can send an email via telnet email from my remote location using to and from anyone but not from my application? I still receive -

Error 50000: SQLSTATE = 42000Microsoft OLE DB Provider for SQL ServerFailed to send email with CDOSYS.Message. The error source is: (null), the error description is: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for djanson@garrettminesupply.com.
actually you need a separate IP for each connector or to let each work on a different port.


you mean if you logon on the the IIS server and try to send an email using telnet to djanson@garrettminesupply.com. it will go thru ?
Yes. The email will go through.
can you please stop all the receive connectors but the one on which you allow your IIS relaying on you 2007 and try again ?
ASKER CERTIFIED SOLUTION
Avatar of Dennis Janson
Dennis Janson
Flag of United States of America 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