more G-Labs products

Author Topic: Can't get email to work  (Read 1842 times)

November 02, 2016, 09:14:06 PM
Read 1842 times

naps1saps

  • ***
  • Information
  • Full Member
  • Posts: 79
I can't get my email to work with or without SSL (ports)  The SSL checkbox won't stay unchecked either.  I'm stuck.  Anyone else having this problem?  r525

November 03, 2016, 09:52:09 AM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Yes by default if you look at the parameter the check box is always On. but if you uncheck and save, the mail sender works without SSL. For me Mail sending works without SSL.

November 03, 2016, 11:43:43 PM
Reply #2

naps1saps

  • ***
  • Information
  • Full Member
  • Posts: 79
by "save" do you mean the restart button on the window?  If I do that and re-open the window it is checked again.  I've tried unchecking with and without ssl ports and leaving it checked with and without ssl ports and nothing seems to want to work.  Not even my localhost relay server.
I did randomly receive an email twice but it was over 12 hours since it was sent.

Seems HG is sending the message but there is a problem with the message itself?  Emails are going out just fine from my php site using this relay.

Here is my mail server log trying to relay the email:

"DEBUG"   1912   "2016-11-03 17:12:18.821"   "Creating session 698"
"TCPIP"   1912   "2016-11-03 17:12:18.822"   "TCP - 192.168.0.3 connected to 192.168.0.3:25."
"DEBUG"   1912   "2016-11-03 17:12:18.830"   "TCP connection started for session 697"
"SMTPD"   1912   697   "2016-11-03 17:12:18.830"   "192.168.0.3"   "SENT: 220 epicdecals.com ESMTP"
"SMTPD"   1904   697   "2016-11-03 17:12:18.835"   "192.168.0.3"   "RECEIVED: EHLO ****"
"SMTPD"   1904   697   "2016-11-03 17:12:18.835"   "192.168.0.3"   "SENT: 250-epicdecals.com[nl]250-SIZE 20480000[nl]250-AUTH LOGIN[nl]250 HELP"
"SMTPD"   1904   697   "2016-11-03 17:12:18.836"   "192.168.0.3"   "RECEIVED: MAIL FROM:<********@comcast.net>"
"DEBUG"   1904   "2016-11-03 17:12:18.837"   "Total spam score: 0"
"SMTPD"   1904   697   "2016-11-03 17:12:18.840"   "192.168.0.3"   "SENT: 250 OK"
"SMTPD"   1892   697   "2016-11-03 17:12:18.844"   "192.168.0.3"   "RECEIVED: RCPT TO:<*********@gmail.com>"
"SMTPD"   1892   697   "2016-11-03 17:12:18.846"   "192.168.0.3"   "SENT: 530 SMTP authentication is required."
"DEBUG"   1892   "2016-11-03 17:12:18.848"   "AWStats::LogDeliveryFailure"
"DEBUG"   1896   "2016-11-03 17:12:18.849"   "The read operation failed. Bytes transferred: 0 Remote IP: 192.168.0.3, Session: 697, Code: 2, Message: End of file"
"DEBUG"   1896   "2016-11-03 17:12:18.850"   "Deleting message file."
"DEBUG"   1896   "2016-11-03 17:12:18.850"   "Ending session 697"
"DEBUG"   1912   "2016-11-03 17:12:27.207"   "Creating session 699"
"TCPIP"   1912   "2016-11-03 17:12:27.207"   "TCP - 192.168.0.3 connected to 192.168.0.3:25."
"DEBUG"   1912   "2016-11-03 17:12:27.210"   "TCP connection started for session 698"
"SMTPD"   1912   698   "2016-11-03 17:12:27.211"   "192.168.0.3"   "SENT: 220 epicdecals.com ESMTP"
"SMTPD"   1912   698   "2016-11-03 17:12:27.216"   "192.168.0.3"   "RECEIVED: EHLO *****"
"SMTPD"   1912   698   "2016-11-03 17:12:27.217"   "192.168.0.3"   "SENT: 250-epicdecals.com[nl]250-SIZE 20480000[nl]250-AUTH LOGIN[nl]250 HELP"
"SMTPD"   1912   698   "2016-11-03 17:12:27.217"   "192.168.0.3"   "RECEIVED: MAIL FROM:<***********@comcast.net>"
"DEBUG"   1912   "2016-11-03 17:12:27.219"   "Total spam score: 0"
"SMTPD"   1912   698   "2016-11-03 17:12:27.223"   "192.168.0.3"   "SENT: 250 OK"
"SMTPD"   1892   698   "2016-11-03 17:12:27.224"   "192.168.0.3"   "RECEIVED: RCPT TO:<************@gmail.com>"
"SMTPD"   1892   698   "2016-11-03 17:12:27.226"   "192.168.0.3"   "SENT: 530 SMTP authentication is required."
"DEBUG"   1892   "2016-11-03 17:12:27.226"   "AWStats::LogDeliveryFailure"
"DEBUG"   1896   "2016-11-03 17:12:27.229"   "The read operation failed. Bytes transferred: 0 Remote IP: 192.168.0.3, Session: 698, Code: 2, Message: End of file"
"DEBUG"   1896   "2016-11-03 17:12:27.229"   "Deleting message file."
"DEBUG"   1896   "2016-11-03 17:12:27.230"   "Ending session 698"
« Last Edit: November 04, 2016, 01:19:31 AM by naps1saps »

