Mail doesn't work

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
HTCraft
Posts: 11
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Mail doesn't work

Postby HTCraft » 28 Jun 2018, 14:21

I'm developing an extension for Unity3D.
I try use SignUpController, all works fine but doesn't work an email.
After new signup in the log a see the error

Code: Select all

28 jun 2018 | 16:48:06,953 | WARN  | pool-4-thread-1 | components.signup.SignUpAssistant |     | An error occurred while sending an email to: xxxx@xxxx.xxx -- javax.mail.MessagingException: Exception reading response;
  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
28 jun 2018 | 16:48:06,954 | WARN  | pool-4-thread-1 | entities.managers.SFSPostOffice |     | Failed sending email: { Email To: xxxx@xxxx.xxx , From: xxxx@xxxx.xxx , Subject: Thanks for signing up! }, javax.mail.MessagingException: Exception reading response;
  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

All certificates added by keytool.exe.
What is the problem?
User avatar
Lapo
Site Admin
Posts: 20216
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Mail doesn't work

Postby Lapo » 29 Jun 2018, 08:11

Hi,
it looks like an SSL communication issue with your SMTP server.
Have you tried using a google SMTP (gmail)? They usually work without issues.

All certificates added by keytool.exe.

What certificates exactly?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
HTCraft
Posts: 11
Joined: 28 Jun 2018, 09:51
Location: Moscow, Russia
Contact:

Re: Mail doesn't work

Postby HTCraft » 30 Jun 2018, 08:55

Lapo, thanks for reply!
Solved!
After adding root certificates (and all other in chain) to C:\Program Files\SmartFoxServer_2X\jre\lib\security\cacerts the mail works fine.
User avatar
Lapo
Site Admin
Posts: 20216
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Mail doesn't work

Postby Lapo » 02 Jul 2018, 08:01

Good to know, thanks!
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 9 guests