Problems With K2 Emails and Ms Exchange

  • 15 February 2010
  • 3 replies
  • 5 views

Badge +1

Hi Everyone,


     First of all thanks for reading this.


 


    At Work we are expering a strange problem when sending emails,
all of the suden our K2 Email stoped working from our processes, we
pick up the message "No connection could be made because the target machine actively refused it" in the K2 Console.


No change was done in our K2 Installation (this has been working for
over a year) and acording to our Exchange Admins no change was done on
our Email Server.


We can send emails from the K2 server if, by example, we use telnet
and SMTP commands, and other systems (outsystem, oracle, etc) can use
the mail server.


At the Exchange Server, the firewall is down and we cannot pick up
anything relevant on the logs, so we fail to understand this denie.



Does anyone know what can be causing this ?


Does K2 BlackPearl uses SMTP to send emails or does it use any other
non standard (microsoft...) protocol to communicate with Exchange.


Can we check anything service (Ms Queue,Kerberos/SPN, MS Distributed Transactions,etc)


User Permissions ??


 


Thanks in Advanced


Miguel


3 replies

Badge

Please check wheather the k2blackeperal service is runing or not..if service is not running means run the k2 blackpearl service in console mode.then the problem could be resolved

Userlevel 2
Badge +9

Miguel,


The answer to your question is, as is often the case, "it depends".
Exactly how K2 blackpearl sends emails actually depends on which version of the software you are using, which events you are using, and how you have the environment configured.
To expand on this a bit:
If you are using an email event (a separate event in the process), and you are on a version of the software prior to 4.6.5, K2 uses SMTP to sent the email. It uses a field in the Environment Library / String Table to define which SMTP server to use, and supports only anonymous SMTP.
If you are using an email event, and you are on version 4.6.5 or later, K2 uses SMTP, and supports authenticated SMTP to sent the email. It uses a combination of the "FROM" address and a connection string stored in K2HostServer.exe.config to determine exactly how the email will be sent.
If you are sending a notification for a client event, we use a combination of MSMQ and SMTP (or EWS).


Now, the fact that you were getting an error in the K2 console indicates that for some reason K2 was having trouble connecting to Exchange. However, I have not typically seen this kind of error related to connecting to Exchange. More often, this kind of error indicates a failure to connect to SQL, a web service, or similar. Is it possible that you are using a SmartObject lookup to set email addresses, or similar? That could be the connection that is failing.


 


HTH,


Gail

Badge +7

Hi Miguel


 


Just wanted to find out if the solutions provided managed to resolve the issue you had? Please update us on the progress, and should you have any more questions please feel free to ask we will be more than happy rto assist. 


 


Kind regards


Nelly

Reply