-
Notifications
You must be signed in to change notification settings - Fork 0
sending email via Application Settings -> email setup does not work #1
Comments
I have not tried emailing myself, but maybe you can inspect the Log file for any error messages? You can find the Log file via DSM / Package Center. |
That looks indeed as if the To: email cannot be accurately retrieved when sending the email. I believe there is a test-button for verifying email settings, does that work correctly? And can you see the valid email address in the settings page? I will confirm tonight at home if it works for me with gmail settings. |
----Messaggio originale---- Data: 1-lug-2014 12.07 A: "jorikcaljouw/spksrc"spksrc@noreply.github.com Cc: "unheilig"unheilig@libero.it Ogg: Re: [spksrc] sending email via Application Settings -> email setup does not work (#1) That looks indeed as if the To: email cannot be accurately retrieved when sending the email. I believe there is a test-button for verifying email settings, does that work correctly? And can you see the valid email address in the settings page? I will confirm tonight at home if it works for me with gmail settings. — |
Can you double check there are no spaces before or after the email addresses? The error message in the log seems to indicate there are issues retrieving the to: emailaddress when sending the email. These settings should be stored in the database file if I'm not mistaken. |
checked. no spaces at all, before nor after. some other strange behaviour:
it looks like I have some (network) problem in my Domoticz. what could be (assuming that everything else in DSM5.0 is running fine)? |
Ok, so your gmail config does work on his, but not on your NAS. Only thing I noticed is that you configured DSM to use port 465, while Domoticz is configured to use 587. Could you try the same port configuration in Domoticz to rule out it is related to your network situation? |
yes, mine on his is working fine. his config on mine is not working, as long as mine on mine! I noticed that the Red box with the error message ("please check your credentials") is (sometimes) also appearing on my friend's NAS (DS411+ x86), but working fine (i'm going crazy). Maybe a JSON trouble on my compiled version? |
Hi Jorik, |
hi guys, Indeed, "@" sign is converted into %40 and maybe the command that is executed to send email can't catch the correct email address since it contains some "garbage" please have a look at the image (the example is related to an API notification (PUSHOVER service). Indeed if I try to use PRAWL, that requires no userid authentication but the API key, notification is working correctly. PLEASE HELP! thank you! |
Hi @unheilig, BTW, I have updated the Makefile for the latest revision (1853) and it still seems to build and work correctly on my computer. I am building all archs that used to work to verify if anything else breaks. |
hi Jorik, Moreover, it often happens that domoticz hangs and crashes, and has to be stopped-restarted. I can confirm that it works perfectly on the x86 compiled version, regardless of browser/charset; Maybe @gizmocuz can verify what could be wrong in the notification settings (mainly the SMTP configuration to send emails?) thank you very much |
hi Jorik, do you think there are some benefits in trying the latest revision (1853)? thank you in advance |
I didn't see anything in the changelogs that would indicate your issue would be resolved, but you never know ;-). I could be mistaken, but domoticz_88f6281_1853-1.spk is the right arch for the DS213, right? It would also be good if you could verify that upgrading the package works correctly. It did seem to work correctly for me and I have investigated that copying the database for the upgrade should happen correctly. Nonetheless you may want to create a manual backup from the web interface to be sure. |
Yes, I had the "domoticz_88f6281_1812-1.spk" compiled for my DS213, that's right. thank you! let me know how to get the compiled version then! G |
Oh, sorry, I thought the link I sent earlier would point you to the folder with both revisions, if it did not, this link should work: |
hi. and, unfortunately, no fix were made for the email notifications to work. :( |
yes, same issue as mine. |
According to people in the domoticz forum this should be resolved in rev 2029. I'll create a package with the latest rev. on Sunday. |
I have added a package with rev 2042 for your arch to the same folder: |
Hi Jorik, thanks for your work. I've just installed rev 2042 but unfortunately when trying to send an email Domoticz hangs infinitely, without returning a response. I'm going to test it again trying to change the smtp server/ port (at the moment I'm using smtp.gmail.com and port 465) thank you, please let's keep in touch |
Hmm, that does not sound good. I will test the same package on my DiskStation tonight, but I would find it very strange if this application could cause DSM to not respond anymore. |
I suppose it's the whole browser (Chrome) that hangs, not the DSM itself... thank you! |
I have installed domoticz_88f6281_2042-4.spk on my DS410J. Does that answer you ? In my test I have set the Gandi mail server (webmail.gandi.net:25) |
hi @Schim57300, so we run the same spk on the same DSM os. are you able to try with smtp.google.com:465? thank you |
I have just tried with my google account and it does not work. Maybe the problem come from Gmail... |
Outgoing connection on port 25 to smtp servers outside your ISP network will typically not work, because all ISP's that I know block it to prevent spam. I believe Gmail requires encryption (TLS or SSL) for ports 465 and 587, which could fail if something was not compiled correctly with SSL support. Would it be possible to test this with an SMTP server by your internet provider which will probably accept emails sent to port 25? |
Sorry I won't be able to try with another mailbox :-\ If I would encounter another problem with this release (that I didn't with the previously installed one) where should I describe it ? It is not related to Notifications.... Thanks |
most ISPs do NOT allow connecting to port 25 from outside your home connection, could this be it? |
I confirm in France some ISP prevent the use of the port 25 to send e-mail (Orange...) |
hi @gizmocuz, using google smtp won't help, since SSL authentication is not working in version 2042-4. |
There have been people using gmail since the more then a year, it should work |
You should not do this, the .gz files are send over with a gzip HTTP header to the client, this has been working for year(s) now, so no need to unpack them |
unfortunately @gizmocuz gmail doesn't work. can you probe that smtp.google.com:465 or 587 is sending email correctly? @jorikcaljouw do you think it is possible to investigate in SSL authentication for email sending? |
@gizmocuz , Maybe I have done something wrong. |
There were a couple of improvements made between 1853-1 and 2042-4. I'm not sure if upgrading directly from the old to the new works 100% correctly. Could you maybe backup the database manually (from Domoticz itself), then remove the Domoticz package and install 2042-4? Then reload the database manually? |
@unheilig if non-SSL to your ISP SMTP server also does not work, I think we should be looking into this before looking into SSL issues. I wonder if it would be easy to log all data that is actually sent via SMTP with wireshark or something similar. |
@jorikcaljouw yes, also port 25 is not working, you're right. thank you |
@jorikcaljouw I did uninstall the package yesterday. Then I installed the new one. I do not understand why that does not work. Maybe I should try a previsous version. |
For your information my problems are solves. My Domoticz server works correctly on my Synology :
It remains an issue when I want to list devices on Andromoticz. A mail has been sent to the support :-) @jorikcaljouw : Do you need me to test anything else ? Current release : domoticz_88f6281_2020-4.spk Schim' |
hi @Schim57300, I've tried your suggestion as per login method, but unfortunately nothing changed by my side. |
Changing the loging method has solved my "js exception" problem. Regarding the notifications, would it help you if I would create a dummy mailbox on my gandi account and I provide you with the connection identifiers ? You would be able to try the notification on your side :-\ |
@Schim57300 that could be a great idea to deal with. you can email me at unheilig at libero dot it. thank you! |
done. |
As stated by @Schim57300, email notification through smtp port 25 works with Domoticz! so it could be useful to understand why SSL authentication is not properly working... |
Make take out the code, build a small test app with it ? And debug line by line |
I am making some last small changes to my fork of spksrc for domoticz, then I will create a PR and then I'm closing my fork. In this time frame I will not be looking into possible SSL issues on 88f6281. Hence closing this issue in this fork |
latest svn version now has SSL build in |
ssl-tls on port 587 runs smoothly. |
reported by @unheilig:
as per email notifications (application settings -> email setup), I couldn't send any email although I was using a google account and following the same rules stated here: http://www.domoticz.com/wiki/Application_Settings. Any ideas?
The text was updated successfully, but these errors were encountered: