fhg
Volume 9, Number 10 -- March 18, 2009

Admin Alert: Changing your SMTP Server is Easy-ish

Published: March 18, 2009

by Joe Hertvik

My shop recently upgraded its email system from Novell GroupWise to Microsoft Exchange. Along with the server change, we also had to reconfigure six i5/OS partitions to use the new Exchange server as their SMTP relay. If you're faced with this type of issue, here's an easy checklist for painlessly making the change.

Three Easy Steps

Changing your iSeries/System i/Power i SMTP relay is a relatively easy process with one or two minor kinks. There are three keys to making this change.

  1. Change the SMTP mail relay settings. This can be done either on the green-screen or in iSeries Navigator (OpsNav)
  2. Change the mail relay settings on any third party software packages that don't explicitly use the SMTP mail router
  3. Shut down and restart the i5/OS SMTP server and possibly the AnyMail/400 Mail Server framework

I'll run through these issues and you'll see how easy it is to make this change.

Step 1: Changing the SMTP Mail Relay Settings

An email forwarding server can be called by several different names including the mail router, SMTP relay, SMTP server name, or it can even be designated by the IP address of an outside SMTP server. These terms all refer to the same thing, which is the DNS name of an SMTP email server that will relay AS/400-based email to the outside world. Although an iSeries/System i/Power i SMTP server can function as a mail relay for another partition, most shops forward their i5/OS-generated email to an outside machine, such as an Exchange server.

Before you can reconfigure your setup to forward email to another server, check with your email System Administrator to ensure that your i5/OS partition is on the authorized relay list for the target SMTP server. If your partition isn't authorized to forward email through the new SMTP server, you could change your configuration only to wind up having your email rejected because of authority issues.

There are two ways to change the SMTP relay that your i5/OS partition routes email to. To change it on the green screen, type in the following Change SMTP Attributes command (CHGSMTPA) and press F4 to prompt for its parameters.

CHGSMTPA

This command allows you to change the parameters associated with the i5/OS SMTP server. Page down to the second CHGSMTPA screen and you'll see a parameter called Mail Router (MAILROUTER). Enter the fully qualified DNS name of your new SMTP relay server in this field. For example, if I'm changing my configuration to send SMTP email to a server with a DNS entry of exchange.joesystemi.com, I would change my SMTP parameters on the second CHGSMTPA screen to look like this.

Change SMTP Attributes (CHGSMTPA)

Type choices, press Enter.

User ID delimiter  . . . . . . . USRIDDELIM   '?'
Mail router  . . . . . . . . . . MAILROUTER   'exchange.joesystemi.com'

Coded character set identifier   CCSID        00819
Outgoing EBCDIC/ASCII table:     TBLSMTPOUT
  Outgoing EBCDIC/ASCII table  .              *CCSID
    Library  . . . . . . . . . .
Incoming ASCII/EBCDIC table:     TBLSMTPIN            
  Incoming ASCII/EBCDIC table  .              *CCSID
    Library  . . . . . . . . . .
Firewall . . . . . . . . . . . . FIREWALL     *YES
Journal  . . . . . . . . . . . . JOURNAL      *YES
Process all mail through MSF . . ALLMAILMSF   *NO
Percent routing character  . . . PCTRTGCHR    *YES

Fill in the DNS name of your new SMTP relay, press enter, and your SMTP server parameters will be changed.

To change the SMTP relay setting using OpsNav, open the Network→Servers&rarr TCP/IP node under your target partition and right-click on the SMTP server entry that appears in OpsNav's right-hand pane. Click on Properties from the pop-up menu that appears and you will find the SMTP mail router field under the General tab of the SMTP Properties window that comes up. Put in your new SMTP server name and click OK to save the setting.

However, just because you've changed the SMTP mail router parameter doesn't mean you're ready to use the new SMTP relay. You first have to follow a few more quick steps.

Step 2: Changing Third-Party Software SMTP Mail Settings

If you're using any third-party packages that deliver email through SMTP, you may also have to reconfigure the software's SMTP settings to point to the new relay server. In my shop, we use Gumbo Software's Spoolmail package for emailing reports and Bytware's MessengerConsole to send email alerts when there's a system problem. Spoolmail uses the mail router setting from the i5/OS SMTP server, while MessengerConsole has a separate SMTP server name for designating the SMTP relay. The morale is that all email-based packages may have a different way of designating their relay server, so check your third-party software documentation for any individual SMTP settings that need to be changed.

Step 3: Restarting Your SMTP Server and Possibly Your AnyMail/400 Mail Server Framework

After you've changed your SMTP mail router setting, you need to stop and restart your SMTP server and possibly your AnyMail/400 Mail Server Framework for the changes to take effect.

