Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-6515

Unable to set localhost for EHLO in Geronimo JavaMail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • mail
    • Security Level: public (Regular issues)
    • Patch Available

    Description

      I encountered this problem in Apache James, where it was not possible to set proper domain for EHLO/HELO comand in RemoteDelivery.

      After some investigation I found that it's a bug in Geronimo Javamail in MailConnection.java. getLocalHost function ignores all properties and takes `InetAddress.getLocalHost().getHostName()` each time, which is wrong. As a result mail delivery may not work in case of some smtp servers, you will get:

      5.5.2 <hostname>: Helo command rejected: need fully-qualified hostname

      I have prepared patch for this. This problem affects all versions.

      Attachments

        1. GERONIMO-6515.patch
          1 kB
          Grzegorz Tańczyk

        Issue Links

          Activity

            People

              salyh Hendrik Saly
              gtanczyk Grzegorz Tańczyk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: