Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




SMTP Setup Issues (Yep, another thread)

web-app

So I, like many others on here, am having issues with setting up the auto alert stuff in Gemini.  Test emails come through, but none of the alerts come through as a result of changes to issues.  We are utilizing v2.2.

I am getting the following error messages each time an email should be sent:

Error Message 1:
'Socket connection has time out.  InnerException message follows: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.xxx.xxx.xxx:xxx'

Stack Trace 1:
'SOURCE: CounterSoft.Gemini.Commons TARGETSITE: Boolean SendEmail(CounterSoft.Gemini.Commons.GeminiConfigurationEN, CounterSoft.Gemini.Commons.EmailAlert, CounterSoft.Gemini.Commons.IssueWatcherEN) STACKtRACE: at CounterSoft.Gemini.Commons.Emailer.SendEmail (GeminiConfigureationEN config, EmailAlert alertMessage, IssueWatcherEN recipient) at CounterSoft.Gemini.Business.MailPlugin.SendMail(String subject, ArrayList emailList, String body, Boolean bHTML)

Error Message 2:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.xxx.xxx.xxx:xxx

Stack Trace 2:
SOURCE: System TARGETSITE: Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress) STACKTRACE: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at q.a(IPEndPoint A_0)   Inner Exception



jtaltendahl
· 1
jtaltendahl
Replies (12)
helpful
0
not helpful

Seems like a firewall or permissions issue. Are you using the mail plugin?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I've tried both, but am currently using the Mail Plugin.

Thoughts?


jtaltendahl
· 1
jtaltendahl
helpful
0
not helpful

Hello,

Is your SMTP server on the same machine as the web server?


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

Hey there Harvey, thanks for helping out with this.

No, the SMTP server and web server are on separate machines.


jtaltendahl
· 1
jtaltendahl
helpful
0
not helpful

Hi,

Let's run through the basics:

1. Do you have any other applicatiosn that successfully send emails where email sender is on the the web server and talks to the SMTP Server?  If not, then the first thing to do would be to telnet to the SMTP server (from the web server DOS prompt).  This would ensure we have connectivity between the machines.
2. What happens when you click on the Test button on the Gemini Admin --> SMTP Configuration page?  Same error?




Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

the test button on the smtp config page works correctly (i receive a test email)...the problem is that the actual issue alerts are not coming through (resulting in the errors mentioned earlier).


jtaltendahl
· 1
jtaltendahl
helpful
0
not helpful

Do this:

1. Switch to Gemini Scheduler
2. Create an issue - note issue ID.
3. Confirm that a row exists for the new alert (issue created) in the following SQL table: issuealerts.

You should a row for every issue alert being generated.

Also, are you running the Gemini web application under medium trust?



Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

an issuealert is created.

if we are using and exchange server for email to we need to run it through the geminiScheduler?  i thought that was for use with POP3 mailboxes.

i am not certain where to check what our security level is at.


jtaltendahl
· 1
jtaltendahl
helpful
0
not helpful

The scheduler is mainly for processing email alerts. It can also be configured to pop emails.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

[quote user="HarveyKandola"]Hi,

Let's run through the basics:

1. Do you have any other applicatiosn that successfully send emails where email sender is on the the web server and talks to the SMTP Server?  If not, then the first thing to do would be to telnet to the SMTP server (from the web server DOS prompt).  This would ensure we have connectivity between the machines.
2. What happens when you click on the Test button on the Gemini Admin --> SMTP Configuration page?  Same error?



[/quote]

Hi I have a similiar problem, it is very strange:

I've set up SMTP account, then I've tested it using Test button and received test e-mail. Then I've saved settings and went to Administration->Notifications and set everything to YES, and changed e-mail which is set as sender and the name to display in e-mail.

Then I've decided to see how this will look and visited SMTP settings and pressed Test button again, but I've received no e-mails and in log there is an exception

Socket connection has timed out. InnerException message follows: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 78.107.253.100:25 17/09/2008 15:51:09 SOURCE: CounterSoft.Gemini.Commons TARGETSITE: Boolean SendEmail(CounterSoft.Gemini.Commons.GeminiConfigurationEN, CounterSoft.Gemini.Commons.EmailAlert, CounterSoft.Gemini.Commons.IssueWatcherEN) STACKTRACE: at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, EmailAlert alertMessage, IssueWatcherEN recipient) at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, String strTo, String strBody, String strSubject, Boolean bHTML)
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 78.107.253.100:25 17/09/2008 15:51:09 SOURCE: System TARGETSITE: Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress) STACKTRACE: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at a4.a(IPEndPoint A_0).

I've tried to telnet to the SMTP and logged ok, even send a test e-mail by manually entering SMTP commands.

I've changed "From Email Address:","From Display Name:" to what they was initially, gemini@mycompany.com and Gemini Issue Tracker, and set notifications to they initial values. By doing this I've returned settings to the moment when I've had successfull test e-mail, but I continue to get this exception.


Kimaris
· 1
Kimaris
helpful
0
not helpful

Additional information:

  1. I have tried IISRESET
  2. Windows Firewall is turned off
  3. SMTP server and Gemini are on the same server
  4. I've tried both Scheduler and MailPlugin (but I guess "Test" button always uses the plugin way, or even some custome code.

Kimaris
· 1
Kimaris
helpful
0
not helpful

Double check the port and server as this seems like the issue.

Try creayting a new Gemini database and set SMTP again.


Saar Cohen
· 5000
Saar Cohen