While the SMTP server is a standard SMTP implementation inside the operating system, the AnyMail/400 Mail Server Framework (MSF) is a different animal. According to IBM, the MSF is an open structure for electronic mail distribution that is provided with the operating system. It also provides a set of mail-related functions for use in i5/OS as well as inside the older OS/400 operating system. For more details on MSF, see the AnyMail/400 Mail Server Framework manual (SC41-5411-00).

To determine if you're running MSF on your partition, type in the following Work with Job command (WRKJOB).

WRKJOB JOB(QMSF)

If the Select Job display that appears shows active QMSF jobs, then you are running MSF on your system, and you will need to stop and restart it along with your SMTP server to get the new mail setting to work.

To restart QMSF and the SMTP server, enter the following commands from a green-screen control line.

ENDMSF OPTION(*IMMED)
ENDTCPSVR SERVER(*SMTP)
STRTCPSVR SERVER(*SMTP)
STRMSF

Be sure to enter these commands in this sequence.

The End Mail Server Framework (ENDMSF) and Start Mail Server Framework (STRMSF) commands end and restart the Mail Server Framework on your machine, while the two End TCP/IP Server (ENDTCPSVR) and Start TCP/IP Server (STRTCPSVR) commands stop and restart your SMTP server. Although you can restart SMTP from OpsNav, I've haven't found any easy way to restart the MSF jobs from the graphical interface. So I usually restart these servers from the green-screen.

If you're not running MSF, you can just stop and restart the SMTP server, and the new settings should take effect.

And that's the drill for changing the SMTP mail router setting on an i5/OS or OS/400 machine.




                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
SYSTEM i DEVELOPER

Upgrade your skills at the Summit!

Come to the RPG & DB2 Summit in Orlando,
April 15-17, for three full days of intense
education focused on RPG IV, SQL, DB2, ILE,
V6R1, PHP, RSE/WDSC/RDi, the Web & more.

Learn the latest in practical, usable tips and
techniques from top gurus Susan Gantner,
Skip Marchesani, Jon Paris, Paul Tuohy,
Scott Klement
and others in a fun, highly
interactive, invigorating environment. You'll
leave the Summit re-energized and eager to
use all your new skills and ideas.

Check out the Session Grid
Register by April 3 to save $100!


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Edwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

New Generation Software:  Watch a demo, then test drive NGS-IQ
Northeast User Groups Conference:  19th Annual Conference, April 6 - 8, Framingham, MA
COMMON:  Join us at the 2009 annual meeting and expo, April 26-30, Reno, Nevada


 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
The iSeries Express Web Implementer's Guide: List Price, $49.95
Getting Started with PHP for i5/OS: List Price, $59.95
The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
Can the AS/400 Survive IBM?: List Price, $49.00
Chip Wars: List Price, $29.95


 
The Four Hundred
The Data Center Is the Computer

IBM and Partners Work on Future Chip Tech

IBM-Marist Survey Emphasizes Technology in Education and Careers

Mad Dog 21/21: The Case of the Vanishing Equity

Disk Arrays Sales Down in Q4; IBM Slammed

Four Hundred Stuff
Codelyzer Offers Relief from Application Maintenance Burdens

Raz-Lee Summarizes i OS Security Settings in New Compliance Product

Aldon Stresses Importance of End Users with Updated Help Desk

Tape Backup Recovery Points Improved With RecoverNow

Upstart i Developer Brings AS/400s to the Cloud

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
March 14, 2009: Volume 11, Number 11

March 7, 2009: Volume 11, Number 10

February 28, 2009: Volume 11, Number 9

February 21, 2009: Volume 11, Number 8

February 14, 2009: Volume 11, Number 7

February 7, 2009: Volume 11, Number 6

TPM at The Register
Cisco throws California virt-server gauntlet

Storage software bucks hardware sales trend

HP in NonStop rack server chase

Cloudera floats commercial Hadoop distro

DellHPSunIBM unmoved by Cisco blades

Fusion-io ups SSD ante

Sun parks cloud at data center Valhalla

Supercomputer niche chucks rocks at Nehalem

IBM rejiggers x64 servers, blades

Texas Memory Systems punts Texas-sized SSD

Have IT vendors been hit harder than IT departments?

Sun beefs servers with SSDs

Stratus punts freebie VMware virt software

IBM not worried about Cisco blades

THIS ISSUE SPONSORED BY:

Help/Systems
COMMON
System i Developer


Printer Friendly Version


TABLE OF CONTENTS
Looking for Commitment, Part 2

Treasury of New DB2 6.1 (V6R1) Features, Part 3: Client Special Registers

Admin Alert: Changing your SMTP Server is Easy-ish

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
How to return value from CL program?

ADO.NET/IBM.Data.DB2.iSeries/ iDB2Connection

Order by alias names

SQL procedure

Insert via Java

iSeries Access for Web

Mimix installation and configuration docs




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2009 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement