Home > AS/400 Tips > iSeries administrator tips > Configure your iSeries to send e-mail
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Configure your iSeries to send e-mail


Jean-Marie Sauvageot
04.22.2002
Rating: -4.40- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Activate SMTP service on iSeries systems to send e-mail. Your iSeries system can be used to send e-mail to your e-mail server. To do this using the Send Distribution (SNDDST) command, follow this procedure. The sender of the e-mail must be a local SNADS user.

1. Enter command CFGTCP
2. Choose option "20. Configure TCP/IP applications"
3. Choose option "12. Configure SMTP"
4. Choose option "3. Change SMTP attributes"
5. Set value "Autostart server . . . . . . . . *YES"

Automatic registration . . . . . *NO
User ID prefix . . . . . . . . QSM
Address . . . . . . . . . . . QSMRMTAD
System name . . . . . . . . TCPIP
Alias table type . . . . . . . *SYSTEM
Mail router . . . . . . . . . . 'mymailserver@company.com'

('mymailserver@company.com' is the DNS name of your mail server, please check first locally which DNS name and TCP/IP address you'll have to use.)

The local mail server DNS name and IP Address has in any case to be added into the local AS/400 TCP/IP Host table using command CFGTCP and option 10. Work with TCP/IP host table entries .

In our configuration we've added Internet address 111.11.111.111 with Host Name 'mymailserver@company.com'

6. Add following 2 entries in the Directory Entries table:

ADDDIRE USRID(INTERNET GATEWAY) USRD('Context switching entry')
SYSNAME(TCPIP) MSFSRVLVL(*USRIDX) PREFADR(NETUSRID *IBM ATCONTXT)

ADDDIRE USRID(QSMTPDMY QSMTPSYS) USRD('QSMTP user') SYSNAME(TCPIP) MSFSRVLVL(*USRIDX)

7. For each DIRE user you want to send an e-mail to, change his entry using command (here an example for my own profile on system BASLE.)

CHGDIRE USRID(USERNAME BASEL) USER(USERNAME) NETUSRID('USERNA...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Tracking critical file access in real time
Create an iSeries Access image and update it with the latest Service Pack

iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

Integrated File System (IFS)
How to view source files in the library
User being locked out by Windows share on iSeries
Incorrect CCSID on FTP connection from AS/400 to Windows
Trouble accessing IFS path from Win2k3 server
How to use an API for adding users to EIM SSO implemenation
Transfer files from one environment to another without closing all other AS/400 sessions
Securing the integrated file system on IBM System i
Generically send a text file from the IFS via FTP
Setting ILE and C+++ compilers to runtime
Use a virtual directory to move a .bmp file from the IFS to a remote server to run a software package

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


ME BASEL') USRDFNFLD((SMTPAUSRID SMTP 'firstname.lastname') (SMTPDMN SMTP 'company.com')) MSFSRVLVL(*SYSMS) PREFADR(*SMTP)

firstname.lastname is the part from your email address before the "@" character

company.com is the part from your e-mail address after the "@" character

8. Use command CHGTCPDMN to set
* HOSTNAME to BASEL (BASEL is an example; enter your system name here.)
* DMNNAME to company.com (company.com is an example; enter here your company domain name.)

To send an e-mail use command:

SNDDST TYPE(*MSG) TOUSRID((USERNAME BASEL)) DSTD('Description text') MSG('Message text')

To send e-mail to users not defined in WRKDIRE change once the Distribution Attributes using command:

CHGDSTA SMTPRTE(INTERNET GATEWAY)

Up to now, you can use following command (Information type has to be set to *LMSG) to send directly to an Internet address:

SNDDST TYPE(*LMSG) TOINTNET
(('reciepient email address')) DSTD('Description text') MSG('Message text') LONGMSG('Long message text')

Be aware to stop and restart the SMTP Server using:

* ENDTCPSVR SERVER(*SMTP)
* STRTCPSVR SERVER(*SMTP)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts