Email Notification Problems

Furry 2 days ago

Hello,

I'm running traccar as an app on TrueNAS Scale, but cannot make email notification work.

I have opened port 587 on the app configuration, and set up the SMTP account attributes, except perhaps "Email: SMTP SSL Trust" - what does that mean?

Using my own email server:

Port: 587
From: [my email address]
SSL Protocols: TLSv1.3
Host: [my SMTP server's address]
Password: [my SMTP server's password]
Username: [my email account's username]
SSL Trust: ???

SSL Enable: no
Auth Enable: yes
STARTTLS Enable: yes
STARTTLS Required: yes

I receive two errors, when I 'Test Channels':

"Could not convert socket to TLS"
"Could not connect to host: [my SMTP server's address], port: 587"

I can get rid of the first error by setting "SSL Enable" to 'yes', but I'm left with the second error. As though port 587 isn't actually open to the app.

"More details" tells me:
Could not connect to SMTP host: cewdscorner.co.uk, port: 587;
nested exception is:
javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
...

TIA

Furry 2 days ago

I would like to edit, or possibly delete, the post above, but after a very short time I'm prevented from doing so. Please make this possible!

Furry 2 days ago

After finding this in the documentation, I have now set "SSL Trust" to *

Still receiving the "Could not connect..." error.

Furry 2 days ago

Success:

I set SSL Enable back to 'no' (I'm using STARTTLS).

This thread can now be ignored (or deleted).