SMTP configuration for GMAIL

cybero7 years ago

Hello all,

I've read these threads and I still have problems.
https://www.traccar.org/forums/topic/traccar-3-7-smtp-issue/
https://www.traccar.org/forums/topic/smtp-config-for-notifications/

And I'm still having problems.

This is my configuration in traccar.xml:

<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.from'>xxx@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>xxx@gmail.com</entry>
<entry key='mail.smtp.password'>xxx</entry>

This is my error message:

my error msg

Any idea?

cybero7 years ago

Now I tried in http://demo4.traccar.org/ and this is my config there

my config in demo4
cybero7 years ago

Solution:

I had to change my password.

Yogesh6 years ago

Its a long time and no one has answered this . But I am still replying because this might help others who are looking for solution.

The meaning of the error is that google is blocking the login attempt. and you have to login your gmail account from web browser and authenticate the ip address from which you were trying to login in.

So the solution is. login from browser and authenticate the login attempt.

Jorge Jim6 years ago

Thank you Yogesh..!!

Please help. I get this error. Below I show my configuration. It is to send notifications by email. I would appreciate your support.

javax.mail.AuthenticationFailedException: 534-5.7.9 Application-specific password required. Learn more at
534 5.7.9  https://support.google.com/mail/?p=InvalidSecondFactor a4sm2741590wrh.33 - gsmtp
 - MessageException (NotificatorMail:36 < NotificationResource:63 < ...)

!I get this error

har5 years ago