Unable to send mails from Jenkins

702 views
Skip to first unread message

Vinodkumar Chenna

unread,
Feb 4, 2022, 5:08:34 AM2/4/22
to jenkins...@googlegroups.com
Hello Everyone,

I am getting below error while testing the mail notification in jenkins, Previously I was able to send mail but currently its failing with below error

using smtp.office365.com
port: 587


Can someone please share the solution?

Failed to send out e-mail

javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [MW4PR03CA0280.namprd03.prod.outlook.com]

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)

Dirk Heinrichs

unread,
Feb 4, 2022, 5:40:22 AM2/4/22
to jenkins...@googlegroups.com
Am Freitag, dem 04.02.2022 um 14:35 +0530 schrieb Vinodkumar Chenna:

javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit 
https://aka.ms/smtp_auth_tls. [
MW4PR03CA0280.namprd03.prod.outlook.com
]


Did you actually follow that link and read the document? It clearly says what to do:

"Legacy clients and devices will need to be configured to submit using the new endpoint smtp-legacy.office365.com"

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

Vinodkumar Chenna

unread,
Feb 4, 2022, 6:52:46 AM2/4/22
to jenkins...@googlegroups.com, derrick.mcc...@gmail.com
Hi @derrick.mcc...@gmail.com 

Can you share what is the difference between legacy and others. Legacy means 

Can you explain bit more 


thanks for the response









--
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/9e36936daf95dd4d0f02a0890e667108d8f7e23e.camel%40opentext.com.

Vinodkumar Chenna

unread,
Feb 4, 2022, 7:15:36 AM2/4/22
to jenkins...@googlegroups.com, derrick.mcc...@gmail.com
Updated the below change in jenkins server , I am able to trigger mail approvals to respective team members

@derrick.mcc...@gmail.com 

Open /etc/sysconfig/jenkins and edit JENKINS_JAVA_OPTIONS as follows ::

JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2"
Reply all
Reply to author
Forward
0 new messages