Configuring SMTP E-Mail on
AS/400 for SNA distribution
Add Host Table Entry for SMTP Gateway
Option 10 from CFGTCP - add
a host table entry for the SMTP gateway and call it something like ‘SMTPGATE’
and then CHGSMTPA to add the SMTP gateway as the router (MAILROUTER parm) and
change firewall to 'YES'.
Change the AS/400 TCP/IP Domain
Option 12 from CFGTCP. Make sure your Host Name is the AS/400 name (e.g.
MYAS400 or S103456) and the domain name conforms to your network standard B e.g
mycompany.com or London.yc (if you have your own intranet domain)
You may need a DNS server ‑ if you don't have one, use your ISP’s
Add a Directory Entry as Route
to SMTP Gateway
Add a new entry to the system distribution directory to define the Route
to SMTP gateway. The User ID and Address of this entry is later specified with
the SMPTPRTE parameter for the Change Distribution Attributes (CHGDSTA)
The directory entry must specify the following:
The User ID and Address (USRID) can be anything, but should indicate
that this entry refers to Internet or SMTP users. The suggested entry is:
Users do not need to know this address, but you must specify the same
value when changing the Distribution Attributes in Configure Route to SMTP
Gateway in Distribution Attributes later.
The User entry description
(USRD) again can be anything, but should indicate that this entry refers to Internet or SMTP users. Suggestion:
USRD('User ID to route Internet addresses')
As User profile name (USER),
\NONE should be specified.
The System name (SYSNAME) can be
anything different to this system's name or other system in the SNADS network
(for example, you might choose: INTERNET).
The Network User ID (NETUSRID)
must be the same as the User ID and Address (that is, specify USRID).
The Mail Service Level
(MSFSRVLVL) must be \USRIDX. (that is, option 1 when using the Work with
Directory Entries (WRKDIRE) command.
The Preferred address (PREFADR) must be:
Field Name = NETUSRID,
Product ID = *IBM,
Address Type = ATCONTXT.
Configure Route to SMTP Gateway
in Distribution Attributes
The user ID and address for the system distribution directory entry
added in AConfigure Route to SMTP Gateway in Distribution Attributes@ now needs
to be specified with the Change Distribution Attributes (CHGDSTA) command. In
any AS/400 command line, type CHGDSTA and press F4.
Change Distribution Attributes
Keep recipients . . . . . . . .
Use MSF for local . . . . . . . *NO
Route to SMTP gateway:
User ID . . . . . . . . . . . INTERNET
Address . . . . . . . . . . SMTPRTE
Authorities: You may need to GRTOBJAUT to the mail server framework objects in QSYS.
(Try QMSF* and MSF*)
SNDDST to send a document or file to a
network user, send to user INTERNET on system SMTPRTE, using the INETADR field
for the recipient – ‘email@example.com’