Solved

HELO Command RFC 821

Posted on 2004-10-12
3
870 Views
Last Modified: 2013-11-30
Hello,
   I use a custom winsock based dll for sending emails out of our application. As per RFC 821 Section 3.5
HELO Command: RFC-821 Section 3.5

   The sender-SMTP MUST ensure that the  parameter in a HELO command is a valid principal host domain name for the  client host.  As a result, the receiver-SMTP will not have to perform MX resolution on this name in order to validate the HELO parameter.

   The HELO receiver MAY verify that the HELO parameter really corresponds to the IP address of the sender.  However, the receiver MUST NOT refuse to accept a message, even if the sender's HELO command fails verification.

   DISCUSSION: Verifying the HELO parameter requires a domain name lookup and may therefore take considerable time.  An alternative tool for tracking bogus mail sources is suggested below (see "DATA Command").

      Note also that the HELO argument is still required to have valid  syntax, since it will appear in a Received: line; otherwise, a 501 error is to be sent


Question:
However sometimes on few email servers I get
Failed: 501 missing fully qualified domain name

I always pass( atleast try to ) "domain.com" as the parameter where domain.com is extracted from the reply to address.
So am I interpreting this wrong, what are the possible reasons for this error.
0
Comment
Question by:danths
  • 2
3 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 12293966
You're relying on another data source, the "reply-to" address, which may not contain valid data.

RFC 821 is old, and since it was written, many E-Mail systems have taken to resolving the claimed origination point via DNS, and rejecting those that do not resolve properly. Yes, this technically breaks the RFC, but the RFC predates spamming and DOS attacks on mailservers. I daresay that if RFC 821 were written today, it would be considered perfectly acceptable for a receiver to refuse to accept a message that fails verification during the initial HELO conversation.

You're very unclear on how your program gets its information. "Reply to" is very much an optional parameter, and not all mail systems/clients add it, and not all ones that do put the right information in it. Any reason you don't use "From:" ?
0
 
LVL 6

Author Comment

by:danths
ID: 12294066
My app needs the reply-to address and I do validate it for proper email format and so if the reply-to address was someone@somewhere.com, I parse out somewhere.com to be used with HELO. In fact my app defaults the reply-to to "From" however users could change it. I have no ambiguity on the function and the parsing. I was wondering if some email servers need the HELO parameter to be
<localhostname>.<localdomainname>.<com/net/org...> in that format rather than "somedomain.com". Secondly per my interpretation no Host should reject accepting connection ( reverse lookup)  solely based on parameter passed in HELO. Is that wrong?
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 250 total points
ID: 12294492
But HOW does you app get the initial information? That is, from EXACTLY WHERE does the information come from which the "Reply To" is extracted?

No, your interpretation is not wrong, but it ignores the realities of the modern day E-Mail environment. Like I said, RFC 821 is old. Its replacement, RFC 2821, is still in draft, and a quick check notes that it retains the language you cite.

Your app validates for proper format. Does it validate the Domain?

IF the Domain's DNS records were properly set up, the somewhere.com portion should be fine. Trouble is there are a lot of people out there setting up Domains who don't have a clue about DNS, and so there's a lot of improper DNS information.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Microsoft Outlook provides an easy way to recover permanently deleted items. When you empty the Deleted Items or simply deleted an Outlook data items using shift+Del key then it can be recovered using Registry Key settings.  Caution- Wrong Registry…
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
The purpose of this video is to demonstrate how to set up a Mailchimp campaign. This will include styling and adding elements to a newsletter/email. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchim…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

12 Experts available now in Live!

Get 1:1 Help Now