Email

William Cadore7 years ago

after having passed my server to a VPS sending the email is giving a "comunication failure" error, with the same settings as when it was in place, the site was working

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='web.port'>80</entry>

    <entry key='database.driver'>org.postgresql.Driver</entry>
    <entry key='database.url'>jdbc:postgresql://127.0.0.1:5432/traccar</entry>
    <entry key='database.user'>[user]</entry>
    <entry key='database.password'>[password]</entry>

    <entry key='server.timeout'>1800</entry>

    <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'>cadore.william@gmail.com</entry>
        <entry key='mail.smtp.auth'>true</entry>
        <entry key='mail.smtp.username'>cadore.william@gmail.com</entry>
        <entry key='mail.smtp.password'>[password]</entry>
</properties>
Anton Tananaev7 years ago

If you get an error it means that either configuration is incorrect or there is some network issue.

William Cadore7 years ago

yes, it makes sense, but if it was working on the other server, all that remains is to configure the VPS network?

Anton Tananaev7 years ago

You need to check if it's a network issue.

br2e7 years ago

Just a small contribution to some of the standard drop-outs by default all smtp or mail ports recently closed I had to ask the support of digital ocean to open these doors for me in their dedication maybe it's their case

William Cadore7 years ago

Ah okay.

I opened a ticket asking about it, I thought it could be, because neither with postfix I could not connect externally with Gmail, thank you very much for the help.