Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sending mail from Mainframe
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Tue Sep 09, 2008 4:58 pm    Post subject: Sending mail from Mainframe
Reply with quote

i am trying to implement the mainframe email concept. this is the my job.

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP),DCB=(RECFM=F,LRECL=80)
//SYSUT1 DD *
helo MVSHOST
mail from:<userid@mvshost>
rcpt to:<username@pop3.gmail.com>
data
From: userid@mvshost
To: username@pop3.gmail.com
Subject: Test message from MVS using SMTP
This is a line in the body of the note.

while executing this job i am getting this message,

DATA SET UTILITY - GENERATE
IEB368I SYSTEM DETERMINED BLKSIZE USED FOR OUTPUT

PROCESSING ENDED AT EOD

can any one help me to how to implement the mainframe email concept in mainframe.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Sep 09, 2008 5:05 pm    Post subject:
Reply with quote

The message you got is for information only (you didn't specify any block size at SYSUT2).

Are there any other messages? Have you confirmed with your system programmers that your SMTP class is B?

O.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Sep 09, 2008 5:12 pm    Post subject:
Reply with quote

You really need to talk to your systems programmers. They have to set up parameters in TCP/IP to permit SMTP to function, and these values differ from system to system so we cannot provide a whole lot of information about setting it up. Furthermore, look up RFC 2822 on Google to get the message format -- a period on a line by itself at the end of your email is not optional, for example.
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Sep 09, 2008 5:19 pm    Post subject:
Reply with quote

check this link, might help you
http://www.planetmvs.com/mvsmail/
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Sep 09, 2008 7:16 pm    Post subject:
Reply with quote

Hello,

You can start here, and/or search the Forum for this topic.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Sep 09, 2008 7:20 pm    Post subject:
Reply with quote

Take a look at one of these:

http://www.ibmmainframes.com/viewtopic.php?t=225
http://www.ibmmainframes.com/viewtopic.php?t=3902
http://www.ibmmainframes.com/viewtopic.php?t=4475
http://www.ibmmainframes.com/viewtopic.php?t=4667
http://www.ibmmainframes.com/viewtopic.php?t=6057
http://www.ibmmainframes.com/viewtopic.php?t=2779
http://www.ibmmainframes.com/viewtopic.php?t=7118
http://www.ibmmainframes.com/viewtopic.php?t=8686
http://www.ibmmainframes.com/viewtopic.php?t=8875
http://www.ibmmainframes.com/viewtopic.php?t=10808
http://www.ibmmainframes.com/viewtopic.php?t=3783
http://www.ibmmainframes.com/viewtopic.php?t=12973

and this:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/6.0?DT=20050708142126

and this:

ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt


BTW, I think this topic is no more eligible for discussion in this forum..check this..
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Tue Sep 09, 2008 8:18 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Hi ofer I checked with sysadmin the smtp class is B only.Also I configured the SMTPCONF job to meet my installation and started the SMTP task then what else I need to do for sending mail from MVS .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Sep 09, 2008 8:46 pm    Post subject:
Reply with quote

Once the SMTP task is started, use IEBGENER or other utility to copy your email to SYSOUT=(B,SMTP). Remember to follow the RFC 2822 requirements. SMTP will usually pick up the spooled output within a minute or two (depending on system load, priority, etc) and process it to the mail server it is sending to. At that point it'll depend on routing, email size, and so forth as to how long it takes to get there.

If your email isn't going across, look at the SMTP started task log for possible errors; you can also review the NOTE and ADDRBLOK files under the HLQ specified in your SMTP configuration. If you're really having problems, enable debugging in the SMTP configuration and review the detail results in SYSDEBUG DD name for further information.
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Wed Sep 10, 2008 8:38 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Hi Robert i checked with SMTP started task. its working fine only also i am getting this message in Log file "IBM MVS SMTP CS V1R7 on Wed, 10 Sep 08 20:17:31 EST".

In SYSDEBUG i got this msg,

IBM MVS SMTP CS V1R7 on Wed, 10 Sep 08 20:17:31 EST
-1< EXITPARMS VER 1 ACTN 1 USER TOKEN 0 IPADDR 0 DLEN 0 SAFTOKEN ADDR
-1> USER EXIT RETCODE 4

and how to check whether mail from mainframe is working or not.

can any one send the SMTPCONF file which is working properly or send the documentation/checklist for implementing mainframe mail concept.Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 10, 2008 11:00 pm    Post subject:
Reply with quote

Code:
 -1< EXITPARMS VER 1 USER TOKEN 0 IPADDR 0 DLEN 0 SAFTOKEN ADDR 0
 -1> USER EXIT RETCODE 4
shows up in our SYSDEBUG so it appears that your SMTP task is starting okay.

When you send an email, you should see messages in SYSDEBUG along the lines of
Code:
257> 220 MAINFRAME.******** running IBM MVS SMTP CS V1R8 on Wed, 10 Sep 08 0
257< HELO MAINFRAME
257> 250 MAINFRAME.******** is my domain name.  I've never heard of you!
257< MAIL FROM:<sourceaddress@********.COM>
257> 250 OK
257< RCPT TO:<somebody@********.COM>
257> 250 OK
257< DATA
257> 354 Enter mail body.  End by new line with just a '.'
257> 250 Mail Delivered
The lines with the > mark data from the mainframe, the lines with the < are email data or responses from the mail server.

So when you try to send an email what does your SYSDEBUG show?
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Thu Sep 11, 2008 12:37 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Hi Robert ,
please find the below screen shot for JCL i used to send the mail,
and when i tried to send the mail I can able to see only the following message from SMTP SYSDEBUG.Let me know what else i want to do?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Sep 11, 2008 12:51 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

lease do not post images,
a plain text cut and paste gives he same info with less bandwidth utilization
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Sep 11, 2008 5:07 pm    Post subject:
Reply with quote

Are you seeing any messages in the message log for the SMTP job? We see messages sometimes like
Code:
EZA5477E 09/11/08 02:01:06 Unable to Deliver Note 00000006 to <????????@********.com>


Also, are the NOTE and ADDRBLOK files hanging around or going away?
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Thu Sep 11, 2008 6:44 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

hi robert.. i am not seeing any message like
"EZA5477E 09/11/08 02:01:06 Unable to Deliver Note 00000006 to <????????@********.com>"
from SMTP message log also NOTE and ADDRBLOK files are not located in the volume.
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Mon Sep 15, 2008 12:11 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Hi All,
Now i can able to send the mail.But the problem is i can able to send the mail to within the same MVSHOST. if i am trying to send the mail to other SMTP server like Gmail i am getting the following errors,

Subject: Undeliverable Mail

MVSHOST unable to deliver following mail to recipient(s):
<USERID@SMTP.GMAIL.COM>
MVSHOST received negative reply:
552 Too many hops - threshold exceeded

** Text of Mail follows **
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R7)
with TCP; Mon, 15 Sep 08 11:54:25 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R7)
with TCP; Mon, 15 Sep 08 11:54:23 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R7)
with TCP; Mon, 15 Sep 08 11:54:22 EST
Received: from HCLZOSB (10.108.45.153) by HCLZOSB (IBM MVS SMTP CS V1R7)
with TCP; Mon, 15 Sep 08 11:54:20 EST
Received:from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R7)
***

