protocols - Some questions about SMTP RFC -
I have two questions about SMTP RFC:
- Which logic should I pass as argument?
The domain name given in the EHLO command should be either a primary host name (a domain name that resolves an address for RR) or, if the host does not have a name One word is literal as described in Section 4.1.3, and further discussion is discussed in the EHLO discussion of section 4.1.4.
I can not really remove section 4.1.3. Can you give me an example or write it again?
- Which headers are required to be sent to the data class?
Thanks in advance.
The reasoning of EHLO in the absence of a domain name says
section:
Sometimes a host is not aware of the domain name system and communication (and, in particular, reporting communication and improving the error). To bypass this barrier, a specially lexical form of address is given as the option of a domain name. For IPv4 addresses, this form uses the four small decimal integers separated by dots and is enclosed by parentheses such as [123.255.37.2], which indicates an (IPv4) Internet address in the sequence-to-octet format .
then a simple
EHLO [123.255.37.2] sufficiency (with the actual IP address of your SMTP server) or rather a properly formatted IPv6 Could.
Required Header
section says:
Only required header fields, date of birth fields, and provider address fields (s) Header field syntax is optional.
Therefore, only
to: and
date: are required.
- Which headers are required to be sent to the data class?
Comments
Post a Comment