geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Grupe (JIRA)" <>
Subject [jira] [Created] (GERONIMO-6490) Unable to configure EHLO/HELO host name via property “mail.smtp.localhost”
Date Mon, 23 Sep 2013 14:18:02 GMT
Alexander Grupe created GERONIMO-6490:

             Summary: Unable to configure EHLO/HELO host name via property “mail.smtp.localhost”
                 Key: GERONIMO-6490
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
    Affects Versions: 3.0.1
         Environment: any
            Reporter: Alexander Grupe

Geronimo Mail seems to use the same JavaMail properties as the original Sun implementation

Unlike the original implementation, however, the “mail.smtp.localhost” property cannot
be used to specify which host name should be used when issuing a EHLO or HELO command to the
SMTP server.

Instead, the return value of {{InetAddress.getLocalHost().getHostName()}} is always used,
regardless of the value of “mail.smtp.localhost”. (To be exact, the property is only ever
used if {{getHostName()}} returns null, which is very unlikely to happen.)

The local host name returned by {{InetAddress.getLocalHost().getHostName()}} should rather
be used as a *fallback* value, not as an *override* value. Otherwise, you can only influence
what is sent in the EHLO/HELO command by changing the JVM environment (e.g. by editing {{/etc/hosts}}).


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message