pub:smtpi
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | pub:smtpi [2022/06/25 17:02] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Using iMail with the IBM i SMTP and POP Servers ====== | ||
+ | |||
+ | One can effectively use the IBM i SMTP and POP servers to route emails originated \\ | ||
+ | by iMail. These servers are part of the core operating system and thus no extra cost. | ||
+ | |||
+ | The IP of the IBM System i in this example will given as 192.168.0.128. | ||
+ | |||
+ | |||
+ | __// | ||
+ | |||
+ | ===== Requirements ===== | ||
+ | |||
+ | You will need:\\ | ||
+ | An email account to use as the from address. This account can be in either of these formats:\\ | ||
+ | JohnDoe@DoeDomain.com, | ||
+ | JohnDoe@Server.DoeDomain.com | ||
+ | |||
+ | These instructions will work with the account in the first, more common format. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Host Table Setup ==== | ||
+ | |||
+ | The IBM i server must understand itself as DoeDomain.com. This can be established\\ | ||
+ | by making an entry in the hosts table, menu CFGTCP option 10. | ||
+ | |||
+ | {{pub: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== User Profile Setup ==== | ||
+ | |||
+ | A user profile, JohnDoe, must be established with a password.\\ | ||
+ | A directory entry must be established for him. | ||
+ | |||
+ | WRKDIRE, option 1 to add. | ||
+ | |||
+ | Complete the first screen as a normal directory entry, then: | ||
+ | |||
+ | Press F19 to add an SMTP name: | ||
+ | |||
+ | {{pub: | ||
+ | |||
+ | Returning to the main definition of the directory entry, page down a few pages \\ | ||
+ | and set the following: | ||
+ | |||
+ | Mail Service Level - 2 | ||
+ | Preferred Address | ||
+ | |||
+ | {{pub: | ||
+ | |||
+ | |||
+ | ==== DNS Requirements ==== | ||
+ | |||
+ | If you intend to transmit emails outside the company' | ||
+ | additional requirements: | ||
+ | |||
+ | === Firewall === | ||
+ | |||
+ | Some companies restrict outbound port 25, the well known smtp port. This port will need to be opened\\ | ||
+ | so that the IBM i may transmit email outside the intranet. | ||
+ | |||
+ | === DNS === | ||
+ | |||
+ | The company' | ||
+ | |||
+ | * An **A** or **CNAME** record must be established for the apparent source IP of the SMTP server. | ||
+ | * An **MX** record must be established for the server name provided in the A or CNAME record. | ||
+ | * The **SPF** must be reviewed, altered and/or created as appropriate to provide for the IBM i SMTP Server. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Configuring iMail ===== | ||
+ | |||
+ | Menu IMAIL, option 1 to configure iMail. | ||
+ | |||
+ | |||
+ | Set the SMTP Host Mail Server to the IP of the IBM i server: | ||
+ | Set the SMTP Port to: 00025\\ | ||
+ | Set the Email Send Method.(SMTP/ | ||
+ | |||
+ | |||
+ | Set these addresses: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Configuring IBM i Servers ===== | ||
+ | |||
+ | Start **Operations Navigator**, | ||
+ | Right click on the SMTP server and select properties. | ||
+ | |||
+ | The following settings are " | ||
+ | This presumes the default setup. | ||
+ | |||
+ | General Tab:\\ | ||
+ | |||
+ | **Use Mail Route**r: None\\ | ||
+ | |||
+ | Relay Restrictions Tab:\\ | ||
+ | |||
+ | **Allow Relay Messages**: | ||
+ | In the bottom of the dialog work with the Addresses Allowed to Relay dialog to \\ | ||
+ | specify the subnets and masks allowed to work with this email server. This should include:\\ | ||
+ | |||
+ | 192.168.0.128 255.255.255.255 to include the IBM i server itself\\ | ||
+ | 192.168.1.0 | ||
+ | |||
+ | Multiple Domains Tab:\\ | ||
+ | |||
+ | Check the checkbox: | ||
+ | Use the dialog to add DoeDomain.com to the interface 192.168.0.128. | ||
+ | |||
+ | Additional Parameters Tab:\\ | ||
+ | |||
+ | Uncheck **Support Delivery Status Notification** to cause the server to return emails to the sender | ||
+ | rather than notify one email address of all failures. | ||
+ | |||
+ | When done click ' | ||
+ | Next right click on the SMTP server and select ' | ||
+ | |||
+ | Next right click on the POP server and select the General Tab: | ||
+ | |||
+ | Check the checkbox to start when TCP/IP is started.\\ | ||
+ | Click the radio button to specify **non-secure only**.\\ | ||
+ | Click ' | ||
+ | Then stop and restart the server as you did for the SMTP server above. | ||
+ | |||
+ | At this point the SMTP and POP servers should both be running. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Using A PC Email Client ===== | ||
+ | |||
+ | Using a PC client such as Outlook, configure a new profile as follows: | ||
+ | |||
+ | 1. User name: johndoe\\ | ||
+ | 2. Password: | ||
+ | 3. Email address: JohnDoe@DoeDomain.com\\ | ||
+ | 4. SMTP Server address: | ||
+ | 5. SMTP Port: 25\\ | ||
+ | 6. Use POP3 for retrieving email, not imap. | ||
+ | |||
+ | You should now be able to send and receive email using Outlook, with the email server being\\ | ||
+ | the IBM i. | ||
+ | |||
+ | |||
+ | ===== Final Test ===== | ||
+ | |||
+ | Go to menu iMail, option 12. Send a message to JohnDoe@DoeDomain.com.\\ | ||
+ | Then, go to Outlook and check for new emails. It should be in the inbox. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | < |
pub/smtpi.txt · Last modified: 2022/06/25 17:02 by 127.0.0.1