View Full Version : Configuring SMTP for sending e-mail
Guest.Visitor
01-01-1995, 02:00 AM
Hello folks, what are the steps to follow in order to have SMTP configured on the AS/400 and use SNDDST cmd ? I would like to investigate both the possibilities of having an external server that acts as a SMTP server and the AS/400 itself that is a SMTP server. Any help is appreciated. Regards, Simone
dchristie
12-11-2000, 05:04 AM
Here is a list of instructions I've accumulated from this site and others (As Always, use at own risk): <H3> SMTP configuration</H3> <pre> The following assumes that TCP has been previously configured. 1. Type CFGTCP, and select option 10. Create an entry with INTNETADR('999.99.999.999') HOSTNAME('server-name') TEXT('Mail server') 2. Select option 12 from CFGTCP menu (DNS Server address). Enter HOSTNAME('current system') DMNNAME('xx.com') HOSTSCHPTY(*REMOTE) INTNETADR('999.99.99.999') 3. CHGSMTPA AUTOSTART(*YES) MAILROUTER('server-name') 4. ADDDIRE USRID(INTERNET GATEWAY) URSD('Internet SMTP gateway') SYSNAME(INTERNET) PREFADR(NETUSRID *IBM ATCONTXT) 5. CHGDSTA SMTPRTE(INTERNET GATEWAY) 6. ENDTCPSVR *SMTP 7. ENDMSF 8. STRTCPSVR *SMTP 9. STRMSF </pre> <H3> Checking for errors</H3> <pre> 1. WRKACTJOB SBS(QSYSWRK), F14=Include Check the joblog on the following jobs: QMSF QTSMT* </pre> <H3> Clearing old messages </H3> <pre> 1. ENDTCPSVR *SMTP 2. CRTDTAARA DTAARA(QUSRSYS/QTMSCLEAN) TYPE(*CHAR) LEN(1) VALUE('c') AUT(*ALL) 3. STRTCPSVR *SMTP </pre> <H3> Setting the correct time on mail messages </H3> <pre> If the time of messages sent from the 400 is incorrect. The system value for QUTCOFFSET must be changed. To determine the value, double click on Windows time, select Time Zone. </pre> <H3> Attachments being Split or Converted</H3> <pre> CHGPOPA MSGSPLIT(*NOMAX) </pre> <H3> Changing from address on messages </H3> <pre> CHGDIRE USRID(usrprf system) USRDFNFLD((SMTPAUSRID SMTP name) (SMTPDMN SMTP XX.COM)) </pre> <H3> Sending a text message </H3> <pre> SNDDST TYPE(*LMSG) TOINTNET((me@xx.com)) DSTD('This is the subject') LONGMSG('The is the message') </pre> <H3> Sending a document </H3> <pre> 1. CHGDOCD DOC(MYDOC) FLR(MYFLR) DOCD('Subject line') 2. SNDDST TYPE(*DOC) TOINTNET((me@xx.com)) DSTD(SUBJECT) DOC(MYDOC) FLR(MYFLR) 3. CHGDOCD DOC(MYDOC) FLR(MYFLR) DOCD('Document text') </pre>
Guest.Visitor
12-11-2000, 05:12 AM
Thanks a lot, David
Guest.Visitor
12-11-2000, 09:43 AM
David, I do not understand something. We have 2 scenarios: 1) it is working properly; it uses an internal remote SMTP server, we have defined everything you said plus a TCP/IP route 2) an other AS/400 which is not in the local LAN, does not have on its local LAN a SMTP server. We would like to send e-mails from the AS/400 to the Lotus notes Clients inside that network. What are we missing ? The procedure seems not to work. Could you please give us a help ? Thanks, Simone
dchristie
12-11-2000, 10:22 AM
Unfortunately, I have no Lotus notes experience. Maybe someone can pick it up from here.
dchristie
12-11-2000, 10:29 AM
You can also find some information at IBM's Knowledge Base at: http://as400service.rochester.ibm.com/supporthome.nsf/Document/10000051
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.