IBM Support

How can I configure our SMTP server so that it will not be used as an "open mail relay"?

Question & Answer


Question

We use our z/OS SMTP server to facilitate sending outbound email messages from z/OS batch jobs and CICS, but do
not want it to handle inbound mail that originates from outside this z/OS system, nor do we want it to relay or forward mail to other destinations. How can I configure our SMTP server so that it will not be used as an "open mail relay"?

Answer

You should set INBOUNDOPENLIMIT to 0 in your SMTP configuration file, and then recycle the SMTP server started task. This causes SMTP to not open a listening socket on port 25. Nobody can connect into the SMTP server and use it as a relay.

INBOUNDOPENLIMIT specifies the maximum number of simultaneous TCP connections over which the SMTP server receives mail. When 0 is coded for INBOUNDOPENLIMIT, the SMTP server does not open a listening connection.

Note that if you set INBOUNDOPENLIMIT to 0, you cannot use AUTOLOG to monitor that SMTP is up. If you use AUTOLOG to start SMTP, you need to specify NOAUTOLOG on the TCP/IP PROFILE PORT statement for SMTP.

In z/OS Communications Server: IP Configuration Reference, the NOAUTOLOG parameter on the PORT statement is described as follows:

NOAUTOLOG

Tells the TCP/IP address space not to restart the server if it was stopped previously. Otherwise, the default is to restart the server if it was stopped previously. If the application associated with the job name is an AUTOLOG started procedure, and the port is inactive (for TCP connections, the procedure must have a socket open to that port in the LISTEN state; for UDP connections, the procedure must have a socket open to that port), then AUTOLOG assumes that the procedure is hung; it cancels and restarts it every five minutes. Use NOAUTOLOG to prevent this from occurring.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

ZOSCS COMMSERVER

Document Information

Modified date:
20 July 2015

UID

dwa1203453