Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Hudson unable to send emails
Hudson unable to send emails [message #879092] Wed, 30 May 2012 13:55 Go to next message
kiran gunda is currently offline kiran gundaFriend
Messages: 3
Registered: May 2012
Junior Member
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 14:12]

Report message to a moderator

Re: Hudson unable to send emails [message #879177 is a reply to message #879092] Wed, 30 May 2012 17:10 Go to previous messageGo to next message
kiran gunda is currently offline kiran gundaFriend
Messages: 3
Registered: May 2012
Junior Member
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 20:42 Go to previous messageGo to next message
Mario Charest is currently offline Mario CharestFriend
Messages: 2
Registered: July 2012
Junior Member
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 19:36 Go to previous messageGo to next message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

Are you using any email plugins like Email-ext plugin?

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: Hudson unable to send emails [message #977797 is a reply to message #879092] Fri, 09 November 2012 15:33 Go to previous messageGo to next message
Sebastiaan Hobers is currently offline Sebastiaan HobersFriend
Messages: 1
Registered: November 2012
Junior Member
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 20:39 Go to previous messageGo to next message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

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


/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */

[Updated on: Fri, 09 November 2012 20:45]

Report message to a moderator

Re: Hudson unable to send emails [message #1004236 is a reply to message #978076] Tue, 22 January 2013 21:12 Go to previous messageGo to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
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 12:27]

Report message to a moderator

Re: Hudson unable to send emails [message #1004249 is a reply to message #1004236] Tue, 22 January 2013 21:34 Go to previous messageGo to next message
Steve Christou is currently offline Steve ChristouFriend
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

I believe it has something to do with the javax-mail library in hudson-core. We upgraded from 1.4 to 1.4.4.

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: Hudson unable to send emails [message #1004551 is a reply to message #1004249] Wed, 23 January 2013 12:47 Go to previous messageGo to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
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 10:26 Go to previous messageGo to next message
luke biddell is currently offline luke biddellFriend
Messages: 3
Registered: January 2013
Junior Member
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 15:38 Go to previous messageGo to next message
Leon Qin is currently offline Leon QinFriend
Messages: 3
Registered: February 2013
Location: Shanghai
Junior Member
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 23:23 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 449
Registered: August 2011
Location: Fremont, CA USA
Senior Member
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 )


Winston Prakash
Eclipse Hudson team
Re: Hudson unable to send emails [message #1014994 is a reply to message #1007671] Wed, 27 February 2013 07:39 Go to previous messageGo to next message
Tang Shi-Ming is currently offline Tang Shi-MingFriend
Messages: 5
Registered: February 2013
Junior Member
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 05:40 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 449
Registered: August 2011
Location: Fremont, CA USA
Senior Member
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=399631

Winston Prakash
Eclipse Hudson team
Re: Hudson unable to send emails [message #1245012 is a reply to message #1016107] Thu, 13 February 2014 06:53 Go to previous message
Srinu Meriga is currently offline Srinu MerigaFriend
Messages: 1
Registered: February 2014
Junior Member
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: Mon Dec 22 09:21:33 GMT 2014

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

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