The following describes how to configure an SMTP gateway on your iSeries so that you can send email messages. Your iSeries does not have to be the mail server; you will be able to specify the mail server’s IP address during the setup. Once completed, you will later be able to route your system messages to an email address, and the iSeries will automatically route to your mail server. Your mail server will then deliver the message as it normally would; either routing internally or sending to the Internet. The message is just like any other SMTP email message; you will be able to receive it with any SMTP-compatible client, such as Lotus Notes, Domino, Microsoft Exchange, etc.
Note: You can also read about email configuration for the iSeries server on IBM’s iSeries Information Centre, under the Networking, TCP/IP, email topic.
Do as follows:
Type CHGDSTA and press F4. If “Route to SMTP gateway” is *NONE, then continue with the following:
- Using CFGTCP, option 10=Work with TCP/IP host table entries, verify that your mail server name is in the table (add if necessary).
- From the command line, type PING mail-server-name to verify that the connection is working properly.
- Using CHGSMTPA, verify AUTOSTART(*YES) and MAILROUTER (mail-server-name).
- Run the following commands:
- ADDDIRE USRID(INTERNET GATEWAY) +
USRD(‘Internet SMTP gateway’) SYSNAME(INTERNET) +
PREFADR(NETUSRID *IBM ATCONTXT) - CHGDSTA SMTPRTE(INTERNET GATEWAY)
- ADDDIRE USRID(INTERNET GATEWAY) +
- Verify that the server applications are started:
STRTCPSVR *SMTP - Send a test message:
SNDDST TYPE(*LMSG) TOINTNET(email address) +
DSTD(‘Test message’) LMSG(‘Test message’)Verify that the message appears in the client. If you receive the CPF9006 “User not enrolled in system distribution directory.” error message, then you must either have System Administrator authority to enroll you in the system directory or use the Work with directory entries (WRKDIRE) command.