Unable to get email notifications to work

Stewart Buckland8 years ago

Hi,

I've read through the relevent posts regarding mail notification issues and tried all the different combinations suggested but still unable to get them to fly. Using 3.9 at present and on-screen notifications are popping up fine but just not email.

Refined what I have in config and not getting any WARN messages in tracker-server.log any more.Config looks as follows and the smtp server uses port 587

<entry key='mail.smtp.host'>auth.smtp.1and1.co.uk</entry>
<entry key='mail.smtp.port'>587</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.from'>xxxx.co.uk</entry>
<entry key='mail.smtp.username'>xxxx@xxxx.co.uk</entry>
<entry key='mail.smtp.password'>xxxxxxxxxx</entry>

But still getting the following in wrapper.log

INFO|15524/0|Service traccar|17-02-14 21:36:03|Uncaught exception by Thread[Thread-20,5,main]:
INFO|15524/0|Service traccar|17-02-14 21:36:03|java.lang.NullPointerException:null
INFO|15524/0|Service traccar|17-02-14 21:36:03|java.lang.NullPointerException
INFO|15524/0|Service traccar|17-02-14 21:36:03|	at java.util.Hashtable.put(Unknown Source)
INFO|15524/0|Service traccar|17-02-14 21:36:03|	at org.traccar.notification.NotificationMail.getProperties(NotificationMail.java:69)
INFO|15524/0|Service traccar|17-02-14 21:36:03|	at org.traccar.notification.NotificationMail.sendMailSync(NotificationMail.java:90)
INFO|15524/0|Service traccar|17-02-14 21:36:03|	at org.traccar.notification.NotificationMail$1.run(NotificationMail.java:129)
INFO|15524/0|Service traccar|17-02-14 21:36:03|	at java.lang.Thread.run(Unknown Source)

Can anyone shed any further light on where I'm going wrong here ?

Anton Tananaev8 years ago

You are missing "mail.smtp.auth" parameter. You have to set it to "true".

Stewart Buckland8 years ago

Hello Anton,

I had previously used this line and it gave me error in the tracker-server.log so I removed. I put it back in and still nothing until I switched off Windows Firewall. I hadn't done this previously as I believed all Outbound traffic would be allowed by default. However it must have been blocking as I now have email notifications flowing and no errors.

A simple error on my behalf but I post the result in case it helps future forum users.

Thank you for your help.

Stewart