Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change smtp port on Iseries

856 views
Skip to first unread message

Newsserver

unread,
Mar 5, 2014, 6:34:56 PM3/5/14
to
Hi all,
I think this issue has been handled before. Google does not help, even the
explanation from IBM does not make sence.
My question is, can I change the smtp port (25) that Iseries use for sending
out messages. If I go to WRKSRVTBLE and change the smtp port numbers nothing
happens, even endtcp and starting tcp does not help. Could someone give me a
short description of action to take.
Thanks,
Ace



--- news://freenews.netfront.net/ - complaints: ne...@netfront.net ---

CRPence

unread,
Mar 5, 2014, 11:03:44 PM3/5/14
to
On 05-Mar-2014 15:34 -0800, Newsserver wrote:
>
> I think this issue has been handled before. Google does not help,
> even the explanation from IBM does not make sense.

Difficult to know what is referred to, without either a link to or a
quote of, what is alluded as being "the explanation from IBM".

> My question is, can I change the SMTP port (25) that iSeries use for
> sending out messages.

The well-known SMTP port 25 is for listening; i.e. the port other
specify to connect-to\initiate an SMTP session with your iSeries.? So
you want the iSeries as SMTP client to try to reach other listeners
[i.e. initiate an SMTP session connection to other systems] using a
non-standard port number, because those other systems are not
using\listening-on the standard port?

> If I go to WRKSRVTBLE and change the SMTP port numbers nothing
> happens, even ENDTCP and starting TCP does not help.
> Could someone give me a short description of action to take.

Hmm, the following document [copied effectively in entirety] says an
additional required step is to stop\start MSF [i.e. ENDMSF and STRMSF]
and oddly, seems to fail to mention an ENDTCPSVR even though it includes
STRTCPSVR [and I submitted no comment\feedback with regard to failing to
mention either the Mail Server Framework commands or the End TCP Server
request:

<www.ibm.com/support/docview.wss?uid=nas8N1017287>
Reference #: N1017287
Modified date: 2013-02-04
_Binding the OS/400 SMTP Server to a Different Port_
"Technote (troubleshooting)

_Problem_ (Abstract)

This document explains how to bind the IBM OS/400 or IBM i5/OS SMTP
server to a different port rather than the default 25.

_Resolving the problem_

This document explains how to bind the IBM OS/400 or IBM i5/OS 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 TCP in port 24:

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 UDP:

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

Press the Enter key.

6. Start TCP server for SMTP by issuing the following command:

STRTCPSVR *SMTP

7. End and start QMSF.

Historical Number: 23903419
..."

--
Regards, Chuck

Ace

unread,
Mar 7, 2014, 8:29:20 AM3/7/14
to

"CRPence" <CRP...@vnet.ibm.com> schreef in bericht
news:lf8s30$hel$1...@speranza.aioe.org...
Chuck,

With the explanation from IBM I referred to the text that you quote.
I did exactly what IBM wrote but after starting SMTP it could not find my
SMTP server. At that time I posted this message.
Changing the port on the WRKSRVTBLE is not sufficient to change port 25 to
24. On my SMTP server ( a DELL PC running MDaemon) I can change the port it
is listening on, but just changing port 25 on the server table does not
work.

Ace

unread,
Mar 7, 2014, 8:32:16 AM3/7/14
to

"CRPence" <CRP...@vnet.ibm.com> schreef in bericht
news:lf8s30$hel$1...@speranza.aioe.org...
Besides that, the AS400 should send it's messages thru port 25 because my
SMTP server is listening on that port, I assume.
So I like the AS400 send out its messages over another port other than 25.

Thx,

Ace

unread,
Mar 7, 2014, 5:54:54 PM3/7/14
to

"CRPence" <CRP...@vnet.ibm.com> schreef in bericht
news:lf8s30$hel$1...@speranza.aioe.org...
We use SNDM from Uzaemon. That works totally outside the OS/400 SMTP
software. We even have *SMTP shut down.
I have seen that port 25 is hardcoded in the RPGLE program that is used. So
I think I only have to change this portnumber and REXX the software again. I
am going to try that.

Ace.

CRPence

unread,
Mar 9, 2014, 3:27:32 PM3/9/14
to
On 07-Mar-2014 05:29 -0800, Ace wrote:
> On 05-Mar-2014 20:03 -0800, CRPence wrote:
>> On 05-Mar-2014 15:34 -0800, Newsserver wrote:
>>>
>>> <<SNIP>>
>>
>>> My question is, can I change the SMTP port (25) that iSeries use
>>> for sending out messages.
>>
>> The well-known SMTP port 25 is for listening; i.e. the port others
>> specify to connect-to\initiate an SMTP session with your iSeries.?
>> So you want the iSeries as SMTP client to try to reach other
>> listeners [i.e. initiate an SMTP session connection to other
>> systems] using a non-standard port number, because those other
>> systems are not using\listening-on the standard port?
>>
>>> If I go to WRKSRVTBLE and change the SMTP port numbers nothing
>>> happens, even ENDTCP and starting TCP does not help. Could
>>> someone give me a short description of action to take.
>>
>> Hmm, the following document [copied effectively in entirety] says
>> an additional required step is to stop\start MSF [i.e. ENDMSF and
>> STRMSF] and oddly, seems to fail to mention an ENDTCPSVR even
>> though it includes STRTCPSVR [and I submitted no comment\feedback
>> with regard to failing to mention either the Mail Server Framework
>> commands or the End TCP Server request:
>>
>> <www.ibm.com/support/docview.wss?uid=nas8N1017287>
>> Reference #: N1017287
>> <<SNIP>>
>>
>
> With the explanation from IBM I referred to the text that you quote.
> I did exactly what IBM wrote but after starting SMTP it could not
> find my SMTP server. At that time I posted this message. Changing the
> port on the WRKSRVTBLE is not sufficient to change port 25 to 24. On
> my SMTP server ( a DELL PC running MDaemon) I can change the port it
> is listening on, but just changing port 25 on the server table does
> not work.

I think my understanding is correct then. By that change, the SMTP
server would be _listening_ on port 24. Presumably, something
else\additionally must be done, to make whatever performs as the SMTP
client, to change the port of whatever is that client feature being
used, to connect to the proper non-standard port on the other system.

p.s. Seems by another followup reply, that is what is being pursued;
I had to shutdown the computer, so my reply composed above was saved as
a draft, and I decided to send it anyway.

--
Regards, Chuck
0 new messages