Error sending mail

I try to configure a EXCHANGE as SMTP server, but it doesn't work.

In the log i see that the aplication add the server name to the user, mi user is herminio.martin@obremo.es and the mail server is correo.obremo.es
In the logs appears,

   ERROR Log                  Sending email <informatica@obremo.es:Kunagi email test> via <herminio.martin@obremo.es@correo.obremo.es:25> failed. 
java.lang.RuntimeException: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: correo.obremo.es, 25; timeout -1;
  nested exception is:

Thanks in advance

Sorry for my English

Status

Issue is closed.

Comments

Wed, Sep 25, 2013, 11:11 by Witek (SM,T)

It seams the connection to the exchange server is not possible.

Please check if you can connect to the SMTP port from the machine where Kunagi is running. You could try this with telnet correo.obremo.es 25. If this doesn't work, you have to configure your firewall or exchange server to allow such connections.

If the connection works pleasy try to find more info why the connection from Kunagi does not work. What ist the log text after nested exception is:?

Wed, Sep 25, 2013, 13:45 by Herminio Martín

Hello,

Sorry, we only use SSL for SMTP. I've changed the configuration in KUNAGI
SMTP server correo.obremo.es
SMTP port - 443 +
SMTP TLS yes
SMTP user herminio.martin@obremo.es
SMTP password xxxxxxx
Sender email informatica@obremo.es
Administrator email informatica@obremo.es

and the error ; (the user is herminio.martin@obremo.es but KUNAGI add @correo.obremo.es)

Wed Sep 25 13:30:14 CEST 2013 
    ERROR Log                  Sending email <informatica@obremo.es:Kunagi email test> via <herminio.martin@obremo.es@correo.obremo.es:443> failed. 
java.lang.RuntimeException: javax.mail.MessagingException: Exception reading response;
  nested exception is:
  java.net.SocketException: Connection reset
    at ilarkesto.email.Eml.sendSmtpMessage(Eml.java:567)
    at scrum.server.pr.EmailSender$SendEmailTask.perform(EmailSender.java:98)
    at ilarkesto.concurrent.ATask.run(ATask.java:108)
    at ilarkesto.concurrent.TaskManager$TaskRunner.run(TaskManager.java:134)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.MessagingException: Exception reading response;
  nested exception is:
  java.net.SocketException: Connection reset
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2204)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
    at javax.mail.Service.connect(Service.java:345)
    at ilarkesto.email.Eml.sendSmtpMessage(Eml.java:626)
    at ilarkesto.email.Eml.sendSmtpMessage(Eml.java:565)
    at scrum.server.pr.EmailSender$SendEmailTask.perform(EmailSender.java:98)
    at ilarkesto.concurrent.ATask.run(ATask.java:108)
    at ilarkesto.concurrent.TaskManager$TaskRunner.run(TaskManager.java:134)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2184)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
    at javax.mail.Service.connect(Service.java:345)
    at ilarkesto.email.Eml.sendSmtpMessage(Eml.java:626)
    at ilarkesto.email.Eml.sendSmtpMessage(Eml.java:565)
    at scrum.server.pr.EmailSender$SendEmailTask.perform(EmailSender.java:98)
    at ilarkesto.concurrent.ATask.run(ATask.java:108)
    at ilarkesto.concurrent.TaskManager$TaskRunner.run(TaskManager.java:134)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
 | app:scrum > session:admin > gwt-srv:SendTestEmail > task:SendEmailTask

THANKS IN ADVANCE

Wed, Oct 2, 2013, 10:28 by Witek (SM,T)

The error message says, that your SMTP server has reset (closed) the connection. You will have to look into your SMTP server logs why this happened. Sorry, but as Linux user I have no idea how Exchange works and where it stores information about failed connections.

Sat, Aug 13, 2016, 13:49 by informatica online training

(deleted spam)

Tue, Dec 20, 2016, 12:45 by Rohit Bhardwaj

Hi,
Did you found solution for above problem ?

Wed, Dec 21, 2016, 10:43 by artjom (PO,T)

Hi Rohit,

as stated previously, this looks like a problem with your Exchange server rather than Kunagi. In any case, from the stack trace shown here, it is not possible to find out why the server closed the connection. You would have to see in your SMTP server logs what happened.

Kind regards
Artjom

Post a comment



optional
optional