[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SMTPClient error: "Command parameter not implemented. The server response was: <serverhostname>: Helo command rejected: need fully-qualified hostname"

Posted on 2006-11-05
4
Medium Priority
?
4,068 Views
Last Modified: 2008-01-09
I'm getting this exception from the SmtpClient class: "Command parameter not implemented. The server response was: <(serverhostname)>: Helo command rejected: need fully-qualified hostname"

        SmtpClient sc = new SmtpClient();
        sc.Host = "mail.******.com";
        sc.Send(mm);

How can I make smtpclient send the FQDN instead of the hostname?
0
Comment
Question by:salted
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 17876473
Hi salted,

see if you can find something in this FAQ: http://www.systemnetmail.com/

Cheers!
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17876550
This is probably security on the smtp server you are using.
When an SMTP session starts it is generally initiated with the following command sent by the sender:

    HELO hostname

where hostname is the name of the sending host.

Some smtp servers will do a reverse dns lookup of the hostname and compare the ip address against the IP address of the sending host.
This is basically to stop spammers and spoofers.

As a result they will not accept mail from hosts that do not have an FQDN (fully qualified domina name) or from hosts they cannot lookup using reverse DNS.
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 2000 total points
ID: 17876574
Sprry, I didn't read the last line of your post.
I guess you know the above.
I'm afraid its a bug/feature of the SmtpClient.
Microsoft are aware : http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94378
0
 

Author Comment

by:salted
ID: 17876638
Thanks guys,

I decided to set credentials and login to the smtp server over ssl - bypassing the need for a FQDN.

Seems MS could do with adding support for this.

Thanks for all your help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 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