SMTP gmail not send notification

ambako2 years ago

Hello,

So, two copy traccar, one installed on windows, config file

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

work fine, mail sended

second copy traccar on ubuntu digital ocean, config file

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

no test email send
add remove <entry key='mail.smtp.ssl.trust'>*</entry> in config nothing result

no any error in traccar logs

I write litle php script send mail smtp.gmail.com and its is fine

any idea?

ambako2 years ago

replace this

<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>

to

<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.starttls.enable'>true</entry>

no results

Anton Tananaev2 years ago

What result do you get when you test an email notification?

ambako2 years ago

I testing from web notification press test
no result mail not received

in logs no errors

Anton Tananaev2 years ago

I'm asking about the API result. Check browser developer tools.

ambako2 years ago
http://mydomain:8082/settings/notification/6 404 (Not Found)
ambako2 years ago

maybe i not understand what "API result. Check browser developer tools"

Anton Tananaev2 years ago

When you click the test button it sends a network request to the API. You should be able to see that request and response in the network tab in the developer tools. If you don't know how to use developer tools, check the documentation for your browser.

ambako2 years ago

okay, i understand
after press send test nothing request in network tab in chrome

ambako2 years ago
8082/api/notifications/test/mail 503 (Service Unavailable)
Anton Tananaev2 years ago

So is it nothing or service unavailable?

ambako2 years ago

No service is available

Anton Tananaev2 years ago

And what are the other details? Headers? Payload?

Anton Tananaev2 years ago

How long did the request take?

ambako2 years ago

Hello,

I also deal with this issue with Digitalocean

No header no any activity, maybe i write screen record