Starting from OS/400 v4r1, you can set the SMTP gateway, direct to an external email server (Lotus Domino, miscrosoft exchange, etc.) to help forward Internet mail. That is, Series I 400 automatically sends the mail to your specified MailServer, then the MailServer sends the email to the Internet. the implementation steps are as follows:
(1) set the TCP/IP environment and run the following command:
Select 10 (work with TCP/IP host table entries) and register the external MailServer name and corresponding IP address into hosttable.
(2) run the command chgsmtpa to confirm the parameter settings:
Autostart (* yes) and mailrouter (Mail-server-name ).
(3) registered users:
Adddire usrid (Internet smtprte) usrd ('Internet SMTP gateway') sysname (Internet) prefadr (netusrid * IBM atcontxt)
(4) modify the sending attributes:
Chgdsta smtprte (Internet smtprte)
(5) restart the tcp smtp Service:
Endtcpsvr * SMTP, strtcpsvr * SMTP
(6) Use wrkdire and confirm that the user who wants to use this function is also registered with the directory entry.
(7) test:
Snddst type (* lmsg) tointnet (E-mail address) dstd ('mail test message') lmsg ('mail test message ')
(if Chinese characters are transmitted, snddst type (* DOC) can only be sent as attachments:
crtflr FLR (chsfile)
cpytopcd fromfile (XXXX) toflr (chsfile) frommbr (XXX) todoc (XXXX. TXT) trntbl (* none) trnigc (* scgs)
snddst type (* DOC) tointnet (E-mail address) dstd ('test message') Doc (XXXX. TXT) FLR (temp)