IBM Support

Binding the IBM i SMTP Server to a Different Port

Troubleshooting


Problem

This document explains how to bind the IBM i SMTP server to a different port rather than the default 25.

Resolving The Problem

This document explains how to bind the IBM i SMTP server to a different port:

1.

On the operating system command line, type the following to remove the existing server table entries for SMTP. There should be two entries:

WRKSRVTBLE SERVICE('smtp')

Press the Enter key.
2.Select Option 5 to review contents.
3.Select Option 4 to remove entries.
4.On the operating system command line, type the following to add a new entry for the service, SMTP, for the protocol, TCP. If you wish the SMTP Server to listen on a port other than 24, replace 24 with the desired port.

ADDSRVTBLE SERVICE('smtp') PORT(24) PROTOCOL('tcp') TEXT('Simple Mail Transfer') ALIAS('mail' SMTP MAIL)

Press the Enter key.
5.On the operating system command line, type the following to add a new entry for the server, SMTP, for the protocol, UDP. If you wish the SMTP Server to listen on a port other than 24, replace 24 with the desired port.

ADDSRVTBLE SERVICE('smtp') PORT(24) PROTOCOL('udp') TEXT('Simple Mail Transfer') ALIAS('mail' SMTP MAIL)

Press the Enter key.
6.Restart the SMTP server by issuing the following commands:

ENDTCPSVR *SMTP
STRTCPSVR *SMTP
7.Restart the MSF server.

ENDMSF
STRMSF

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

23903419

Document Information

Modified date:
18 December 2019

UID

nas8N1017287