Closed alrodgir closed 4 years ago
Try connecting via command line first to rule out any firewall problems.
docker exec -it librenms bash
(replace librenms with the actual name from docker ps
) to enter the containeropenssl s_client -connect smtp.office365.com:587 -starttls smtp
EHLO test
and press enterYou can test alerts using the Webinterface by heading to Alerts -> Alert Transports -> Create alert transport.
Please provide the settings of WEATHERMAP_CRON
and WEATHERMAP_ENABLE
.
Try running the weathermap script manually to check for errors. The cronjob is located at /etc/cron.d/weathermap.
docker exec -it librenms bash
(replace librenms with the actual name from docker ps
) to enter the containersu librenms
/opt/librenms/html/plugins/Weathermap/map-poller.php
Weathermap
WEATHERMAP_CRON /5 * WEATHERMAP_ENABLE true
The cronjob doesn't exist 😓 maybe I need to create it, I supposed the docker contained it 😅
E-Mail
When I run the command openssl s_client -connect smtp.office365.com:587 -starttls smtp
I obtain this, but I can't run the other one
When I try to test the transport is when I obtain the error (Obviously I replace the @domain for my real domain you saw in the first capture of my first post 😅)
Thanks for your time ☺
Please verify that the running container really has the variables set: docker inspect librenms | grep -i weathermap
. You have to remove (docker rm
) and run (docker run
) the container if you change variables.
You have to type EHLO test
before the timeout occurs. The server is waiting for your request after the line 250 SMTPUTF8
.
Weathermap The proble is the map-poller.php, if I run it manually the maps update perfect 👌, but I don't see trafic,
E-Mail This is the output
😉👌
Either you are waiting too long to enter the EHLO test
command or something is interfering with the connection. You have to find a way to verify that your server is actually able to reach the mail server (many providers block ports, quite strict sometimes).
Oks, I'm going to study trace the port forwarding.
@alrodgir Maybe you could try setting up a local mail server for testing. It is pretty easy using the docker image from poste.io.
Hi @jarischaefer I couldn't try it. I can send mails with other hardware (printers, router...) I'm going to try and answer you ASAP.
Edit: sorry for my ignorance, I'm setting up the poste.io, but I don't know how to send mails by it. I'm using the 'local port' of the '25 docker port' in my network HW. I'm looking for a guide on inet, but the walkthrough doesn't work for me :(
As far as I know, you have to use port 465 or 587 rather than 25: https://poste.io/doc/client-settings
The SMTP timeout does not work, it may take a while for errors to show up, see https://stackoverflow.com/a/27406993
Finally, it's alive!!!! The only change has been the from mail. Don't ask me anymore. 🤦♂️🤷♂️ I send the mail direct using office 365 relay servers, and no change the login SMTP auth user.
I'm Thanks for all.
Great to see it's working.
Hi, In the beginning good job for your project, it works perfect. I'm using it in a Synology NAS DS1019+ I've two little issues that I don't know how can I solve it. Maybe someone can help me.
First, I set up the email options to send the alerts using the Office 365 SMTP server, but I don't receive any alert 🤷♂️
Second, I set up the config & output folders for the Weathermap, and the plugin save the config file correct, but can't save the output files, I review the folder permissions and the config file, and all seems to be good.
Maybe you have any idea about my problems, or where I can debug it. (I'm newbie in dockers) Thanks a lot.