Where do you find the quote that is your second paragraph?  Because it does 
seem to, at least slightly, care what the value of the string is and that it 
matches the domain as known my the SMTP server.


Where does SMTP retrieve its domain from?  Does it also use gethostname()?



________________________________
 From: Mike Stayton <[email protected]>
To: [email protected] 
Sent: Wednesday, September 3, 2014 5:42 AM
Subject: Re: z/OS SMTP server
 

The HELO SMTP command is following the syntax as described in RFC 821.  
HELO <SP> <domain> <CRLF>

domain is a required parameter.  For the z/OS SMTP server it can be any string. 
 The string itself is ignored by the server.  A possible use is to identify the 
z/OS LPAR that created the mail message.

Since this is a CICS task creating the mail message, the CICS SOCKET API could 
be used to obtain the host name.  Use the gethostname() function.   Use the 
socket() function to obtain a socket, call the gethostname() function and call 
the close() function to close the socket.

Or use the SMFID, the system name from the CVTSNAME field, or the CICS system 
name.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to