[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-18 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer edited a comment on  JENKINS-58976  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
 Just to be sure, I did a fresh install of Jenkins from the msi (jenkins-2.189.zip) in a VM running Windows 10 1903 which never had Jenkins installed before.During install I selected "install suggested plugins".It  show  shows  the same behavior.!ssl-log-windows-vm.png!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201325.1566072785000.4573.1566153180148%40Atlassian.JIRA.


[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-18 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer commented on  JENKINS-58976  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
 Just to be sure, I did a fresh install of Jenkins from the msi (jenkins-2.189.zip) in a VM running Windows 10 1903 which never had Jenkins installed before. During install I selected "install suggested plugins". It show the same behavior.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201325.1566072785000.4571.1566153120105%40Atlassian.JIRA.


[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-18 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58976  
 
 
  Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
Change By: 
 Norbert Harrer  
 
 
Attachment: 
 ssl-log-windows-vm.png  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201325.1566072785000.4569.1566153000241%40Atlassian.JIRA.


[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-17 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58976  
 
 
  Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
Change By: 
 Norbert Harrer  
 

  
 
 
 
 

 
 The settings under "E-Mail Notification" are configured to use SMTP Authentication with SSL.Using "Test configuration" leads to an exception: "java.net.SocketException: Connection closed by remote host". The full stack trace is attached.This only happens with the "Test configuration" button. Regular build-failed mails actually work fine.Mail is configured like this (see also jenkins_mail_config.png):SMTP Server: smtp-relay.gmail.com Use SMTP Authentication: checked User Name and Password: entered Use SSL: checked SMTP Port: 465 Charset: UTF-8 Test e-mail recipient: e-mail address enteredLogging the traffic with sslsplit shows that AUTH LOGIN was not performed: {color:#4c9aff} 220 smtp-relay.gmail.com ESMTP h25sm4317wmb.21 - gsmtp {color}  {color:#4c9aff} EHLO FIREBIRD {color}  {color:#4c9aff} 250-smtp-relay.gmail.com at your service, [_IP redacted_] {color}  {color:#4c9aff} 250-SIZE 157286400 {color}  {color:#4c9aff} 250-8BITMIME {color}  {color:#4c9aff} 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH {color}  {color:#4c9aff} 250-ENHANCEDSTATUSCODES {color}  {color:#4c9aff} 250-PIPELINING {color}  {color:#4c9aff} 250-CHUNKING {color}  {color:#4c9aff} 250 SMTPUTF8 {color}  {color:#4c9aff} MAIL FROM:<_redacted_> {color}  {color:#4c9aff} 550-5.7.1 Invalid credentials for relay [_IP redacted_]. The IP address you've {color}  {color:#4c9aff} 550-5.7.1 registered in your G Suite SMTP Relay service doesn't match domain of {color}  {color:#4c9aff} 550-5.7.1 the account this email is being sent from. If you are trying to relay {color}  {color:#4c9aff} 550-5.7.1 mail from a domain that isn't registered under your G Suite account {color}  {color:#4c9aff} 550-5.7.1 or has empty envelope-from, you must configure your mail server {color}  {color:#4c9aff} 550-5.7.1 either to use SMTP AUTH to identify the sending domain or to present {color}  {color:#4c9aff} 550-5.7.1 one of your domain names in the HELO or EHLO command. For more {color}  {color:#4c9aff} 550-5.7.1 information, please visit {color}  {color:#4c9aff} 550 5.7.1  [  https://support.google.com/a/answer/6140680#invalidcred ]  h25sm4317wmb.21 - gsmtp {color} Build-failed mails work as expected with AUTH LOGIN: {color:#4c9aff} 20 smtp-relay.gmail.com ESMTP cf12sm48397ejb.11 - gsmtp {color}  {color:#4c9aff} EHLO FIREBIRD {color}  {color:#4c9aff} 250-smtp-relay.gmail.com at your service, [_IP redacted_] {color}  {color:#4c9aff} 250-SIZE 157286400 {color}  {color:#4c9aff} 250-8BITMIME {color}  {color:#4c9aff} 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH {color}  {color:#4c9aff} 250-ENHANCEDSTATUSCODES {color}  {color:#4c9aff} 250-PIPELINING {color}  {color:#4c9aff} 250-CHUNKING {color}  {color:#4c9aff} 250 SMTPUTF8 {color}  {color:#4c9aff} AUTH LOGIN {color}  {color:#4c9aff} 334 VXNlcm5hbWU6 {color}  {color:#4c9aff} redacted {color}  {color:#4c9aff} 334 

[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-17 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58976  
 
 
  Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
Change By: 
 Norbert Harrer  
 

  
 
 
 
 

 
 The settings under "E-Mail Notification" are configured to use SMTP Authentication with SSL.Using "Test configuration" leads to an exception: "java.net.SocketException: Connection closed by remote host". The full stack trace is attached.This only happens with the "Test configuration" button. Regular build-failed mails actually work fine.Mail is configured like this (see also jenkins_mail_config.png):SMTP Server: smtp-relay.gmail.com Use SMTP Authentication: checked User Name and Password: entered Use SSL: checked SMTP Port: 465 Charset: UTF-8 Test e-mail recipient: e-mail address enteredLogging the traffic with sslsplit shows that AUTH LOGIN was not performed: {{ 220 smtp-relay.gmail.com ESMTP h25sm4317wmb.21 - gsmtp }}  {{  EHLO FIREBIRD }}  {{  250-smtp-relay.gmail.com at your service, [_IP redacted_] }}  {{  250-SIZE 157286400 }}  {{  250-8BITMIME }}  {{  250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH }}  {{  250-ENHANCEDSTATUSCODES }}  {{  250-PIPELINING }}  {{  250-CHUNKING }}  {{  250 SMTPUTF8 }}  {{  MAIL FROM:<_redacted_> }}  {{  550-5.7.1 Invalid credentials for relay [_IP redacted_]. The IP address you've }}  {{  550-5.7.1 registered in your G Suite SMTP Relay service doesn't match domain of }}  {{  550-5.7.1 the account this email is being sent from. If you are trying to relay }}  {{  550-5.7.1 mail from a domain that isn't registered under your G Suite account }}  {{  550-5.7.1 or has empty envelope-from, you must configure your mail server }}  {{  550-5.7.1 either to use SMTP AUTH to identify the sending domain or to present }}  {{  550-5.7.1 one of your domain names in the HELO or EHLO command. For more }}  {{  550-5.7.1 information, please visit }}  {{  550 5.7.1  [ https://support.google.com/a/answer/6140680#invalidcred ]  h25sm4317wmb.21 - gsmtp }} Build-failed mails work as expected with AUTH LOGIN: {{ 20 smtp-relay.gmail.com ESMTP cf12sm48397ejb.11 - gsmtp }}  {{  EHLO FIREBIRD }}  {{  250-smtp-relay.gmail.com at your service, [_IP redacted_] }}  {{  250-SIZE 157286400 }}  {{  250-8BITMIME }}  {{  250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH }}  {{  250-ENHANCEDSTATUSCODES }}  {{  250-PIPELINING }}  {{  250-CHUNKING }}  {{  250 SMTPUTF8 }}  {{  AUTH LOGIN }}  {{  334 VXNlcm5hbWU6 }}  {{ _redacted_}} redacted  {{  334 UGFzc3dvcmQ6 }}  {{ _redacted_}} redacted  {{  235 2.7.0 Accepted }}  {{  MAIL FROM:<_redacted_> }}  {{  250 2.1.0 OK cf12sm48397ejb.11 - gsmtp }}  {{  RCPT TO:<_redacted_> }}  {{  250 2.1.5 OK cf12sm48397ejb.11 - gsmtp }}  {{  DATA }}  {{  354 Go ahead cf12sm48397ejb.11 - gsmtp }}  {{  Date: Sat, 17 Aug 2019 21:10:44 +0200 (CEST) }}  {{  From: Jenkins <_redacted_> }}  {{  To: _redacted_ }}  {{  Message-ID: <14698696.4.1566069044700.JavaMail.FIREBIRD$@FIREBIRD> }}  {{  In-Reply-To: <21875298.1.1566064846550.JavaMail.FIREBIRD$@FIREBIRD> }}  {{  References: 

[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-17 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58976  
 
 
  Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
Change By: 
 Norbert Harrer  
 

  
 
 
 
 

 
 The settings under "E-Mail Notification" are configured to use SMTP Authentication with SSL.Using "Test configuration" leads to an exception: "java.net.SocketException: Connection closed by remote host". The full stack trace is attached.This only happens with the "Test configuration" button. Regular build-failed mails actually work fine.Mail is configured like this (see also jenkins_mail_config.png):SMTP Server: smtp-relay.gmail.comUse SMTP Authentication: checkedUser Name and Password: enteredUse SSL: checkedSMTP Port: 465Charset: UTF-8Test e-mail recipient: e-mail address enteredLogging the traffic with sslsplit shows that AUTH LOGIN was not performed: {{ 220 smtp-relay.gmail.com ESMTP h25sm4317wmb.21 - gsmtp }}  {{ EHLO FIREBIRD }}  {{ 250-smtp-relay.gmail.com at your service, [_IP redacted_] }}  {{ 250-SIZE 157286400 }}  {{ 250-8BITMIME }}  {{ 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH }}  {{ 250-ENHANCEDSTATUSCODES }}  {{ 250-PIPELINING }}  {{ 250-CHUNKING }}  {{ 250 SMTPUTF8 }}  {{ MAIL FROM:<_redacted_> }}  {{ 550-5.7.1 Invalid credentials for relay [_IP redacted_]. The IP address you've }}  {{ 550-5.7.1 registered in your G Suite SMTP Relay service doesn't match domain of }}  {{ 550-5.7.1 the account this email is being sent from. If you are trying to relay }}  {{ 550-5.7.1 mail from a domain that isn't registered under your G Suite account }}  {{ 550-5.7.1 or has empty envelope-from, you must configure your mail server }}  {{ 550-5.7.1 either to use SMTP AUTH to identify the sending domain or to present }}  {{ 550-5.7.1 one of your domain names in the HELO or EHLO command. For more }}  {{ 550-5.7.1 information, please visit }}  {{ 550 5.7.1  [  https://support.google.com/a/answer/6140680#invalidcred ]  h25sm4317wmb.21 - gsmtp }}   Build-failed mails work as expected with AUTH LOGIN: {{ 20 smtp-relay.gmail.com ESMTP cf12sm48397ejb.11 - gsmtp }}  {{ EHLO FIREBIRD }}  {{ 250-smtp-relay.gmail.com at your service, [_IP redacted_] }}  {{ 250-SIZE 157286400 }}  {{ 250-8BITMIME }}  {{ 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH }}  {{ 250-ENHANCEDSTATUSCODES }}  {{ 250-PIPELINING }}  {{ 250-CHUNKING }}  {{ 250 SMTPUTF8 }}  {{ AUTH LOGIN }}  {{ 334 VXNlcm5hbWU6 }}  {{ _redacted_ }}  {{ 334 UGFzc3dvcmQ6 }}  {{ _redacted_ }}  {{ 235 2.7.0 Accepted }}  {{ MAIL FROM:<_redacted_> }}  {{ 250 2.1.0 OK cf12sm48397ejb.11 - gsmtp }}  {{ RCPT TO:<_redacted_> }}  {{ 250 2.1.5 OK cf12sm48397ejb.11 - gsmtp }}  {{ DATA }}  {{ 354 Go ahead cf12sm48397ejb.11 - gsmtp }}  {{ Date: Sat, 17 Aug 2019 21:10:44 +0200 (CEST) }}  {{ From: Jenkins <_redacted_> }}  {{ To: _redacted_ }}  {{ Message-ID: <14698696.4.1566069044700.JavaMail.FIREBIRD$@FIREBIRD> }}  {{ In-Reply-To: <21875298.1.1566064846550.JavaMail.FIREBIRD$@FIREBIRD> }}  {{ References: <21875298.1.1566064846550.JavaMail.FIREBIRD$@FIREBIRD> }}  {{ Subject: 

[JIRA] (JENKINS-58976) Mail "Test configuration" not working with SMTP auth

2019-08-17 Thread nhar...@gmx.at (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Norbert Harrer created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58976  
 
 
  Mail "Test configuration" not working with SMTP auth   
 

  
 
 
 
 

 
Issue Type: 
  Task  
 
 
Assignee: 
 Adrien Lecharpentier  
 
 
Attachments: 
 Exception.txt, jenkins_mail_config.png  
 
 
Components: 
 mailer-plugin  
 
 
Created: 
 2019-08-17 20:13  
 
 
Environment: 
 OS: Windows 10 1809  Java: Oracle JRE 1.8.0_20-b26  Jenkins: 2.189  Mailer Plugin: 1.24  Jenkins is run as a windows service  Browser: Firefox 68.0.2  
 
 
Labels: 
 mailer smtp SSL  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Norbert Harrer  
 

  
 
 
 
 

 
 The settings under "E-Mail Notification" are configured to use SMTP Authentication with SSL. Using "Test configuration" leads to an exception: "java.net.SocketException: Connection closed by remote host". The full stack trace is attached. This only happens with the "Test configuration" button. Regular build-failed mails actually work fine. Mail is configured like this (see also jenkins_mail_config.png): SMTP Server: smtp-relay.gmail.com Use SMTP Authentication: checked User Name and Password: entered Use SSL: checked SMTP Port: 465 Charset: UTF-8 Test e-mail recipient: e-mail address entered Logging the traffic with sslsplit shows that AUTH LOGIN was not performed: 220 smtp-relay.gmail.com ESMTP h25sm4317wmb.21 - gsmtp EHLO FIREBIRD 250-smtp-relay.gmail.com at your service, [_IP redacted_] 250-SIZE 157286400 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2