SMTP Server

174 views
Skip to first unread message

Javi Martínez Burgos

unread,
Sep 23, 2015, 1:01:15 PM9/23/15
to InterSystems: Ensemble in Healthcare
Hello guys!
 
I would like to ask you a question related with SMTP servers.
 
I'm trying to send emails as alerts in my production. I have a BS of a Web Service,a BP Ens.Alert and a BO EnsLib.EMail.AlertOperation class.
 
This test is used with the finally to check if alerts send you an email when the Web Service's credentials are wrong . I'm using SoapUI to call a Web Service through Ensemble
 
When I start my production to see if I get an email, it appears an error in my BO showing the next: ERROR #6032: Unexpected initial message, server may not be SMTP server: 421 4.3.2 Service not available.
 
The thing is I must use the next information to configure the BO to use the server:
 

mail.hostname=AAAAA

mail.port=25

mail.account=YYYYYYY

mail.password=XXXXXX

mail.debug=N

mail.autenticacion=S

mail.ssl=N

 

 

So I write this in my BO configuration:

 SMTPServer -> AAAAA

SMTPPort  ->25

 Credentials -> Username = YYYYYY and Password = XXXXXX

Recipient = blablablabla!@blabla!.com

From= lalalala...@lalala.com

 

 

I don't find where the error could be, so If you know about this I will appreciate

Thanks and sorry for my English

Regards!

andrew....@a2tcs.co.uk

unread,
Sep 24, 2015, 3:44:15 AM9/24/15
to InterSystems: Ensemble in Healthcare
Javi

Have you tried connecting to your SMTP server using telnet from the server where your production is running, this may give you error messages or more information about the connection problems.

Thanks

Andy

Javi Martínez Burgos

unread,
Sep 24, 2015, 4:06:38 AM9/24/15
to InterSystems: Ensemble in Healthcare
Hello Andrew
 
First of all thank you for your answer
Well from my local computer I cannot use Ensemble's Terminal because I don't possess permissions to connect to remote computer.
I tried it with Ensemble Telnet, I wrote the IP and it tells me that services is not available.
Also I tried with cmd using ping and telnet. Ping gives me connection, however telnet tells me the same thing that Ensemble Telnet
 
I'm still investigating this error but I'm afraid I will have to ask to system people and wait patiently for their answers 
 
Regards Andrew

andrew....@a2tcs.co.uk

unread,
Sep 24, 2015, 4:18:42 AM9/24/15
to InterSystems: Ensemble in Healthcare
Javi

Connecting to your SMTP server via telnet on port 25 should at least give you a welcome banner something like the following

C:\>telnet mailserver 25
220 mailserver Microsoft ESMTP MAIL Service ready at Thu, 24 Sep 2015 09:16:08 +0100

If you aren't seeing this then it suggests your SMTP server is not working properly.

Thanks

Andy

Javi Martínez Burgos

unread,
Sep 24, 2015, 4:29:05 AM9/24/15
to InterSystems: Ensemble in Healthcare
Andy
 
Yes I did it, but it tells me the next sentence: 421 4.3.2 Service not available, I think it is what you say, SMTP server is not working adequately
 
Thank you
 
Javi

Jason Bowen

unread,
Sep 25, 2015, 2:58:55 PM9/25/15
to Ensemble-in...@googlegroups.com

Hi Javi,

 

I would consider three configuration issues regarding alerts sent to a SMTP server. First, assure that the email address used in the From: field is a valid email on the SMTP server that you are sending to. Some SMTP’s like Exchange will verify the email address and stop any emails that are not valid email addresses on that server. Also, the IP address of the Ensemble instance may need to be a valid “Relay” IP address(See screen shot of setup in Exchange below). Other SMTP’s will have some form of a “white List” for inbound IP connections. And finally, consider not using authentication. By adding the IP address of the Ensemble instance to the “Relay” list and not using authentication will make this a lot easier to implement.

 

 

Hope this helps,

 

JB

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

image001.png

Javi Martínez Burgos

unread,
Oct 8, 2015, 6:38:00 AM10/8/15
to InterSystems: Ensemble in Healthcare
Hello guys!
 
After a long time finally I have permissions to conect to SMTP Server, so now error has changed to this one: ERROR #6034: SMTP server connection failed during MAIL FROM command: <READ>zSend+105^%Net.SMTP.1.
 
Any suggestion?
Thanks for all answers!
Javi

David Reche

unread,
Oct 8, 2015, 6:50:17 AM10/8/15
to Ensemble-in...@googlegroups.com
Go to that code line and check what it try to do, but it seems that the connection crash.

David Reche
--

andrew....@a2tcs.co.uk

unread,
Oct 8, 2015, 10:39:07 AM10/8/15
to InterSystems: Ensemble in Healthcare
Javi

This could be caused by attempting to send a mail while unauthenticated on the SMTP server, or if you are authenticated you are attempting to send with a MAIL FROM email address the authentication credentials you are using does not give you permission to use.

Thanks

Andy

Javi Martínez Burgos

unread,
Oct 16, 2015, 8:57:12 AM10/16/15
to InterSystems: Ensemble in Healthcare
Hello People
Sorry for the waiting
 
Well we tried to reach that SMTP Server doing a ping in Terminal, and it is saying something like this (picture)
 
We are going to ask again to support if we have connection, but it is supposed we have it.
 
More details: we are using a class called EnsLib.EMail.OutboundAdapter, so we only have to set the parameters, then we don't have anything with code
 
Thanks everyone

El miércoles, 23 de septiembre de 2015, 19:01:15 (UTC+2), Javi Martínez Burgos escribió:

Javi Martínez Burgos

unread,
Oct 23, 2015, 3:46:54 AM10/23/15
to InterSystems: Ensemble in Healthcare
Hello guys!
 
I found the answer for our problems!
We were testing our connection with SMTP server together with Supports and we found that a credential was incorrect, it was a mistake from them because they gave us that information :P
Anyway after that I detected another problem, the parameter TO wasn't recognize because my email is not registered in SMTP server, I changed it by an allowed email but the problem was still appearing.
I tested again with Supports and they detected parameter TO still was my email. I looked for where my email could be and I found in production setting my email in AlertNotificationRecipients and also in lookup tables, so I changed quickly and finally I got it!, we can send emails from ensemble. I can't believe! What a nightmare with this when it is supposed this is easy to do

El miércoles, 23 de septiembre de 2015, 19:01:15 (UTC+2), Javi Martínez Burgos escribió:
Reply all
Reply to author
Forward
0 new messages