Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-950

eMail (XWiki.sendMessage) defaults to illegal SMTP HELO

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 B5
    • Fix Version/s: 1.4 M1
    • Component/s: Other
    • Labels:
      None
    • Environment:
      Linux Java1.5 Java1.6 Tomcat55 PostgreSql
    • Duration (Work Hours):
      1d
    • keywords:
      smtp registration mail validation email fix
    • Similar issues:

      Description

      SMTP HELO must (according to SMTP spec) be a Domain, (like 'jira.xwiki.org').

      Xwiki is defaulting it (if smtp_login is not set) to "XWiki VersionInformation" in XWiki.sendMessage().

      Probably it should use InetAddress.getLocalHost().getHostName() for the default domain.

      It might not even need the smtp_login configuration, InetAddress.getLocalHost().getHostName() may always be correct for the SMTP HELO.

      This was discovered because the Exim4 MTA is smart enough to reject

      HELO XWiki version 1.0-beta-5.2310

      -Tom

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvdrean Jean-Vincent Drean
                Reporter:
                toehser Tom Oehser
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified