[
https://issues.apache.org/jira/browse/NET-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15328222#comment-15328222
]
Jörg Weule commented on NET-593:
--------------------------------
Thanks a lot for your quick change.
_hostname_ must be set before (!) connect() for TLS and should be set before or
after connect() for SartTLS .
Please make sure that the connect(...) is not calling another connet(...)
setting the _hostname_ back to null.
Keeping this in mind, your code should work with a small last change on exactly
that source file.
The constructor and disconnect() is setting _hostname_ to null, what is fine
for me.
> HostnameVerifier is called with ip addess instead of the provided hostname
> --------------------------------------------------------------------------
>
> Key: NET-593
> URL: https://issues.apache.org/jira/browse/NET-593
> Project: Commons Net
> Issue Type: Bug
> Components: POP3, SMTP
> Affects Versions: 3.4
> Reporter: Jörg Weule
>
> When TLS is used (not StartTLS) on port 465, the HostnameVerifier is checking
> for the ip address, not the hostname. This results in a failure on each
> connection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)