View previous topic :: View next topic
|
Author |
Message |
arunkumarvks
New User
Joined: 16 Jun 2008 Posts: 30 Location: Chennai
|
|
|
|
Hi i have configured the SMTP to send a mail from mainframe to web mail. we have two LPAR and one LPAR its working fine. In another LPAR when trying to send a mail it's showing the error like,
1< 500 5.3.3 Unrecognized command
can any one help me to resolve this problem. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Please show the set of commands ( hiding confidential data ). |
|
Back to top |
|
|
arunkumarvks
New User
Joined: 16 Jun 2008 Posts: 30 Location: Chennai
|
|
|
|
IBM MVS SMTP CS V1R7 on Fri, 26 Dec 08 15:43:46 EST
-1< EXITPARMS VER 1 ACTN 1 USER TOKEN 0 IPADDR 0 DLEN 0 SAFTOKEN ADDR
-1> USER EXIT RETCODE 4
1> Connecting to IP: X.X.XX.XXX
1< 220 XXX-XXX-SMTP01.SMTPGATEWAY.XXX.COM Fri, 26 Dec 2008
1> HELO NODE1
1< 500 5.3.3 Unrecognized command
1> QUIT |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Could your command stream have line numbers in columns 73 through 80?
If it isn't recognizing the HELO command, there's something really basic wrong! |
|
Back to top |
|
|
arunkumarvks
New User
Joined: 16 Jun 2008 Posts: 30 Location: Chennai
|
|
|
|
Hi Robert, yes my command stream has line numbers in columns 73 through 80. it's correct only. do you know any other probable case of error? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Take the line numbers out -- SMTP commands do not recognize z/OS line number conventions and the line number is being appended to the end of the command. This causes the commands to be not recognized. |
|
Back to top |
|
|
arunkumarvks
New User
Joined: 16 Jun 2008 Posts: 30 Location: Chennai
|
|
|
|
Hi Robert,
i removed the line number from the line 72 to 80 and tried the same. But still i am getting the same error like,
1> Connecting to IP: X.X.XX.XXX
1< 220 XXX-XXXX-SMTP01.XXX.CORP.XXX.COM DOMAIN Tue, 6 Jan 2009 1> HELO NODENAME
1< 500 5.3.3 Unrecognized command
1> QUIT
1< 500 5.3.3 Unrecognized command |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
What's the JCL look like that you're using to send to SMTP? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Oh, and how did you remove the line numbers? Did you just say NUM OFF in ISPF EDIT -- which does not remove the line numbers from the columns? Or did you actually use the correct change command to remove them (C P'^' '' 73 80 ALL)? |
|
Back to top |
|
|
arunkumarvks
New User
Joined: 16 Jun 2008 Posts: 30 Location: Chennai
|
|
|
|
Hi i removed the line number by using UNNUM command in ISPF EDIT. My JCL is,
//IEBGENER EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
helo NODENAME
mail from:<userid@nodename>
rcpt to:<userid@host.com>
data
from: userid@nodename
to: userid@host.com
subject: Test Mail
Hi this is test mail..
.
quit
//SYSUT2 DD SYSOUT=(B,SMTP
//SYSOUT DD SYSOUT=A
//SYSPRINT DD SYSOUT=A |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
The 500 5.3.3 error coming back from the mail server (see the < in the line which indicates a response from the other side). This could be a firewall issue, or it could be your mail server is not set up to handle the SMTP traffic correctly (blocking SMTP authorization for example), or ...
You really need to get find the system support person for your mail server and discuss the issue with that person -- it is not a mainframe problem and there is not going to be a mainframe solution once you've gotten the line numbers out of the command. |
|
Back to top |
|
|
|