Skip to main content



      Home
Home » Archived » Hudson » Hudson unable to send emails
Hudson unable to send emails [message #879092] Wed, 30 May 2012 09:55 Go to next message
Eclipse UserFriend
I download Hudson M2 WAR file and configured a job. In the 'Manage Hudson' -> 'Configure System' -> Email Notification section -> 'Test Configuration by sending e-mail to System Administration' works fine, I am able to receive email.

But when I configured a job and job is completed with unit tests failed (Build Failed), then I see the following SMTP authentication error and I don't receive emails. When 'Test Configuration by email' button works fine, why it is unable to send email when job fails? Basically my question, why it is trying to authenticate? I did not enable SMTP authentication. Test Configuration works fine but not when job is completed.. any ideas?

ERROR: 535 5.7.3 Authentication unsuccessful

javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful

	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)
	at javax.mail.Service.connect(Service.java:295)
	at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:491)
	at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:464)
	at hudson.tasks.MailSender.execute(MailSender.java:93)
	at hudson.tasks.Mailer.perform(Mailer.java:115)


Thanks

[Updated on: Wed, 30 May 2012 10:12] by Moderator

Re: Hudson unable to send emails [message #879177 is a reply to message #879092] Wed, 30 May 2012 13:10 Go to previous messageGo to next message
Eclipse UserFriend
This seems a bug in 3.0.0 M2 code, when I downgraded to 2.2 this feature worked fine.
Re: Hudson unable to send emails [message #899175 is a reply to message #879177] Mon, 30 July 2012 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Hum funny, it was working for me with M2 but now with M3 (I did a complete reinstall) I have the same problem as the OP.
Re: Hudson unable to send emails [message #900070 is a reply to message #899175] Fri, 03 August 2012 15:36 Go to previous messageGo to next message
Eclipse UserFriend
Are you using any email plugins like Email-ext plugin?
Re: Hudson unable to send emails [message #977797 is a reply to message #879092] Fri, 09 November 2012 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have the same issue on 3.0.0 RC2.
Any idea if this issue is solved in the RC4?
Re: Hudson unable to send emails [message #978076 is a reply to message #977797] Fri, 09 November 2012 15:39 Go to previous messageGo to next message
Eclipse UserFriend
I can take a look at this issue. What email smtp server are you using?

Thinking this over... I'm thing that could be the issue is the incomplete id, example for Gmail instead of using just the username you must do username@gmail.com

[Updated on: Fri, 09 November 2012 15:45] by Moderator

Re: Hudson unable to send emails [message #1004236 is a reply to message #978076] Tue, 22 January 2013 16:12 Go to previous messageGo to next message
Eclipse UserFriend
I've just upgraded from Hudson 2.2.1 to Hudson 3.0.0 and is now experiencing this problem. Any solutions to the problem or hints to why it happens?

[Updated on: Wed, 23 January 2013 07:27] by Moderator

Re: Hudson unable to send emails [message #1004249 is a reply to message #1004236] Tue, 22 January 2013 16:34 Go to previous messageGo to next message
Eclipse UserFriend
I believe it has something to do with the javax-mail library in hudson-core. We upgraded from 1.4 to 1.4.4.
Re: Hudson unable to send emails [message #1004551 is a reply to message #1004249] Wed, 23 January 2013 07:47 Go to previous messageGo to next message
Eclipse UserFriend
My stack trace is actually different (see http://www.eclipse.org/forums/index.php/m/1004550/#msg_1004550), but it might still be related to the javax.mail upgrade.
Re: Hudson unable to send emails [message #1006649 is a reply to message #1004551] Fri, 01 February 2013 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Just to confirm, I've cracked open the Hudson war and replaced mail 1.4.4 with mail 1.4 and email is now being sent.
Re: Hudson unable to send emails [message #1006725 is a reply to message #879092] Fri, 01 February 2013 10:38 Go to previous messageGo to next message
Eclipse UserFriend
I have the same issue.
I looked into the source code, and found something wrong. (hudson.tasks.Mailer)

If the SMTP authentication is not enabled,
the sendTestMail function will send the mail with null username and null password.
but the function of sending normal notifications, will send the mail with null username and empty password. This cause our issue.

I tried to use my modified version in my own environment. The problem has gone.
Hope this issue could be fixed in the main stream.
Re: Hudson unable to send emails [message #1007671 is a reply to message #1006725] Wed, 06 February 2013 18:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi Leon, could you please submit your patch to the core via Gerrit

The details about submitting patch can be found here
http://wiki.eclipse.org/Hudson-ci/development#Submitting_a_Patch_for_Non-Committers

(repeating here to get your attention Smile )
Re: Hudson unable to send emails [message #1014994 is a reply to message #1007671] Wed, 27 February 2013 02:39 Go to previous messageGo to next message
Eclipse UserFriend
I don't see this with Hudson ver 3.0.0 Bundled
Re: Hudson unable to send emails [message #1016107 is a reply to message #1014994] Tue, 05 March 2013 00:40 Go to previous messageGo to next message
Eclipse UserFriend
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=399631
Re: Hudson unable to send emails [message #1245012 is a reply to message #1016107] Thu, 13 February 2014 01:53 Go to previous message
Eclipse UserFriend
Hi All,

Even I am facing same kind of problem. Can anybody please help to solve the problem.

Intially we are using our own Outlook mail server.
We have given the required parameters and able to send the mail notifications for build fails and for some required alerts.

Now we have migrated our mail server to Office365. In office 365 authentication is mandatory, but Hudson is not doing authentication so failing to send mails.

System is throwing exception like:
javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client at com.sun.mail.smtp.SMTPTransport.authenticate

Regards
Srinu Meriga
Previous Topic:credential lost
Next Topic:hudson3 Cannot create a session after the response has been committed
Goto Forum:
  


Current Time: Tue Jul 22 18:06:00 EDT 2025

Powered by FUDForum. Page generated in 0.05399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top