error: password.pwm.error.PwmUnrecoverableException: 5085 ERROR_EMAIL_SEND_FAILURE

46 views
Skip to first unread message

ahad alam

unread,
Mar 23, 2025, 5:09:30 AMMar 23
to pwm-general
I am trying to configure for email sending in pwm. 
I have configured email according to following attribute

SMTP Server Address: x.x.x.x(intentionally not published)
SMTP Connection Type: SMTPS(SSL/TLS)
SMTP Server Port: 587

But it throws the error specified. how can i resolve the issue?

Panupong Viyavech

unread,
Mar 23, 2025, 10:37:58 AMMar 23
to pwm-general

You can connect your SMTP server with telnet
Then test with EHLO command

>telnet smtp-relay.gmail.com  587

220 smtp-relay.gmail.com ESMTP 41be03b00d2f7-af8a27f3c36sm273271a12.7 - gsmtp
EHLO smtp-relay.gmail.com
EHLO smtp-relay.gmail.com250-smtp-relay.gmail.com at your service, [2403:6200:8851:17c0:c016:5e32:7a4b:8d2f]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

250-STARTTLS --> set your email server option to STARTTLS

Otherwise, check your SMTP server if it needs authentication

ahad alam

unread,
Mar 24, 2025, 2:26:15 AMMar 24
to pwm-general
Exactly same are showing while running 
telnet x.x.x.x 587
the connection is ok. 
still it shows the following error
error: password.pwm.error.PwmUnrecoverableException: 5085 ERROR_EMAIL_SEND_FAILURE

Jason Rivard

unread,
Mar 24, 2025, 7:10:22 PMMar 24
to pwm-general
You will need to find the error in the PWM logs, Ideally at DEBUG level or greater, and there should be more information about the problem.

ahad alam

unread,
Mar 25, 2025, 12:50:47 AMMar 25
to pwm-general
it shows following error in the log
ERROR, email.EmailService, error sending email (5057 ERROR_SERVICE_UNREACHABLE (unable to reach any configured email server)).
Though, Using telnet the email server is accessible from my application server.
I have attached a screenshot.



Screenshot 2025-03-25 at 8.56.20 AM.png

Jason Rivard

unread,
Mar 25, 2025, 1:26:13 AMMar 25
to pwm-general
Did you set the log level to debug?  Can you paste the relevant section of the log?

ahad alam

unread,
Mar 25, 2025, 2:00:40 AMMar 25
to pwm-general
Thanks. It is resolved. It was an authentication related issue.
Reply all
Reply to author
Forward
0 new messages