Solved

The server response was: 550 5.7.1 Unable to relay for

Posted on 2006-07-14
2
2,712 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

911 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

18 Experts available now in Live!

Get 1:1 Help Now