Step 5: Set up a TCP-to-NJE mail gateway (Optional)

Before you begin

You can configure the SMTP server to run as a mail gateway between TCP network users and users located on a NJE network attached to the local host. This way NJE users can send mail or data sets to users on TCP hosts using SMTPNOTE. See z/OS Communications Server: IP User's Guide and Commands for more information about SMTPNOTE. For JES2, see z/OS JES2 Initialization and Tuning Guide and z/OS JES2 Initialization and Tuning Reference. For JES3, see z/OS JES3 Initialization and Tuning Guide and z/OS JES3 Initialization and Tuning Reference.

Procedure

Follow these steps to set up your TCP-to-NJE mail gateway:

  1. Add the GATEWAY statement to the SMTP configuration data set. Add other related statements, such as ALTDOMAIN, NJECLASS, NJEDOMAIN, and NJEFORMAT, as required by your configuration.
  2. Issue the SMTPNJE command.
    Read syntax diagramSkip visual syntax diagram
    >>-SMTPNJE--data_set_name(member)--+-------------+-------------><
                                       |    .-JES2-. |   
                                       '-(--+-JES3-+-'   
    
    
    data_set_name(member)
    The name of the input data set for SMTPNJE. It specifies the initialization data set of the JES2 or JES3 subsystem that is scanned for NJE nodes by SMTPNJE. The data set name is the same name as defined on ddname HASPPARM in your JES2 procedure or in the JES3IN ddname in your JES3 procedure.

    member is the JES2PARM member that contains the NODE and DESTID entries for your installation.

    (
    Required delimiter.
    JES2 or JES3
    Denotes whether the initialization data set being pointed to is for JES2 or JES3. If omitted, the default is JES2. For JES2, the SMTPNJE program scans for the keywords NODE and DESTID from which it extracts the information. For JES3, the keyword scanned for is NJERMT.

    The SMTPNJE program creates the NJE host table data set called user_id.SMTPNJE.HOSTINFO. You can rename this data set and include the name of the data set on the SMTPNJE DD statement in the SMTP cataloged procedure. The //SMTPNJE DD statement is required.

  3. Install the SMTP server (along with the TCPIP address space) on the gateway node. Use the GATEWAY, NJEDOMAIN, and NJEFORMAT statements in the configuration data set. Optionally, you can use either the RESTRICT or the SECURE statements to limit which users can use the gateway.