Unable to send mails from Hudson

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unable to send mails from Hudson

bzoelss
Hi, we are running Hudson 1.370 in Apache Tomcat 6.0.26 on AIX. I can successfully send mails from the unix commandline using sendmail on localhost. To do this, I've created a simple test file (sendmail.in) as input for sendmail (adresses are faked in this post):
From: Hudson <hudson@host.org.at>
To: bzoelss@org.at
Subject: Testmail host
this mail was sent from host.org.at 
Executing
cat sendmail.in | sendmail -t
sends the mail. My hudson.tasks.Mailer.xml reads:
<hudson.tasks.Mailer_-DescriptorImpl>
  <hudsonUrl>http://host.org.at:8080/hudson/</hudsonUrl>
  <adminAddress>bzoelss@org.at</adminAddress>
  <smtpHost>localhost</smtpHost>
  <useSsl>false</useSsl>
  <charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>
Sending a test email to the admin leads to
Failed to send out e-mail

com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.8 Domain of sender address bzoelss@org.at does not exist
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)	at
com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)	at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)	at
javax.mail.Transport.send0(Transport.java:169)	at javax.mail.Transport.send(Transport.java:98)	at
hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:463)	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)	at
java.lang.reflect.Method.invoke(Method.java:599)	at
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)	at
org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)	at
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)	at
org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)	at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)	at
org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)	at
org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:359)	at
org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)	at
org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181)	at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)	at
org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)	at
org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)	at
org.kohsuke.stapler.Stapler.service(Stapler.java:132)	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)	at
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)	at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)	at
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at
hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) 	at
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)	at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 	at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)	at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter (AnonymousProcessingFilter.java:125)	at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	 at
hudson.security.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:113)	at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	at
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)	at
hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)	at
java.lang.Thread.run(Thread.java:735)
What is wrong with my configuration?

Thanks
bzoelss