This is the message i am getting from SYSDEBUG of SMTP,

2< MAIL FROM:<userid@MVSHOST>
2> 250 OK
0< 250 OK
0> RCPT TO:<USERID@SMTP.GMAIL.COM>
2< RCPT TO:<USERID@SMTP.GMAIL.COM>
2> 250 OK
0< 250 OK
0> DATA
2< DATA
2> 354 Enter mail body. End by new line with just a '.'
0< 354 Enter mail body. End by new line with just a '.'
2> 552 Too many hops - threshold exceeded
0< 552 Too many hops - threshold exceeded
0> QUIT
2< QUIT
2> 221 MVSHOST running IBM MVS SMTP CS V1R7 closing connection
0< 221 MVSHOST running IBM MVS SMTP CS V1R7 closing connection
2> Server connection closed: reason Foreign host aborted the connection.

Can any one help me to resolve this problem.Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Mon Sep 15, 2008 5:13 pm    Post subject:
Reply with quote

Did you try sending to <USERID@GMAIL.COM>? Most mail is sent to an actual address; the mail server handles SMTP without requiring an explicit destination of SMTP.domain.name.
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Mon Sep 15, 2008 5:45 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Yes Robert, I also tried that, but i got same error msg...

0> 552 Too many hops - threshold exceeded
1< 552 Too many hops - threshold exceeded
1> QUIT
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Mon Sep 15, 2008 6:37 pm    Post subject:
Reply with quote

The 552 message implies there's a problem with your routing table; possibly a loop in the network? If you go to your mainframe OMVS and do a ping on a common site, what do you get back? I suspect if you get the TCP/IP definitions right, the SMTP problem may go away.
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Tue Sep 16, 2008 4:54 pm    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

Yes when trying to send the mail to Gmail it's goes into loop mail,
and its created the dataset called 'SMTP.CONN0.LOOPMAIL' in the system.
this dataset contains the looping message's like,

Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:58 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:56 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:54 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:52 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:51 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:49 EST
Received: from MVSHOST (xx.xxx.xx.xxx) by MVSHOST (IBM MVS SMTP CS V1R
with TCP; Tue, 16 Sep 08 14:11:45 EST

Date: 16 Sep 08 14:10:22 IST
From: USERID@MVSHOST
To: USERID@GMAIL.COM
Subject: TEST GMAIL

GMAIL TEST MSG

Also how to do a ping on a common site? Do u have any common site IP address,
when i am tried to PING on my/other system which is connected to the local network
i can get the folowing msg,

$ ping 10.108.39.212
CS V1R7: Pinging host 10.108.39.212
Ping #1 response took 0.010 seconds.
Back to top
View user's profile Send private message
arunkumarvks

New User


Joined: 16 Jun 2008
Posts: 30
Location: Chennai

PostPosted: Thu Sep 18, 2008 9:58 am    Post subject: Reply to: Sending mail from Mainframe
Reply with quote

hi Robert, any info about this....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Admin Openings with CTS enikhilk Mainframe Jobs 0 Tue Sep 13, 2016 10:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us