Password reset button, no mail sent from Traccar to user

Roylee01a year ago

Hi Folks,

First of all I want to say what a wonderfull piece of software this is (using this since 3 days). I came from Franson GPSgate and this is much more lightweight, intuitive and better to understand, for users AND admins!

The question, as you might have seen the topic title.
I have problems using the password reset via the login screen. As users tend to loose their passwords, I want this to work properly ofcourse :).

If I use the password reset button on the login screen (with the correct mail adress filled in offcourse) there's no mail being sent. I can verify this by checking the Office 365 mailbox that is being used to send notifications by various machines/programs that I use.
Though reports are sent correctly, this also goes for the notification test.

Does someone know where to look for fixing this matter? Or did I missed something that needs to be configured properly.

Thanks in advance!

Anton Tananaeva year ago

Have you configured SMTP in the configuration file?

Roylee01a year ago

Yes, SMTP is configured correctly, in the xml (as reports and notifications work correctly).

More info about my setup:
Windows Server 2022
Traccar 5.9
Behind reverse proxy from Synology NAS

Anton Tananaeva year ago

Notifications can work if SMTP is configured per user. Password reset won't work without a global config. That's why I explicitly asked if it's configured globally.

Roylee01a year ago

Ah okay! Offcourse :)
But indeed, it's configured globally in the XML.

Anton Tananaeva year ago

No errors in the logs? User email is correct and valid?

Roylee01a year ago

Well, the logs don"t even show the action of resetting the password (I don't know if this is logged btw)
User e-mail is correct, tried with different accounts.

Anton Tananaeva year ago

The action is not logged. Only an error will be logged.

Roylee01a year ago

Is it possible that Office 365 is rejecting it because it contains a link? It's the only thing that I can think of.
Also i have issues updating to latest java version. Currently I'm on 8.0_246 but there's a problem during update that I will look into tommorow. But as it's on 8, I don't think this is the culprit.

Anton Tananaeva year ago

Try another email provider and see if it works there.

Roylee01a year ago

I will try tommorow. I'll let you know.

Roylee01a year ago

I used my ISP mail settings that is relayed via my Synology NAS so I can log what is being sent by Traccar server.
Initially it didn't sent anything the reset link (notifications did work though). I was wondering why because everything was set up correctly. So I start looking at my mail address of the traccar account in question. The account was made with my mail address starting with a capital character. The password reset I'd try to do was with my mail address with no capitals. Which makes the password reset case sensitive.

I now know that every mail address/account that's being created needs to be in lower case, always.

So the problem/thing is that the mail address used for password reset is case sensitive.

Anton Tananaeva year ago

That's your database configuration. You can configure it to not be case sensitive.