|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with Email Output Node in IIB v9 |
« View previous topic :: View next topic » |
Author |
Message
|
localhost |
Posted: Thu Feb 19, 2015 11:08 pm Post subject: Problem with Email Output Node in IIB v9 |
|
|
Newbie
Joined: 12 Dec 2013 Posts: 7
|
I have done all the recommended configuration steps for setting up SMTP server and corresponding security identity and used my company's SMTP server address as well as SMTP server of gmail and yahoomail.
mqsicreateconfigurableservice IIB_Broker1 -c SMTP -o MYSERVER
mqsichangeproperties IIB_Broker1 -c SMTP -o MYSERVER -n serverName -v abc.xyz.com:25 (say for example)
mqsisetdbparms IIB_Broker1 -n smtp::MyIdentity -u myid@abc.xyz.com -p mypassword (say for example)
mqsichangeproperties IIB_Broker1 -c SMTP -o MYSERVER -n securityIdentity -v MyIdentity
After that I am using the MYSERVER as my SMTP server in Email Output node. I have tried setting MyIdentity in "Security Idenity" tab.
But everytime I am facing the same issue as :
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:318
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4678
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:Could not connect to SMTP host: abc.xyz.com, port: 25
Network is unreachable: connect
I remember using Email node in WMB v6.1 and I did not face any such issue. Could anyone please let me know if I am missing any configuration steps. Any small help or hint is much appreciated. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Feb 20, 2015 12:49 am Post subject: Re: Problem with Email Output Node in IIB v9 |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
localhost wrote: |
Could not connect to SMTP host: abc.xyz.com, port: 25
Network is unreachable: connect
|
Are you sure you can reach the target server? Have you tried to telnet from the broker server to that host & port? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
localhost |
Posted: Fri Feb 20, 2015 1:48 am Post subject: |
|
|
Newbie
Joined: 12 Dec 2013 Posts: 7
|
Thanks for pointing out my mistake. I could not establish telnet connection with all the SMTP servers I have used so far. Meaning, I have some problem reaching those servers. I should find a SMTP server which I can reach through telnet.
While trying these options, I came across http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac66360_.htm
and tried smtp.hursley.ibm.com:25 as SMTP server in email output node. It failed with following exception (as expected) :
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:339
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4678
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:459)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:496)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:368)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)
So, I ran the following configurations steps using smtp.hursley.ibm.com:25
mqsicreateconfigurableservice IIB_Broker1 -c SMTP -o MYSERVER
mqsichangeproperties IIB_Broker1 -c SMTP -o MYSERVER -n serverName -v smtp.hursley.ibm.com:25
mqsisetdbparms IIB_Broker1 -n smtp::MyIdentity -u someid -p somepassword (someid and somepassword are imaginary ones, they dont exist in hursley)
mqsichangeproperties IIB_Broker1 -c SMTP -o MYSERVER -n securityIdentity -v MyIdentity
I thought that the email output node should again throw AuthenticationFailedException. But to my surprise it has thrown exception like :
Text:CHARACTER:Could not connect to SMTP host: smtp.hursley.ibm.com, port: 25
Network is unreachable: connect
Though the problem stated above is not directly related to the problem I am facing, but this post is to let you know that email output node shows different behaviour than expected. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Feb 20, 2015 6:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Also, gmail in particular does not use the default SMTP port and also requires an SSL connection.
I don't know for a fact that Yahoo does, but I wouldn't be surprised.
You should talk to your company's mail administrators to find out how to connect to your local mail server, and what credentials you should use to do so.
You can download any of a number of free mail servers just for testing your flows. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|