November 04, 2016, 01:31:51 AM
Reply #3

naps1saps

  • ***
  • Information
  • Full Member
  • Posts: 79
Then I try again for a 7th time and I get an email.
Test the security system and it doesn't even attempt to send an email.....
Run my test program again and I receive emails.

So it seems to be working now for some reason but not for the intended purpose of the security system -_-

What is going on????

November 04, 2016, 01:48:09 AM
Reply #4

naps1saps

  • ***
  • Information
  • Full Member
  • Posts: 79
And now after re-typing my email address in the security program, its sending emails now.  And yes... i had the right email in there before.  I don't get why its so flaky to set up.  This isn't the first time I've had this problem.  Had it about 3 times now over the years trying to set up the system from scratch.

Sigh... oh well.  At least it's working now.

November 23, 2016, 03:59:57 AM
Reply #5

GlenDLF

  • *
  • Information
  • Newbie
  • Posts: 6
I've been trying to get the security system to send me an email for about 3 months now.  I have followed the directions in some of the threads ie - drop the @gmail.com from the username, etc, to no avail.  I've tried turning the SSL off, various email accounts - hotmail, gmail and still cannot get anything working.  I have enabled the "allow less secure apps" in my gmail account.  I'm using port 587 and smtp.gmail.com.  Nothing works.

November 23, 2016, 07:01:48 AM
Reply #6

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Have you take a look in your spam folder ?
I have done this operation a long time ago, but I remember I import ssl certificate (how-to is on this forum) and perhaps "less secure app" (not sure it was for HomeGenie)
« Last Edit: November 23, 2016, 07:04:38 AM by nolio »

January 04, 2017, 05:05:11 PM
Reply #7

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
I've just experienced the same situation on r525 over the last couple of weeks using Gmail.emails are no longer sending. I've also noticed that the SSL checkbox will not remain unchecked so you cannot disable SSL. The HG email program clearly needs to be modified to reflect this.

Maybe Google updated their security certs again recently.

January 05, 2017, 01:19:34 AM
Reply #8

mchias13

  • **
  • Information
  • Jr. Member
  • Posts: 45
If you are running on a pi try the info I provided at the bottom of this thread: http://www.homegenie.it/forum/index.php?topic=1209.msg9144#msg9144

It worked for me.  All I used it for was to send email not receive them. You only need to install postfix (step 1).

January 05, 2017, 02:22:29 AM
Reply #9

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Yes I noticed that post.

I'm really trying to find out why suddenly email notification stopped working.I made no changes to HG.Running HG rc525 on Rasbian Wheezy for the last couple of months with no problems.Haven't tried updating Wheezy anyway as updates are no longer supported.I've checked everything I can think of with no luck.

