Mail configuration for hotmail

321 views
Skip to first unread message

ozca...@gmail.com

unread,
Jul 2, 2015, 8:15:13 AM7/2/15
to jenkins...@googlegroups.com

I don't know what am I doing wrong, I'm searching the net for hours. Anyways, here is my e-mail setup for Jenkins. I'm not able to send any mails. When I click "Test Configuration", I get the following error.

I changed the STMP Port to 25 and still get the same error.

And btw I typed telnet smtp.live.com 587 to my console ant the output was:

Trying 65.55.163.152...
Connected to smtp.glbdns2.microsoft.com.
Escape character is '^]'.
220 BLU437-SMTP76.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at  Thu, 2 Jul 2015 04:31:09 -0700 
Connection closed by foreign host.

What am I missing? What is the correct configuration? Thanks in advance!


Maximilian Hill

unread,
Jul 2, 2015, 8:31:13 AM7/2/15
to jenkins...@googlegroups.com

Hi

Take a look at line 3 of the error message. Possibly that the choosen port is not the port for ssl connections.

Regards
Max

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/33a12cbd-ce9b-4d32-9ef8-cd2ac86154e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ozca...@gmail.com

unread,
Jul 2, 2015, 8:34:36 AM7/2/15
to jenkins...@googlegroups.com
Hey!

You are right. But whch one is the correct port, how do I choose?

Thanks,
Ozcan

Faizan Javed

unread,
Jul 2, 2015, 9:24:21 AM7/2/15
to jenkins...@googlegroups.com
try 465 port

Maximilian Hill

unread,
Jul 2, 2015, 9:24:37 AM7/2/15
to jenkins...@googlegroups.com

Did you try to disable ssl for testing?

Max

Richard Mortimer

unread,
Jul 2, 2015, 9:32:36 AM7/2/15
to jenkins...@googlegroups.com
Try using port 465 instead of 587 in the SMTP Port field. That's the
usual direct SSL port for SMTP.

Regards

Richard

On 02/07/2015 13:34, ozca...@gmail.com wrote:
> Hey!
>
> You are right. But whch one is the correct port, how do I choose?
>
> Thanks,
> Ozcan
>
> On Thursday, July 2, 2015 at 3:31:13 PM UTC+3, Maximilian Hill wrote:
>
> Hi
>
> Take a look at line 3 of the error message. Possibly that the
> choosen port is not the port for ssl connections.
>
> Regards
> Max
>
> Am 02.07.2015 14:15 schrieb <ozca...@gmail.com <javascript:>>:
>
> I don't know what am I doing wrong, I'm searching the net for
> hours. Anyways, here is my e-mail setup for Jenkins. I'm not
> able to send any mails. When I click "Test Configuration", I get
> the following error.
>
> I changed the STMP Port to 25 and still get the same error.
>
> <https://lh3.googleusercontent.com/-AnDvujXZAOo/VZUrLl5UUCI/AAAAAAAAAek/sxUAo6Or6T8/s1600/uPldQ.png>
>
> And btw I typed |telnet smtp.live.com <http://smtp.live.com>
> 587| to my console ant the output was:
>
> |Trying 65.55.163.152... Connected to smtp.glbdns2.microsoft.com
> <http://smtp.glbdns2.microsoft.com>. Escape character is '^]'.
> 220 BLU437-SMTP76.smtp.hotmail.com
> <http://BLU437-SMTP76.smtp.hotmail.com> Microsoft ESMTP MAIL
> Service, Version: 8.0.9200.16384 ready at Thu, 2 Jul 2015
> 04:31:09 -0700 Connection closed by foreign host. |
>
> |
>
> What am I missing? What is the correct configuration? Thanks in
> advance!
>
> |
>
> --
> You received this message because you are subscribed to the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to jenkinsci-use...@googlegroups.com
> <javascript:>.
> <https://groups.google.com/d/msgid/jenkinsci-users/33a12cbd-ce9b-4d32-9ef8-cd2ac86154e9%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/148f3bcf-1cd8-46a4-8555-5ef24b6673c2%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/148f3bcf-1cd8-46a4-8555-5ef24b6673c2%40googlegroups.com?utm_medium=email&utm_source=footer>.

ozca...@gmail.com

unread,
Jul 2, 2015, 9:36:19 AM7/2/15
to jenkins...@googlegroups.com
I tried 465 with ssl disabled then enabled. In both situations I still get the same error:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.live.com, port: 465;
  nested exception is:
java.net.SocketTimeoutException: connect timed out
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)

ozca...@gmail.com

unread,
Jul 2, 2015, 10:52:00 AM7/2/15
to jenkins...@googlegroups.com

You were right, I still get error but differently:

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:522)
at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)
at com.cloudbees.jenkins.support.slowrequest.SlowRequestFilter.doFilter(SlowRequestFilter.java:37)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:117)
        .
        .
        .

And I read the post you send but, I don't know how to change the java mail api settings. 

Thanks,

Ozcan


Maximilian Hill

unread,
Jul 2, 2015, 10:55:54 AM7/2/15
to jenkins...@googlegroups.com

There are some workarounds in the comments of the issue.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1baf0e14-fb9f-4444-b800-27d8108400bb%40googlegroups.com.

Chris Selwyn

unread,
Jul 2, 2015, 12:21:48 PM7/2/15
to jenkins...@googlegroups.com
As you say, when you use telnet port 587 (or port 25 for that matter) you get a plain text connection.
If you then type "EHLO whatever", you will get the capabilities of the SMTP server.
You will see that it contains STARTTLS capability.

I suggest that you need to remove the "Use SSL" flag.
You should also add the flag " -Dmail.smtp.starttls.enable=true" to your Jenkins startup configuration to cause it to start a TLS connection in response to the STARTTLS capability.

That should get you a TLS connection.

There is some information at http://www.tune2wizard.com/linux-jenkins/.

Chris
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

ozca...@gmail.com

unread,
Jul 3, 2015, 3:53:54 AM7/3/15
to jenkins...@googlegroups.com
Hi,

I modified my jenkins.xml arguments like this:

  <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dmail.smtp.starttls.enable=true -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>


But I get an interesting error this time: (And I tried with two different e mails)

com.sun.mail.smtp.SMTPSendFailedException: 501 5.5.4 Invalid Email address
;
  nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 501 5.5.4 Invalid Email address


at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:522)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) .
.
.

Regards,

Ozcan

Daniel Beck

unread,
Jul 3, 2015, 4:12:18 AM7/3/15
to jenkins...@googlegroups.com
Did you configure the email address Jenkins uses to send emails?
>> And btw I typed telnet smtp.live.com 587 to my console ant the output was:
>>
>> Trying 65.55.163.152...
>> Connected to
>> smtp.glbdns2.microsoft.com
>> .
>> Escape character is '^]'.
>> 220
>> BLU437-SMTP76.smtp.hotmail.com
>> Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Thu, 2 Jul 2015 04:31:09 -0700
>> Connection closed by foreign host.
>>
>> What am I missing? What is the correct configuration? Thanks in advance!
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/33a12cbd-ce9b-4d32-9ef8-cd2ac86154e9%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/125e6d0b-fd94-494c-8eb1-f4be53f7e045%40googlegroups.com.

ozca...@gmail.com

unread,
Jul 3, 2015, 5:38:38 AM7/3/15
to jenkins...@googlegroups.com, m...@beckweb.net
I don't know what you mean by that :/
Reply all
Reply to author
Forward
0 new messages