[JIRA] (JENKINS-1152) Mail server rejecting emails from hudson

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

[JIRA] (JENKINS-1152) Mail server rejecting emails from hudson

JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163119#comment-163119 ]

SCM/JIRA link daemon commented on JENKINS-1152:
-----------------------------------------------

Code changed in jenkins
User: Christoph Kutzinski
Path:
 changelog.html
http://jenkins-ci.org/commit/jenkins/f481b1971d32141219e33aad5f449b45463a8e7c
Log:
  Changelog for JENKINS-1152 and JENKINS-3983
(cherry picked from commit c4dd892ea3067be942d4a89778029ed1522512ff)

Conflicts:

        changelog.html



               

> Mail server rejecting emails from hudson
> ----------------------------------------
>
>                 Key: JENKINS-1152
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-1152
>             Project: Jenkins
>          Issue Type: Bug
>          Components: mail
>    Affects Versions: current
>         Environment: Platform: All, OS: All
>            Reporter: typerlc
>            Assignee: kutzi
>
> When sending emails from hudson, my mail server (postfix, but I'm sure others
> will behave similarly too) rejects the message because the smtp HELO message
> isn't being sent.
> This is because the system property mail.smtp.localhost hasn't been set before
> sending the email.  This is described in the javadocs for com.sun.mail.smtp.
> See also: http://forum.java.sun.com/thread.jspa?threadID=482673&messageID=2252508.
> The solution is to add some code in hudson.tasks.Mailer.createSession() like:
>   props.put("mail.smtp.localhost", localServerName);
> I guess some code to pull the localServerName out of config would be needed to.
> In theory, a work around might be setting a system property when running hudson,
> but I've not been able to make this work yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira