Before starting, make sure you have a valid return mail address for the User ID you will be using to send your test messages. On the ESEND configuration menu run the ‘Work with E-mail FROM Addresses’ option (ESNDADR). Enter a record for the User ID that you are using for testing, along with a valid return email address. After entering a record, continue with step 1 of the Basic Configuration section.
Basic Configuration
Whether you are configuring email for the first time, or trying to determine why you experienced an error or failed email, you should always start with the six steps in this section. Then, continue with the next section to configure the System i to relay email to your mail router.
Relay Email to a Mail Router (recommended)
The steps in this section describe the configuration to relay email through your company’s mail router.
1B. | If you don’t know the name of your mail router, you may be able to find it in your Windows settings. For Windows XP, navigate to: Start\Settings\Control Panel. Double-click the Mail Icon. |
|
![]() |
Press the E-mail Accounts button (a). Select ‘View or Change Existing Accounts’ and press Next (b). Select the listed mail server and press the Change button (c). Make a note of the mail server name and/or IP address (d). You may want to verify this information with your system administrator. |
|
For Windows 7, navigate to: Start\Control Panel\User Accounts. Double-click the Mail Icon. | ||
![]() |
Press the E-mail Accounts button (a). Select the listed mail server and press the Change icon (b). Make a note of the mail server name and/or IP address (c). You may want to verify this information with your system administrator. |
ENDTCPSVR *SMTP ENDMSF STRTCPSVR *SMTP STRMSF
TELNET ‘MAILROUTERNAME’ PORT(25)If telnet is successful, you will be in a telnet session with the named mail router which means ESEND should work (exit the telnet session by entering the command ‘QUIT’ once or twice). If telnet fails, work with your network/email administrator to learn why.
Note: You may see a situation where local mail (inside your network) works, but mail sent outside your network fails. This is not uncommon as many mail routers are configured to prevent being used as open mail relays. Most mail routers can be configured to safely relay mail from specific addresses, thus enabling the feature without running the risk of being used by spammers. Each mail server product will have its own configuration steps. Contact your Network Administrator for assistance.
Send Email Directly from the System i (optional)
Use these steps only if you find that email can’t or won’t relay from your mail router.
For Windows XP, navigate to: Start\Network Settings. | |
![]() |
Right-click ‘Local Area Network’ and select Properties (a). Highlight the list item ‘Internet Protocol(TCP/IP)’ and press the Properties button (b). Make note of the domain name and any DNS servers listed (c). You may want to verify this information with your system administrator. |
For Windows 7, navigate to: Start\Control Panel\Network and Sharing Center. | |
![]() |
Select the option to ‘Change adapter settings’ (a). Right-click the Local Area Connection icon and select Properties (b). Highlight the list item ‘Internet Protocol(TCP/IPxx)’ and press the Properties button (c). Make note of the domain name andany DNS servers listed (d). You may want to verify this information with your system administrator. |
ENDTCPSVR *SMTP ENDMSF STRTCPSVR *SMTP STRMSF
Note: Email sent using DNS (rather than a local mail router) will appear to have a ‘faked’ from address, and may be rejected by some spam blockers.
Still have questions? We can help. Submit a case to Technical Support.