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 On Thursday, July 2, 2015 at 7:21:48 PM UTC+3, Chris Selwyn wrote: > > 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 > > > > On 02/07/2015 13:15, ozca...@gmail.com <javascript:> wrote: > > 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 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 <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/33a12cbd-ce9b-4d32-9ef8-cd2ac86154e9%40googlegroups.com > > <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. > > > -- 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-users+unsubscr...@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. For more options, visit https://groups.google.com/d/optout.