Skip to main content  
        IBM System i home   |   Easy400     |   MMail  
Public-Source
 
Introduction
Installation
Define users
Work as user
Appendix A - Setting the environment for local mail users
Appendix B - Mail receiving and delivering system
Appendix C - Processing incoming mail your own way
Appendix D - Tools
Appendix E - AMailer commands
FAQ
Index
 
Download
 
 

 
Search   
AMailer - AppendixA
Setting the environment for local mail users

By local user we mean an user who

  • has no mail address registered at an Internet Service Provider (ISP)
  • has HTTP access to an iSeries equipped with the AMailer utility
  • wants to be enrolled as AMailer users, in order to exchange mail with other local users and occasionally send mail to Internet mail users (though a local user cannot receive mail from them)
An example of such users could be the employees of a company owning an iSeries box.

In order to support local users, some TCP definitions must be set and/or retrieved.
This is how you do it.

  • Step 1-Get the local IP address to access the local POP3 server
    That is the same IP address that you would use to ping the IBMi from the inside / outside network and is usually documented in command CFGTCP option10( Host Table Entries) in front of the Host Name of this system in Internet.
    If this is unsuccessful, your TCP/IP configuration is missing something and you have to go through the following steps:
    1. Step 1A-Set domain information
      Run command CFGTCP, take option 12 (Change TCP/IP domain):
      Figure A2A
      Figure A2A1
      Figure A2A - Set domain information
      Notes.
      • Make sure that parameter HOSTSCHPTY (Host name search priority) is set to *LOCAL.
      • Up to three IP addresses may be specified for parameter INTNETADR (Domain name server). Each of those addresses may be either local or Internet.
    2. Step 1B-Define a host name
      Run command CFGTCP, take option 10 (Work with TCP/IP host table entries) and add the followind entry:
      Figure A2B
      Figure A2B - Adding a host table entry
      Note. To find out the appropriate IP address for this host table entry, you may use command CFGTCP, option 1 (Work with TCP/IP Interfaces), and select a local IP address of a line type *ELAN.

  • Step 2-Get the port number of the local POP3 server
    This piece of information is needed to correctly define a Local mail user through AMailer.

    Use the following procedure to find out the port used for the POP3 server:

    1. Run command STRTCPSVR SERVER(*POP)
    2. Run command NETSTAT
      1. take option 3 (Work with TCP/IP Connection Status)
      2. look under column "Local Port" until you find "pop3"
      3. use option 5 to display the local IP address used by POP3
      4. press F14 (Display port numbers) to get the port number used by POP3.

  • Step 3-Verify the local POP3 connectivity
    In order to verify the local POP3 connectivity:
    • Run command
      TELNET RMTSYS('IP address_of_the_local_POP3_server') PORT(Port_of_the_local_POP3_server)
      • for the IP address_of_the_local_POP3_server, see FigureA2B
      • for the Port_of_the_local_POP3_server, see Step 3
      • example: TELNET RMTSYS('10.0.10.205') PORT(110)
    • As a result of this TELNET command, the local POP3 server should respond:
      Figure A3
      Figure A3 - Correct response from the local POP3 server
      If you get no response, or you get a response different from the one expected,
      (example: "+OK Microsoft Exchange Server ..."), then the local POP3 IP address or port you specified is wrong.

  • Step 4-Get the local IP address used by the local SMTP server
    This piece of information is needed to define PC mailer (for instance, OUTLOOK) accounts.

    Use the following procedure to find out the local IP address used by the local SMTP server:

    1. Run command STRTCPSVR SERVER(*SMTP)
    2. Run command NETSTAT
      1. take option 3 (Work with TCP/IP Connection Status)
      2. look under column "Local Port" until you find "smtp"
      3. use option 5 to display the local IP address used by SMTP

  • STEP 5
    The following TCP servers must be active in order to support mail processing:
    • POP (strtcpsvr *pop)
    • SMTP (strtcpsvr *smtp)
    • MSF (strmsf)

How local users may send / receive mail with their PC's

Once local users have been defined to the iSeries through the process mastered by AMailer (see Define an Internal User), they can send / receive mail through the AMailer webmail (see Work as a user) or even better through their PC mailer (Outlook, Firefox, Lotus Notes, or what you have).

In short, what you have to do with you PC mailer is to define an account that would allow to send and to receive mail by asking services to the iSeries SMTP and POP servers (of course the client PC's must be in a LAN or a VPN with the iSeries).

The following example shows how you can define such an account with Outlook Express (other PC mailers are similar).
In the example we are making the following assumptions:

  1. The iSeries domain to be used for defining local user e-mail addresses is VASI5 (associated to the iSeries active interface 10.0.10.205, as per Figure A2B).
  2. The iSeries SMTP server and POP server are to be contacted at IP address 10.0.10.205 (the SMTP server on standard port number 25, the POP server on standard port number 110).
  3. In this example we want to define an Outlook Express account for Johnny Smith.
    This user has already been defined to the iSeries via AMailer, see Figure 3A2- Creating a local user account from scratch with the following data:
    1. e-mail address: jsmith@VASI5
    2. password: (to be remembered)
    3. user profile assigned: OLV3IXBW, see Figure 4- Existing user accounts

To define the Outlook Express account for Johnny Smith, do the following:

  1. In your Outlook Express select Tools-->Account... to receive the Internet Account pop-up
  2. Press the Add button and select electronic mail to receive the User Name pop-up
  3. Type Johnny Smith and press the Next button to receive the Address for Internet mail window
  4. Type jsmith@VASI5 and press the Next button to receive the Mail Servers Names window
  5. On the Mail Servers Names window
    1. for the Incoming Mail Server is... select POP3
    2. for the Incoming Mail Server (POP3, IMAP or HTTP) type the iSeries IP address 10.0.10.205
    3. for the Outgoing Mail Server (SMTP) type the iSeries IP address 10.0.10.205
    then press the Next button to receive the Access to Internet Mail window
  6. On the Access to Internet Mail window
    1. For the Account name type the user profile assigned to this user: OLV3IXBW
    2. For the Password type the same password that was specified when defining this local user account to AMailer (see Define a new local user account from scratch)
    3. Check the box Save password
    then press the Next button to receive the completion window, where you must just press the End button.


    Contact