5057 ERROR_SERVICE_UNREACHABLE: unable to connect to email server

547 views
Skip to first unread message

sofia(백선혜)

unread,
Jul 5, 2022, 7:24:00 AM7/5/22
to pwm-general
Hi Team, 
I'm configuring email server of PWM as SMTPSVC (local Windows SMTP Server (IIS)). The SMTPSVC is configured in windows server which tomcat(PWM) is installed. 

But, I got some errors like the below.
  • When I set the SMTP Server Address of default email server in PWM as 172.31.3.78.
    1. ERROR, email.EmailConnectionPool, 5057 ERROR_SERVICE_UNREACHABLE (unable to connect to email server 'id=default,host=email-smtp.ap-northeast-2.amazonaws.com,type=SMTPS,port=587,username=AKIAZ6QXZEQ2B7DWMCXP', error: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: email-smtp.ap-northeast-2.amazonaws.com, 587; timeout 10000, cause:java.net.SocketTimeoutException: connect timed out)
    2. ERROR, email.EmailService, error sending email (5057 ERROR_SERVICE_UNREACHABLE (unable to reach any configured email server))
    3. WARN. email.EmailService_WorkQueueProcessor, discarding queued item due to age
  • When I set the SMTP Server Address of default email server in PWM as 127.0.0.1.
    1. ERROR, email.EmailService, error sending email (5057 ERROR_SERVICE_UNREACHABLE (unable to reach any configured email server)) 
    2. ERROR, email.EmailService, 5057 ERROR_SERVICE_UNREACHABLE (unable to reach any configured email server) 
    3. WARN , email.EmailConnectionPool, 5057 ERROR_SERVICE_UNREACHABLE (unable to connect to email server 'id=default,host=127.0.0.1,type=SMTP,port=587,username=corp\Admin', error: jakarta.mail.MessagingException: Got bad greeting from SMTP host: 127.0.0.1, port: 587, response: [EOF])
This is screenshots of PWM Configuration.
pwm.png
This is screenshots of Windows SMTP Server Configuration.
Screen Shot 2022-07-05 at 7.38.34 PM.pngScreen Shot 2022-07-05 at 7.39.16 PM.pngScreen Shot 2022-07-05 at 7.39.28 PM.pngScreen Shot 2022-07-05 at 7.45.41 PM.pngScreen Shot 2022-07-05 at 8.13.26 PM.png


I would be so appreciated if you help me out.

Best Regards,
Sofia.

Jason Rivard

unread,
Jul 5, 2022, 10:15:38 PM7/5/22
to pwm-general
If you google those errors there are lots of tips.  One means the service can't connect at all to the remote service (tcp connection timeout) and the other means it talked to a service but the service didn't behave like an SMTP server ( Got bad greeting ).

sofia(백선혜)

unread,
Jul 5, 2022, 11:33:56 PM7/5/22
to pwm-general
I googled but still confused... 
Since the IP address of the SMTP virtual server is 172.31.3.78, so I have to set the IP address of default email server in PWM configuration page. right? 
I also allowed the local host, its virtual server ip address itself in the relay restrictions. What is PWM's IP address? 

Thank you.

Jason Rivard

unread,
Jul 6, 2022, 12:38:21 AM7/6/22
to pwm-general
We can help with PWM questions here but general server admin questions are probably best for wherever you get OS/mail service support.
Reply all
Reply to author
Forward
0 new messages