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
3,735 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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