Unable to send mails from Jenkins (Azure VM)

16 views
Skip to first unread message

rk.de...@gmail.com

unread,
Feb 8, 2021, 12:46:08 PM2/8/21
to Jenkins Users
Hello Everyone,

I recently setup Jenkins on Ubuntu 18.04 LTS (Azure VM) and I am unable to send mail from that.

I setup SMTP server as "smtp.office365.com"
Default user e-mail suffix as "@<company>.com"
I setup SMTP Authentication using my AD credentials
SMTP port as 587
Charset as UTF-8

When I try to send a mail, I am hitting the below error. Can anyone of you suggest on this? Thanks in advance.

Failed to send out e-mail

javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [BL1PR13CA0482.namprd13.prod.outlook.com]

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:762)
at javax.mail.Service.connect(Service.java:364)
at javax.mail.Service.connect(Service.java:222)


Regards,
Ravi Krishna D
Reply all
Reply to author
Forward
0 new messages