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

Janne Jalkanen resolved JSPWIKI-11.
-----------------------------------

    Resolution: Fixed

The reason was that mail.smtp.starttls.enable was not read from property file, 
but it was read from JNDI context... So if you had a self-signed certificate in 
your MTA, sending mail would fail horribly.

> Non-JNDI mail configuration throws Exceptions during password recovery
> ----------------------------------------------------------------------
>
>                 Key: JSPWIKI-11
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-11
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.5.139-beta
>         Environment: Sun JDK 1.5
>            Reporter: Janne Jalkanen
>            Assignee: Andrew Jaquith
>             Fix For: 2.6.0
>
>
> The following configuration in jspwiki.properties does not seem to work:
> mail.smtp.host=mail.ecyrd.com
> [EMAIL PROTECTED]
> mail.smtp.starttls.enable=false
> No JNDI configuration is done.
> 2007-10-26 15:40:14,300 [TP-Processor3] ERROR com.ecyrd.jspwiki.util.MailUtil 
> SuomiGo:/LostPassword.jsp SuomiGo:http://
> www.suomigo.net/LostPassword.jsp - JavaMail initialization error: Name mail 
> is not bound in this Context
> 2007-10-26 15:40:15,141 [TP-Processor3] ERROR com.ecyrd.jspwiki.util.MailUtil 
> SuomiGo:/LostPassword.jsp SuomiGo:http://
> www.suomigo.net/LostPassword.jsp - javax.mail.MessagingException: Can't send 
> command to SMTP host;
>   nested exception is:
>         javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: sun.
> security.provider.certpath.SunCertPathBuilderException: unable to find valid 
> certification path to requested target
> 2007-10-26 15:40:16,550 [TP-Processor3] ERROR JSPWiki 
> SuomiGo:/LostPassword.jsp SuomiGo:http://www.suomigo.net/LostPass
> word.jsp - Tried to reset password and got another exception: 
> javax.mail.MessagingException: Can't send command to SMTP
>  host;
>   nested exception is:
>         javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: sun.
> security.provider.certpath.SunCertPathBuilderException: unable to find valid 
> certification path to requested target
> Apparently fallback from JNDI to regular jspwiki.properties is not working 
> properly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to