-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e-mail notifications do not work from docker container #20
Comments
Update: So I am really curious what is missing in the Domticz folders to be the cause of the email errors for the standard notification functionality in Domoticz. grtz, |
I have the same problem after I installed on a Rasp Pi 4 (Buster) (note this was an image from http://www.raspberry-asterisk.org/downloads/. + Docker version 19.03.5, build 633a0ea Using the CLI option in Portainer for the Domoticz container I tried various email functions but none worked: root@906c589a83bc:/# sendmail [email protected] < /tmp/email.txt Looks like no email package has been installed despite the fact this image is 600MB. I looked at adapting the package with Docker Build but it's beyond my skills and anyway, I don't know if "SMTP Mailer" is one of the above or not. Pity, as Domoticz was looking promising, especially with Blockly. At least I could access my GPIO pins with this image which I couldn't do with the linuxserver image. Alan |
Sorry about all this, I am out of town at the moment, I will remaster this image with the email utilities this weekend. And hopefully figure out some way of automatically building and re-uploading this image. |
Thanks for responding so positively. I've also need to send mqtt and in the absence of mqtt in Blockly I wrote a script. That required I install paho-mqtt: sudo pip3 install paho-mqtt . Any chance please you could also add in paho-mqtt when you sort out the email. Best wishes, Alan |
Thanx mate that would be great!! I was already on the way to see if I could make a brand new container based on ubuntu:latest to get it working myself. Again, thank you very much for your effort! with regards, |
As a temporary measure I have written a bash & python scripts to send emails from Blockly but I guess it can be used wherever a script can be called. In fact there are 2 sets of scripts, one for emails and one for mqtt messages. |
Thank You for Your work. Any chance to add email feature for domoticz docker? |
Hello,
I used https://www.domoticz.com/wiki/Docker to install the docker container Domoitcz.
I works like a charm exept for the e-mail notifications.
My setup:
Raspberry PI 4B with Ubuntu Linux image VERSION="19.10 (Eoan Ermine)"
Server: Docker Engine - Community
Version: 19.03.3
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: a872fc2
Built: Tue Oct 8 00:59:07 2019
OS/Arch: linux/arm64
Your docker container from Dockerhub
Domoticz V4.10364
Script to run the container:
docker run --name=domoticz_arm
--privileged
-d
--network ip32to63
-v /home/ubuntu/terraform/domoticz/datadir/config:/config
-t joshuacox/mkdomoticz:arm
Email notification errors from the Domoticz log:
2020-02-06 11:03:05.143 Notification sent (email) => Failed
2020-02-06 11:03:05.151 Active notification Subsystems: email (1/13)
2020-02-06 11:03:05.102 Status: Notification: Domoticz test
2020-02-06 11:03:05.143 Error: SMTP Mailer: Error sending Email to: [email protected] !
2020-02-06 11:03:05.143 Error: Failed to send Email notification!
I cannot get it to work with auth, without auth for local LAN.
not on port 25, not on SSL 465
To make sure the container is able to connect to my local SMTP mail server,
I connected to the container and installed telnet.
I was able to to connect to my mail server and send an email via telnet from the
container in the bash shell.
So I am kind of lost why it won't work from the Domoticz web interface.
Any help is appreciated.
Thanx in advance.
grtz,
Andre
The text was updated successfully, but these errors were encountered: