Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

5.7.1 Unable to relay

Posted on 2009-04-24
9
Medium Priority
?
529 Views
Last Modified: 2012-05-06
We have built an application that sends an email with a pdf attachment to certain email addresses. It sends ok to internal email addresses within the organisation but when sending to an address oustide of the organisation it sends a message to the administrator as outlined below. The exchange server is set to allow relaying for all computers that authenticate (it wasnt but having looked up possible senarios yesterday on EE I tried it) The VB code seems ok & the user it is using to send the code is a named user on the exchange server & has a mailbox. If I sign on as the same user into exchange & forward it to the external address it works fine. Anyone any ideas?
Cannot email defect reminder
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for whaterever address@whatever.com
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at PPPDefects.Reminders.ReminderProcess.ExecuteReminderProcess() in C:\Documents and Settings\administrator.PANK\My Documents\Visual Studio 2008\Projects\PPPDefects\PPPDefects.Reminders\ReminderProcess.cs:line 212

Open in new window

0
Comment
Question by:Richard Gray
  • 5
  • 4
9 Comments
 
LVL 7

Expert Comment

by:Rammestein
ID: 24223174
add the public ip of the server on which the application has been installed.
0
 
LVL 7

Expert Comment

by:Rammestein
ID: 24223178
in the relay tab.
Is it exchange 2003 or 2007?
0
 

Author Comment

by:Richard Gray
ID: 24223201
The server that the application is on does not have a public ip it is a production SQL server. Exchange server internal is 192.168.n.6  sql server is 192.168.n.11
It is exchange 2003
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:Rammestein
ID: 24223212
have u added the ip of the sql on relay radio button option.
The option should be only the list below
0
 

Author Comment

by:Richard Gray
ID: 24240000
I have addred the IP address of the SQL server onto the allow relay list & now get:
Cannot email defect reminder
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for rmvgray@hotmail.com
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at PPPDefects.Reminders.ReminderProcess.ExecuteReminderProcess() in C:\Documents and Settings\administrator.PANK\My Documents\Visual Studio 2008\Projects\PPPDefects\PPPDefects.Reminders\ReminderProcess.cs:line 231
0
 
LVL 7

Expert Comment

by:Rammestein
ID: 24240103
Wat if we telnet from the SQL to exchange on port 25 and try the same thing??
0
 

Author Comment

by:Richard Gray
ID: 24240312
I cant remember the telnet commands once I am connected :(
0
 

Author Comment

by:Richard Gray
ID: 24240364
Ignore that just had a refresh!
If I telnet from the SQL server to an internal address it works fine, if I send to an external address I get the 5.7.1. unable to relay
0
 

Accepted Solution

by:
Richard Gray earned 0 total points
ID: 24240378
220 mailgate.philippank.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959
 ready at  Mon, 27 Apr 2009 11:36:50 +0100
ehlo mailgate.philippank.com
250-mailgate.philippank.com Hello [192.168.0.221]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-LINK2STATE
250-XEXCH50
250 OK
mail from:administrator.philippank.com
250 2.1.0 administrator.philippank.com@PhilipPank.com....Sender OK
rcpt to:rmvgray@hotmail.com
550 5.7.1 Unable to relay for rmvgray@hotmail.com
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
In this post, we will learn to set up the Group Naming policy and will see how it is going to impact the Display Name and the Email addresses of the Group.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

564 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