This error happened after we migrated Jenkins to a bigger server. The configurations were alike and the mail server configured was internal. Apparently there were no mail changes so why the error I don't have a clue. I ended up authorizing the domain.
Try this props.put("mail.smtp.starttls.enable", "true");
ReplyDelete@Kuldeep that option was already in use and it was still failing.
ReplyDelete