January 05, 2017, 03:23:09 AM
Reply #10

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
My guess would be certificate related.  I believe last time things stopped working for me out of the blue it was an update that either Gene or Yahoo made (don't recall which).  One thing you could try is to restore an older version that was working and the associated backed up settings (assuming you have that).  If it still works, it's something with HG.  Otherwise, it must be related to gmail.  That would mean an update to certificates and/or something else on gmail.

January 05, 2017, 03:53:39 AM
Reply #11

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Have an rc519 image on an SD card so it was one of the first options I tried. No luck either. I also used a known working rc525 image which I used and same story.

I'm convinced it's Mono related and probably security certificate related. Everything is now Mono 4x related and as Wheezy is no longer supported I think what I stated in a previous has come to pass. HG relies heavily on Mono running on Linux.

I'm curious to know if anyone has HG running on Raspbian Jessie or even if HG has been fully tested on it.

I'm now using Homeseer 3 on the RPI under Raspbian Jessie and email notification is working fine. For sending email, which is all I need, using SMTP.GMAIL.COM the Port setting is 25 and SSL is disabled.

I can't see a solution in sight for this problem. I have tried virtually every solution I can think of. I do know that security certificates are generally only valid for a certain period. As I was not using HG over the Christmas period, I'm wondering if the change over to a new year has had any bearing on the problem. Just a shot in the dark.

January 05, 2017, 04:16:49 PM
Reply #12

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I use yahoo instead of gmail but understand the frustration.  I had a working setup at one point that simply stopped.  It took months of tinkering to figure out the issue.  IIRC, in that case it came down to yahoo changing policies such that an app specific password had to be used and concurrently the certificates needed updating.  I used gmail at that time for testing and I think it worked, but that was a long time back.  Prior to the issues, I had been using email notification for a lot.  But, since I found it troubling that a critical notification could be lost due to some certificate or policy update on the email server's side, I changed my approach.

I still wish I could get text message support back similar to how I had AHP setup.  In that case, I used google voice to send/receive coded messages from my phone to control and report.  It was really nice to be able to do that without worry of an instantaneous connection to the server.  When it got through, it would do its thing.  When it sent a message, it didn't matter if I was temporarily out of range.  Right now, the app is good, but nothing like what I used to do.

January 05, 2017, 09:59:05 PM
Reply #13

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Yes I am finding that too.It's taking so long to sort out the email problem I'm strongly thinking of abandoning HG. There was a post a while back about the impending death of HG and I stuck with it but with email notification failing for me things are not looking too good.

I've tried installing on Jessie but a lot of the previous posts refer to Wheezy and are no longer relevant,

My backup image of HG on SD card is Wheezy so I can't update/upgrade through the normal channels now.

I think I will park up HG for the moment and see what Gene's plans are for further development/maintenance.

ps The following is a snippet of the log referring to the non delivery of the email.

2017-01-05 21:34:42.3011 Error HomeAutomation.HomeGenie.Automation   NetHelper   Message could not be sent.   Exception.StackTrace     at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00000] in <filename unknown>:0
  at HomeGenie.Automation.Scripting.NetHelper.SendMessage (System.String from, System.String recipients, System.String subject, System.String messageText) [0x00000] in <filename unknown>:0
« Last Edit: January 05, 2017, 11:38:24 PM by petediscrete »

January 06, 2017, 05:42:16 PM
Reply #14

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I don't know what Gene's priorities are so I can't speak for his future plans.  Over the last few years that I've been using HG and contributing scripts, I'd say that Gene has spurts of high activity and then nothing (on the forum anyway).  In the past there was a pretty strong tester base that he could upload a pre-release HG version and get feedback.  I got to the point where it was upsetting my wife that things would stop working and so I had to stick to a stable version that did everything I need.  I haven't seen a lot of others commenting in that section for quite some time, so it's possible that others are content with how it's running too.

That said, I recently saw that Wheezy is dead and Jessie is the only downloadable option through normal channels.  If I have to start over (almost did last month), it sounds like Jessie could be problematic.  There are users that have it running, but getting mono set up correctly is apparently a bit of an issue.  Perhaps someone using Jessie could update my step-by-step guide to be Jessie friendly?  I may take on that task at some point, but I'm currently struggling to get my github-to-PC linked up again.   :o