Solved

The server response was: 550 5.7.1 Unable to relay for

Posted on 2006-07-14
2
2,716 Views
Last Modified: 2008-01-09
I keep getting this message from ASP.NET
The server response was: 550 5.7.1 Unable to relay for sender@domain.com.

in XP , I have Visual Studion installed in it, in SMTP Virtual server of XP I added the machine itself for a relay.
in Exchange server 2003 I added the XP machine name in a relay restriction also.

I have this code in asp.net:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim msg As New MailMessage
        msg.From = "administrator@training.com"
        msg.To = "administrator@training.com"
        msg.Subject = " EMAIL TEST"
        SmtpMail.SmtpServer = "localhost"
        SmtpMail.Send(msg)
    End Sub
0
Comment
Question by:jskfan
[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 Comments
 
LVL 31

Accepted Solution

by:
moorhouselondon earned 250 total points
ID: 17115307
Try changing the msg.From parameter to a legitimate user in the Exchange Active Directory.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
moving away from .local domain 5 98
VB.NET 2008 Winforms Signing 13 49
Formula for calculating ROI on training 6 91
Eclipse neon2 "Java build path" correctness 7 43
In this post we will learn different types of Android Layout and some basics of an Android App.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

738 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