You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Alexander Grupe (JIRA)" <ji...@apache.org> on 2013/09/23 16:18:02 UTC

[jira] [Created] (GERONIMO-6490) Unable to configure EHLO/HELO host name via property “mail.smtp.localhost”

Alexander Grupe created GERONIMO-6490:
-----------------------------------------

             Summary: Unable to configure EHLO/HELO host name via property “mail.smtp.localhost”
                 Key: GERONIMO-6490
                 URL: https://issues.apache.org/jira/browse/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 [1].

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}}).

[1] https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html

--
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: http://www.atlassian.com/software/jira