Is this guy really a 'CLIST'? I haven't used CLIST for so long that I 
don't know all the modern capabilities. LPAR name is set in standard 
system symbol &SYSNAME. Rexx can certainly obtain the symbol. If the 
symbol is available, the code needs to be modified once to work in all 
environments.  

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
626-302-7535 Office
323-715-0595 Mobile
[email protected]



From:   Frank Swarbrick <[email protected]>
To:     [email protected], 
Date:   09/02/2014 12:15 PM
Subject:        z/OS SMTP server
Sent by:        IBM Mainframe Discussion List <[email protected]>



I am writing a simple CICS application to use the EXEC CICS SPOOLxxxx 
commands to write data to JES to be used by z/OS SMTP (not CSSMTP which we 
do not have running).  My question is simple, but perhaps the answer is 
not.  The question is, what is the best way to get the correct "domain 
name" to be used in the SMTP HELO command?

We have quite a few batch processes that use the z/OS SMTP server to send 
email.  All of them appear to just have coded "HELO ZOS".  While this 
works, it also is not technically "correct" because "ZOS" is not in fact 
the "domain name".  Rather, in our DEV LPAR it should be "zosd.fb" and in 
production "prd1.fb".  So we have a lot of the following the the SMTP 
LOGFILE DD:
EZA5460I 09/02/14 09:01:24 BSMTP Helo Domain: ZOS I've never heard of you!
rather than the more desirable:
EZA5460I 09/02/14 12:23:11 BSMTP Helo Domain: zosd.fb Yours too, I see! 

SMTP doesn't seem to really care.  Other than the message above it still 
works no matter if you supply the "correct" domain or not.


I looked at the source code for the SMTPNOTE CLIST and see that even there 
the value is hardcoded.  Do we just need to make this somehow configurable 
and make sure we configure it with the name of the LPAR the CICS is 
running in?  Seems a bit of overkill.

Honestly, the whole requirement for a user application to actually specify 
SMTP commands seems to me to be more than a little crazy.  And in any 
case, the requirement for specifying "who I am" on the HELO is even odder. 
 Especially since (for example) the Microsoft Exchange SMTP server doesn't 
even require it:

220 ES05.firstbank.fb.ent2 Microsoft ESMTP MAIL Service ready at Tue, 2 
Sep 2014 12:39:56 -0600
HELO
250 ES05.firstbank.fb.ent2 Hello [10.100.5.50]
whereas the z/OS SMTP server does require it.  When not present the email 
is not sent and the SMTP log shows:
EZA5465E 09/02/14 12:48:53 Deleting Spool File from undetermined origin 
job number (JOB04887)


Perhaps in the end I'll just use "HELO ZOS" just like every other email 
job we have.  But I like to have things as "correct" as possible (when 
possible and not a huge amount of extra work).

Thanks,
Frank


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

Reply via email to