Replacing SMTP alerts with CSSMTP

Document ID : KB000105767
Last Modified Date : 13/07/2018
Show Technical Document Details
Issue:
I'm working on replacing SMTPD with the recommended direction to IBM CSSMTP.
Initially when I generated a test email alert I got this - GSVX998E (CAPTURE.GSVVCAPI) SMTP002E Failed to connect to server 10.1.1.14 port 25 RC=0000000C
This was the IP and PORT that SMPTD used after I made this change - BROWSE SYS5.SYSVIEW.R15.CNM4BPRM(OPTIONS)
Command ===> *SMTP-Hostname 10.1.1.14 SMTP-Hostname 10.1.38.65 SMTP-Port 25
The alert comes through but does not appear to be going through CSSMTP.
Is there possibly anything else that would need to change?
I have a batch job that generates an email and I can see that going through CSSMTP in its logfile with level=31
Resolution:
Essentially SYSVIEW is an SMTP client application that generates email, in the same way that SMTPD or CSSMTP are client applications that generate email. SYSVIEW has no real reliance on the SMTPD or CSSMTP NJE Mail Gateway on a z/OS system. 

This IBM doc says in z/OS 2.2 and lower the local SMTPD NJE Mail Gateway contained Listener support, which could be used for forwarding mail to other destinations: 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.e0zm100/smtp_v2r2_only.htm 

It sounds like your original OPTIONS parmlib definitions of:had it going to SMTPD, making use of the SMTP server function in SMTPD which then forwarded it on. 

As hinted at in the above link, and stated in the following link, CSSMTP does not contain this server function and does not provide SMTP listener support: 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.halz002/cssmtp_differences_with_smtpd.htm 

In the end the SYSVIEW OPTIONS parms must point to a valid mail server reachable from the local system, which sounds like what you've changed it to be now.
But even before there was no SYSVIEW requirement for it to be where SMTPD was listening.