Author |
Message
|
sasad |
Posted: Tue Dec 22, 2015 10:18 am Post subject: Set SMTP Auth Flag 'False' in Email Output nod |
|
|
Acolyte
Joined: 30 Apr 2014 Posts: 67
|
Hi everyone,
We are working on IB v9. We have scenario in which we need to send an email using SMTP Server, without authentication. We do not have any credentials.
In Email Output node we have to provide SMTP Server port and Security Identity.
I tried without providing Security Identity but received following exception.
I Checked Java api and found there is one flag, 'SMTP Auth Flag', if it's value is false then it will not perform authentiation. how can we do this in IB.
Can we use SMTP without Security Identity in IB?
( ['MQROOT' : 0x7fcdb7ec6a10]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = '/build/slot1/S900_P/src/DataFlowEngine/TemplateNodes/ImbOutputTemplateNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 326 (INTEGER)
(0x03000000:NameValue):Function = 'ImbOutputTemplateNode::processMessageAssemblyToFailure' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmEmailOutputNode' (CHARACTER)
(0x03000000:NameValue):Name = 'com/systemsltd/pmo/utils/flows/EmailHandlerFlow#FCMComposite_1_5' (CHARACTER)
(0x03000000:NameValue):Label = 'com.systemsltd.pmo.utils.flows.EmailHandlerFlow.Send Email' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Caught exception and rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 14 (INTEGER)
(0x03000000:NameValue):Text = 'com.systemsltd.pmo.utils.flows.EmailHandlerFlow.Send Email' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 154 (INTEGER)
(0x03000000:NameValue):Function = 'sendBasicEmail()' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 4459 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'com.ibm.broker.emailnodes.EmailOutputNode : com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:461)
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)
' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 318 (INTEGER)
(0x03000000:NameValue):Function = 'throwableToMbException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 4678 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '530 5.7.1 Client was not authenticated
' (CHARACTER)
)
)
)
)
) |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Dec 22, 2015 1:23 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Quote: |
(0x03000000:NameValue):Text = '530 5.7.1 Client was not authenticated |
This message was from your SMTP server. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
zpat |
Posted: Tue Dec 22, 2015 11:21 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
He knows that, he is asking how to turn authentication off. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
sasad |
Posted: Wed Dec 23, 2015 1:51 am Post subject: |
|
|
Acolyte
Joined: 30 Apr 2014 Posts: 67
|
Zpat is right. I want to know how to set SMTP Authentication flag to false, in Email Output Node. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 23, 2015 5:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sasad wrote: |
I want to know how to set SMTP Authentication flag to false, in Email Output Node. |
Isn't that flag part of your SMTP server set up, i.e. it controls if the server performs authentication or not?
If so, you can't override that from the client side. I'd speak to whoever administers your SMTP server to a) obtain a set of credentials or b) discover what URL you have to use to obtain anonymous access. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Dec 23, 2015 6:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
sasad wrote: |
I want to know how to set SMTP Authentication flag to false, in Email Output Node. |
Isn't that flag part of your SMTP server set up, i.e. it controls if the server performs authentication or not?
If so, you can't override that from the client side. I'd speak to whoever administers your SMTP server to a) obtain a set of credentials or b) discover what URL you have to use to obtain anonymous access. |
That was my slightly obscure point. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 23, 2015 6:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
That was my slightly obscure point. |
Slightly?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Dec 23, 2015 6:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
mqjeff wrote: |
That was my slightly obscure point. |
Slightly?  |
If the message is from the server, how can the client do anything?
If the message is from the server, why shouldn't you be talking to the server admins?
If the message is from the server, then... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 23, 2015 7:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
mqjeff wrote: |
That was my slightly obscure point. |
Slightly?  |
If the message is from the server, how can the client do anything?
If the message is from the server, why shouldn't you be talking to the server admins?
If the message is from the server, then... |
And wouldn't that have been clearer?
Happy Holidays  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Dec 23, 2015 7:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It might have been clearer, but it's a foggy day today, and who am I to argue?
Also, I look really bad in a shiny red nose. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|