Link to home
Create AccountLog in
Exchange

Exchange

--

Questions

--

Followers

Top Experts

Avatar of didba
didba

SMTP Relay - Exchange 2007
We are trying to setup an application to send out email alerts using our Exchange 2007. Here is the situation:

We have a vendor with whom we have VPN connection and the application which trying to send emails is on their end. So I created a custom receive connector using application server's IP address as remote IP address. They can ping and telnet to exchange server. Here is the message we got when trying to send email from that server,

220 EXCHANGESRV.companyname.com Microsoft ESMTP MAIL Service ready at Fri,
28 Jan 2011 15:39:45 -0600
set local_echo
500 Command unrecognized.
mail from: SendAsEmail@companyname.com
503 5.5.2 Send hello first
helo test
500 Command unrecognized.
helo test
250 EXCHANGESRV.companyname.com  Hello [211.90.113.180]
mail from: SendAsEmail@companyname.com
250 2.1.0 Sender OK
rcpt to: myemail@companyname.com
250 2.1.5 Recipient OK
rcpt to:testemail@companyname.com
250 2.1.5 Recipient OK
data
354 Enter mail, end with "." on a line by itself.
To:myemail@companyname.com, testemail@companyname.com
from:SendAsEmail@companyname.com
Subject: Telnet Email Test 3
.

550 Denied by policy.

500 Command unrecognized.

Please advice. Thanks!

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of MarkMichaelMarkMichael

Ok.

I can't see too much wrong there.

set local_echo < Ive not heard of this command myself. maybe others have.
the first helo test, you must have made a typo and telnet with smtp does not permit you to use a backspace at all during your typing.
the second helo test looks to have been typed without a typo, so that worked.
the 'mail from' and 'rcpt to' commands worked fine too.
data is where you start typing the body of your email.

In the body of your email, you have started with to: (not sure why you want to try and add more email addresses here, as they are just part of the body.
subject: this line is fine

Can you start over and type in only the following lines, copy and paste would be best due to no typos being typed.

helo test
mail from: sendasemail@company.com
rcpt to: myemail@company.com
data
Subject: this is a test
.

Open in new window


Try that and paste your results.

If you have added the correct IP address on the receive connector, can you restart the Transport Service and retest.

Avatar of Roshan MohammedRoshan Mohammed🇳🇿

another method, to test/check is to alowo the "application server's IP address " and "remote ip address" in the allowed relay ip addresses and then test.

Avatar of didbadidba

ASKER

Mark - I will test it and send you result.

S00007359 - are you asking me to add app server ip address in receive connector? I have already done that.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of didbadidba

ASKER

I am getting the same error:

550 Denied by policy. Any other idea?

Avatar of didbadidba

ASKER

Anyone? Any idea?

have you got any antivirus software or antispam software on your server?

If so, please try and turn it off and retry in attempt to find the cause.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of didbadidba

ASKER

I don't have anti-spam on it but I do have just an anti-virus agent installed on the exchange box.

Avatar of didbadidba

ASKER

I disabled the anti-virus agent as well but no success.

Avatar of didbadidba

ASKER

i created an IIS virtual SMTP server and forwarded mail to one of our Exchange 2003 and that worked fine.

So what is blocking from Exchange 2007?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of didbadidba

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

No,
As long as you have locked it down to the single IP of the server you are sending from. This should be fine.

Avatar of didbadidba

ASKER

In the default receive connector I enabled anounomus access.which except connection from anything. Please check the screenshot. User generated image

Hmm.

I hope this is a new connector.
This connector should have the Remote IP Addresses removed and only allow the ones in which you want to be able to relay via Exchange.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of didbadidba

ASKER

THis is not  the new connector. It is not  working with new connector - that was my main question.

This is the default connector which creates upon EX 07 setup.

You should create a new receive connector

use this link to find out which authentication to use:
http://www.commodore.ca/windows/exchange/new-exchange-2007-new-receive-connector-relay-authentication-tab.png

And these permission groups:
http://www.servolutions.com/images/exchange_2007_receive_connector_properties_2.png

Then in Remote IP Address, put the IP of your server that you wish to relay through Exchange.

Avatar of didbadidba

ASKER

I tried this settings on the new connector and it didnt worked. When i added these permission groups to the DEFAULT connector then only it worked.

And my question is allowing these permission groups on the DEFAULT connector opens up any security issue?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of didbadidba

ASKER

My solution solved the problem.
Exchange

Exchange

--

Questions

--

Followers

Top Experts

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.