Traccar v4.10 - Error Mail Notifications

Eddie4 years ago

Hello,

I've been getting the error for a few days:

Invalid ECDH ServerKeyExchange signature - SSLHandshakeException (... <MailManager: 139 <*: 92 <NotificatorMail: 34 <NotificationResource: 63 <...)

when I try to send a test email. It also does not send me email notifications.

The SMTP configuration is correct (as indicated in the manual).

Can somebody help me?

Thank you

Anton Tananaev4 years ago

Seems like an issue with SSL or with SMTP configuration.

Eddie4 years ago

Hi,

I'm sorry Anton but I don't understand what you mean. All the TRACCAR.XML config is according to https://www.traccar.org/gmail/ and there is no difference.

Anton Tananaev4 years ago

Are you using Gmail?

Eddie4 years ago

Yes.

I also know others who do the same.

Anton Tananaev4 years ago

How are you using Gmail configuration with Hotmail? That's probably the issue.

Eddie4 years ago

Hi Anton,

Excuse the misunderstanding. Yes, I am using a GMAIL account as a server that has always worked and I confirm that it still works. The destination (which I think has nothing to do with it) is a HOTMAIL account.

Eddie4 years ago

The configuration (https://www.traccar.org/gmail/) was working perfectly until a few days ago.

Anton Tananaev4 years ago

Try upgrading your Java VM.

Eddie4 years ago

Hi Anton,

java version upgrade from v8 to v11 but I get the same error when trying to send a test email from GMAIL.

2020-08-31 17:59:20  INFO: Operating system name: Linux version: 5.4.51-v7l+ architecture: arm
2020-08-31 17:59:20  INFO: Java runtime name: OpenJDK Server VM vendor: Oracle Corporation version: 11.0.5+10-LTS
2020-08-31 17:59:20  INFO: Memory limit heap: 970mb non-heap: 0mb
2020-08-31 17:59:20  INFO: Character encoding: UTF-8 charset: UTF-8
2020-08-31 17:59:20  INFO: Version: 4.10
2020-08-31 17:59:20  INFO: Starting server...
2020-08-31 17:59:21  INFO: jetty-9.4.30.v20200611; built: 2020-06-11T12:34:51.929Z; git: 271836e4c1f4612f12b7bb13ef5a92a927634b0d; jvm
11.0.5+10-LTS
2020-08-31 17:59:21  INFO: Started o.t.w.@cfe107{/,null,AVAILABLE}
2020-08-31 17:59:21  INFO: DefaultSessionIdManager workerName=node0
2020-08-31 17:59:21  INFO: No SessionScavenger set, using defaults
2020-08-31 17:59:21  INFO: node0 Scavenging every 660000ms
2020-08-31 17:59:25  INFO: Started o.e.j.s.ServletContextHandler@341e3d{/,null,AVAILABLE}
2020-08-31 17:59:25  INFO: Started ServerConnector@c622a7{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2020-08-31 17:59:25  INFO: Started @23734ms
2020-08-31 17:59:25  INFO: Health check enabled with period 240000
2020-08-31 17:59:28  INFO: SMPP session connected
Eddie4 years ago

Hello,

My last test has been downgraded to version 4.8 and everything works perfectly and does not give any SSL error when sending notifications via email and it has nothing to do with the JAVA version (currently v.11.0.8).

There seems to be something in v.4.10 that the GMAIL server doesn't like at all.

Juan Sánchez4 years ago

Hello!

I have the same issue; on 4.9 no error, with 4.10, SSL issue.

Using Raspberry Pi 3B+ with Raspbian and ARM version.

I try with with 2 different configurations (On 4.9, with the first one runs fine):

2020-07-29 01:24:15 DEBUG: JavaMail version {0}
2020-07-29 01:24:15 DEBUG: successfully loaded resource: {0}
2020-07-29 01:24:16 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
2020-07-29 01:24:16 DEBUG: useEhlo true, useAuth false
2020-07-29 01:24:16 DEBUG: trying to connect to host "smtp.gmail.com", port 465, isSSL true
2020-07-29 01:24:16 DEBUG: X509Certificate: Alg:{0}, Serial:{1}, Subject:{2}, Issuer:{3}, Key type:{4}, Length:{5,number,#}, Cert Id:{6,number,#}, Valid from:{7}, Valid until:{8}
2020-07-29 01:24:16 DEBUG: getSocket, host smtp.gmail.com, port 465, prefix mail.smtp, useSSL true
2020-07-29 01:24:16 TRACE: create socket: prefix mail.smtp, localaddr null, localport 0, host smtp.gmail.com, port 465, connection timeout -1, timeout -1, socket factory null, useSSL true
...
2020-07-29 01:24:17 DEBUG: Starting mapping of the exception. - Invalid ECDH ServerKeyExchange signature - SSLHandshakeException (... < MailManager:139 < *:92 < NotificatorMail:34 < NotificationResource:63 < ...)
2020-07-29 01:24:17 DEBUG: Exception 'javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: Invalid ECDH ServerKeyExchange signature' has been mapped by 'org.traccar.api.ResourceErrorHandler' to response 'Bad Request' (400:CLIENT_ERROR).
...
2020-07-29 01:25:21 DEBUG: startTLS host smtp.gmail.com, port 587
...
2020-07-29 01:15:39 DEBUG: Exception 'javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: Invalid ECDH ServerKeyExchange signature' has been mapped by 'org.traccar.api.ResourceErrorHandler' to response 'Bad Request' (400:CLIENT_ERROR).
Karl G4 years ago

i think there is an issue with google as 4.10 goe location gives SSL cert error now, had to switch to another, works fine on 4.9. So maybe its a change google done

Anton Tananaev4 years ago

Karl G, what OS are you using?

Karl G, Eddie, please try using default Java VM that comes with the platform.

I have tried Ubuntu 20.04 (LTS) x64 with Traccar 4.10 and everything works fine.

Karl G4 years ago

Using a pi2