Jenkins Email Server configuration

1,515 views
Skip to first unread message

Martin Min

unread,
Jul 14, 2015, 3:54:20 AM7/14/15
to jenkins...@googlegroups.com
Hello, I am using the almost latest Jenkins release and have a question on configuration email notification. Why are there only two fields for this?


I unchecked the SSL box for a quick test. and received this error message below. I put in my gmail user name and password.

Failed to send out e-mail

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. fn8sm222212pad.15 - gsmtp

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)


I did some searched and some people said in Java code these two should be added:
smtp.auth=true
smtp.STARTTLS.enable=true
But there is no such options in the settings. Right?

Christopher Orr

unread,
Jul 15, 2015, 11:48:06 AM7/15/15
to jenkins...@googlegroups.com
On 14/07/15 09:54, Martin Min wrote:
> Hello, I am using the almost latest Jenkins release and have a question
> on configuration email notification. Why are there only two fields for this?

There aren't only two fields — there is also an "Advanced" button, which
reveals more options. You even mention the "Use SSL" checkbox, which is
in the advanced section.


> I unchecked the SSL box for a quick test. and received this error
> message below. I put in my gmail user name and password.

If it didn't work when you disabled SSL, have you tried enabling SSL?
This is what Gmail wants when it says that STARTTLS is required.

Regards,
Chris
Reply all
Reply to author
Forward
0 new messages