SMTP gmail not send notification

ambakoa year 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?

ambakoa year 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 Tananaeva year ago

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

ambakoa year ago

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

in logs no errors

Anton Tananaeva year ago

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

ambakoa year ago
http://mydomain:8082/settings/notification/6 404 (Not Found)
ambakoa year ago

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

Anton Tananaeva year 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.

ambakoa year ago

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

ambakoa year ago
8082/api/notifications/test/mail 503 (Service Unavailable)
Anton Tananaeva year ago

So is it nothing or service unavailable?

ambakoa year ago

No service is available

Anton Tananaeva year ago

And what are the other details? Headers? Payload?

Anton Tananaeva year ago

How long did the request take?

ambakoa year ago

Hello,

I also deal with this issue with Digitalocean

No header no any activity, maybe i write screen record