title: Jenkins error com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated
body: <p>I am getting below error while sending test mail through outlook. SSL is disabled. While I am sending mail through Gmail it's OK, but not able to send mail through outlook because of below error:</p>
  
  <blockquote>
    <p>com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MA1PR0101CA0012.INDPRD01.PROD.OUTLOOK.COM]</p>
  </blockquote>
  
  <p>I have configured:</p>
  
  <ul>
  <li>smtp server port: 587 and also checked 28</li>
  <li>User Name and password also configured.</li>
  </ul>
  
  <p>While searching through Google I saw to set;</p>
  
  <p>edit file: "/etc/default/jenkins"</p>
  
  <p>sudo vim /etc/default/jenkins</p>
  
  <p>add the line:</p>
  
  <p><code>JAVA_ARGS="-Djava.awt.headless=true -Dmail.smtp.starttls.enable=true"</code> but I am not have etc in my program file/Jenkins. I assume if ssl is disabled then  this is not the error.</p>