Solved

Mailbox unavailable. The server response was: 5.7.1 Unable to relay

Posted on 2010-08-19
5
849 Views
Last Modified: 2012-08-13
I have seen several questions relating to this issue , but cannot seem to find a fix.

I have a website that when it sends mail through my Exchange server and gets this error,

Mailbox unavailable. The server response was: 5.7.1 Unable to relay

I have added the webserver IP address in the allow relay hosts in the SMTP settings, but that does not resolve the error.  I can allow relay from everywhere and mail goes through fine, but I don't want to leave this open.  I have read about a tool called ExMetabaseCheck but I cannot find it anywhere, and if I do find it can I run it on a live server??

Also are there any logs that will verify the IP address of the webserver is the IP address that relay is being blocked from.....

Any help will be appreciated!!
0
Comment
Question by:nexxtep
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:crimmel
ID: 33476213
What version of Exchange are you dealing with?
0
 
LVL 19

Expert Comment

by:R--R
ID: 33476762
Do webserver installed SMTP service on it.
Add the exchange ip as a smarthost in webserver smtp.
0
 

Author Comment

by:nexxtep
ID: 33478259
I am using exchange 2003, sorry I should have posted that.  I do not have access to the webserver, but I don't think the webserver is the problem since it works fine when I allow relaying on the exchange server.

Here is the way it have it set where it works.  In Exchange 2003, under administrative groups, under servers, I go to properties of the Default SMTP virtual server and go to the access tab.  I have the "all except the list below" selected and the list is blank.  I have the "Allow all computers which successfully authenticate to relay, regardless of the list above" checked.  this way it works, but I do not like to do this because it means that any users on the network can send mail thru the mail server (ie Malware, Viruses).

I would like to just allow certain computers on the list to relay, I add the mail server and the webserver (which is not on the local LAN, its at a different location), but when I do this the webserver cannot send mail and gets the unable to relay error.

Thanks again for the help.
0
 
LVL 4

Expert Comment

by:crimmel
ID: 33484193
You definitely don't want to leave the "all except the list below" selected as this makes you an open relay - very very bad.

To find out the IP address of the webserver, or at least what it looks like to your Exchange server when it connects, you can either look at the headers of a message that was sent successfully or you can turn logging on.  To turn logging on:

On the General tab of the SMTP virtual server, click "Enable Logging" at the bottom - probably the most important thing to do here is to click on Properties, click the Advanced Tab and make sure you have enough items selected to log - ClientIP being the most important.  I usually just turn all of them on.
0
 

Accepted Solution

by:
nexxtep earned 0 total points
ID: 33486581
Thanks for the help crimmel, it turned out to be an authentication issue.  The website was passing incorrect credentials for the username.  I don't understand why I was getting a unable to relay error?  Anyway its fixed, I am not sure if I can still award points or not.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now