SMTP Server and Mail Handling Questions

   Redirecting All Mail to a Mailer Host

Note:
The steps that follow are applicable only to levels of TCP/IP that precede TCP/IP level 510.

For TCP/IP Level 510 and later, IPMAILERADDRESS ALL support (introduced with APAR PK07003), should instead be used for this type of mail redirection.

 

To redirect all mail handled by the SMTP server to a specific mailer host, use the following steps:

  1. Identify your "mailer" host address via the IPMAILERADDRESS statement in your SMTP configuration file (SMTP CONFIG).

  2. Update the TCPIP DATA file that is referenced by the SMTP server.

    If any name servers contacted by the SMTP server can resolve a destination address specified in a piece of mail directed to the SMTP server, the SMTP server will attempt mail delivery itself. These name servers are identified in the TCPIP DATA file via one or more NSINTERADDR statements.

    If necessary, create a local copy of your TCPIP DATA file on the SMTP server 191 minidisk and remove or comment-out the appropriate NSINTERADDR statements.

    Note:
    The recommended method for managing such a file is to maintain a uniquely-named and configured TCPIP DATA-equivalent file on the TCPMAINT 198 minidisk, and rely upon a customized TCP/IP server exit (TCPRUNXT, or its equivalent) to copy that file to the SMTP server 191 minidisk each time that sever is initialized.

  3. If all NSINTERADDR statements have been deleted from the SMTP-specific TCPIP DATA file, you will likely need to create an SMTP-specific HOSTS LOCAL file. Please refer to the appropriate level of the TCP/IP Planning & Customization book for information to help you create this HOSTS LOCAL file. This file should minimally contain the IP addresses of your VM host and the IP "mailer" host; once it is created, copy it to the SMTP server 191 disk.

With the previously cited files in place, the SMTP server should direct all mail to the "mailer" host identified by your IPMAILERADDRESS statement.