GUMBO |
Software, Inc. |
Several of our products generate email. When they do so, they pass the email to IBM i's SMTP stack for delivery using IBM's® QtmmSendMail() API. Some of our customers use service providers to handle delivery (aka. forwarding or relaying) of email. Increasingly, email service providers are requiring SMTP Authentication before delivering email. Before V6R1, IBM i's SMTP stack does not support outbound SMTP Authentication. If you are running V6R1 or later, see our companion article for instructions.
This article describes a method of avoiding the problem by configuring IBM i to deliver email directly to the world at large. The three key elements required are:
IBM i will deliver email directly if a mailhub and mail router are not configured. To check or remove the mailhub and mail router specifications, prompt the Change SMTP Attributes (CHGSMTPA) command, page down once and change the Mail router (MAILROUTER) parameter to *NONE:
Change SMTP Attributes (CHGSMTPA) |
If you are running V5R4M0 skip this step. If you are running V6R1M0 or later, page down three more times and change the Forwarding mailhub server (FWDHUBSVR) parameter to *NONE:
Change SMTP Attributes (CHGSMTPA) |
In order to determine how to deliver email for a recipient, IBM i must have access to one or more DNS servers. The IP addresses of the DNS servers you should use are supplied by your internet service provider. If for example your service provider supplies DNS servers 8.8.8.8 and 8.8.4.4, prompt the Change TCP/IP Domain (CHGTCPDMN) command and enter the IP addresses.
Change TCP/IP Domain (CHGTCPDMN) |
To verify that IBM i can
resolve external names run ping ibm.com
. You may or may not receive responses, but you should not receive Unknown host, ibm.com.
If you do not know the IPs to use, a reasonable guess can be retrieved from a PC attached to the local area network that contains the system:
ipconfig /allEnter
|
Alternately, you can use public DNS servers such as:
For a list of additional public DNS servers see en.wikipedia.org/wiki/Public_recursive_name_server.
When IBM i contacts
a recipient's mail server, it introduces itself with the fully qualified
SMTP host name configured using the Change TCP/IP Domain (CHGTCPDMN) command.
In the example below, the machine introduces itself as mailout.ofc.widget.com
.
Change TCP/IP Domain (CHGTCPDMN) |
When a recipient's mail server is contacted by IBM i , the mail server sees the traffic as coming from the publicly visible IP address of your connection. For example, the external IP address of your DSL modem. To determine the IP address seen externally go to network-tools.com. The IP address shown in the search box is the external public IP of your connection. Alternately, go to centralops.net/co/. The IP address shown for user: is the external public IP of your connection.
Increasingly, mail servers are confirming the identity of machines
sending email by performing a DNS look up on the fully qualified host name
sent during the introduction, mailout.ofc.widget.com
in this example. If the IP address returned by DNS is not the same as the visible
IP address the traffic is coming from, email is rejected or discarded as
spam.
To insure that IBM i passes this test, you must add, or have your domain registrar add, an address record and a PTR record for your system's fully qualified SMTP host name to the DNS records for your domain. In this example:
mailout.ofc.widget.com. IN A nnn.nnn.nnn.nnn
nnn.nnn.nnn.nnn IN PTR mailout.ofc.widget.com.
Are added to the DNS records for the domain widget.com
where nnn.nnn.nnn.nnn
is
the publicly visible IP address determined above.