Solved

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

Posted on 2010-08-19
5
858 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In-place Upgrading Dirsync to Azure AD Connect
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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