ERROR, email.EmailService, unable to startup email service: 5015 ERROR_INTERNAL

173 views
Skip to first unread message

Brian Ball

unread,
Feb 21, 2021, 8:31:58 PM2/21/21
to pwm-general
Finally after many hours put into getting this to work on Ubuntu 20, Utilizing AD LDAP and ADCS .. PWM v2.0.0-SNAPSHOT b99db009 ... I have this just about 95 percent I think, except one last hurdle I cannot find a way around.

Ideally, I'd like to use an internal Postfix relay for SMTP  but it just wont work (Non TLS setup), though I've also tried using a TLS Postfix instance as well AND I've tried pointing it directly at Office365 and I get pretty much the same results every time logged:

"ERROR, email.EmailService, unable to startup email service: 5015 ERROR_INTERNAL (unexpected error loading default java TrustManager: problem accessing trust store)"

The SMTP config state "Certificates used for secure communication with server. If no certificates are specfied, the default Java trust store will be used for certificate validation" -
- So does this mean even for SMTP Plain Text that PWM is looking for some sort of certificate on an SMTP relay? 

Whatever I do and no matter how I configure it, I get errors with the E-Mail configuration 

Running the "test" No matter what I do it gives me "Error 5015
An error has occurred. If this error occurs repeatedly please contact your help desk"

Also, varying on the configuration I try, when I import certificates I get either:

Error 5057
A required service is unavailable. Please try again later.
5057 ERROR_SERVICE_UNREACHABLE (error connecting to secure server while reading SMTP certificates: password.pwm.error.PwmUnrecoverableException: 5059 ERROR_CERTIFICATE_ERROR (remote server did not present any certificates))

OR

Error 5203
Configuration format error: %1%
5203 CONFIG_FORMAT_ERROR (unable to create message transport properties: problem accessing trust store)


I can't tell if something in PWM is bork'd, The SMTP config is bork'd - or if its something with this Java default trust store thats bork'd. Super frustrating given the amount of time I've put into getting this to work - and yeah, all other aspects seems to be working well.

I'm totally stuck - anyone have any ideas?





Brian Ball

unread,
Feb 22, 2021, 6:25:13 PM2/22/21
to pwm-general

Well - I think I resolved it myself here - Turns out the default java keystore WAS bork'd somehow and that was the reason for the PWM problems.

Fixed it with this:

sudo dpkg --purge --force-depends ca-certificates-java 

 sudo apt-get install ca-certificates-java
Reply all
Reply to author
Forward
0 new messages