[ 
https://issues.apache.org/jira/browse/GERONIMO-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hendrik Saly closed GERONIMO-6490.
----------------------------------
    Resolution: Duplicate
      Assignee: Hendrik Saly

> 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
>            Assignee: Hendrik Saly
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to