Home Automated Living Forums

Home Automated Living Forums (https://www.automatedliving.com/forums/index.php)
-   Technical Assistance (https://www.automatedliving.com/forums/forumdisplay.php?f=11)
-   -   Internet Server Can't get email; send notifications (https://www.automatedliving.com/forums/showthread.php?t=5630)

joesteed 07-14-2016 12:30 PM

Internet Server Can't get email; send notifications
 
My internet server locks up when trying to download email, giving me a mail start error or a timeout, and then being unusable, consuming lots of CPU. This was new with 6.1.16, persists in 6.1.19. Running Windows 10. Any suggestions? I had a similar problem in one of the v5 versions that was a problem with the mail routines in HAL after some kind of change in SSL. That was fixed at the time. Thanks.

TimShriver 07-14-2016 01:01 PM

Re: Internet Server Can't get email; send notifications
 
Hi Joe,

Can you tell me what kind of email account you are using? Gmail, Yahoo, Hotmail...

Tim

joesteed 07-14-2016 02:08 PM

Re: Internet Server Can't get email; send notifications
 
Sorry, Tim. I've tried it with both gmail and comcast.

joesteed 07-14-2016 02:11 PM

Re: Internet Server Can't get email; send notifications
 
Tim, I had also submitted this on the website after finding out about your ticket system, and I got the same question there. Do you want me to just keep up that thread or this one? Sorry for the confusion.

TimShriver 07-14-2016 02:14 PM

Re: Internet Server Can't get email; send notifications
 
Hi Joe,

These settings work for sending and receiving email in HAL with a gmail account. You may need to change your gmail account to “allow access to less secure apps”.

https://support.google.com/accounts/.../6010255?hl=en

Incoming mail (POP3): pop.gmail.com
Outgoing mail (SMTP): smtp.gmail.com
Advanced: Incoming Port: 995
Advanced: Requires encrypted connection: checked
Advanced: Outgoing Port: 465
Advanced: Encryption type: SSL
My Server requires authentication: checked
Settings: Use the same settings as my incoming server: checked

Please let me know if this works for you.

Tim

joesteed 07-14-2016 03:18 PM

Re: Internet Server Can't get email; send notifications
 
I have been using exactly those settings, including the change to gmail, Tim. Is there something I can do to "start over" without deleting all my programming? Something is clearly not right. I've tried reinstalling, but should I be using different options and manually restoring my files?

TimShriver 07-14-2016 08:10 PM

Re: Internet Server Can't get email; send notifications
 
Hi Joe,

Check the email I just sent you with the settings for my gmail account...

Tim

tholliday 09-30-2016 02:19 PM

Re: Internet Server Can't get email; send notifications
 
Has anyone been able to resolve this issue?

I also have the same problem. Tim you and Tyler both sent me some things to try back in July. I had some personal issues to deal with so I did not get around to testing at that time. Today, I finally had a chance to test. The last thing that Tyler asked me to test was installing Hal on another PC. I have tried to download email from a gmail account from another PC with a trial version of Hal installed. I have tried it on two different internet providers and the Hal Internet Server hangs. I can open a telnet session to pop.gmail.com on port 465 on the PC so I know I can communicate to the pop server. I can also use the same POP settings in Outlook and successfully retrieve email using pop. I have verified that the gmail account has POP enable for all mail and that the allow access to less secure apps is enabled. For testing I also disabled the firewall.

I am running Windows 10 and Hal version 6.1.32

TimShriver 09-30-2016 02:25 PM

Re: Internet Server Can't get email; send notifications
 
I am able to use my gmail account. I am using windows 7. I will try the latest build 6.1.33 later today on a windows 10 system. Do you have anything in your error log? It is possible that the Dart email control we use did not install correctly or an antivirus software may have quarantined the required dll files.

Tim

joesteed 10-01-2016 05:54 PM

Re: Internet Server Can't get email; send notifications
 
I was able to get outgoing mail working using port 465 and TLS encryption, back when I was having the problem. That works for me, as I want only notifications. But I was never able to get incoming mail working and haven't tried lately, as I only rarely used it. Hope this helps.

tholliday 10-14-2016 02:46 PM

Re: Internet Server Can't get email; send notifications
 
I could not get it to work using TLS. Tim, I don't see any quarantined dlls in the McAfee log files and they go back to February. I now have 6.1.33 installed and the email still hangs.

BDD43 11-08-2016 11:27 PM

Re: Internet Server Can't get email; send notifications
 
same here, but I cannot get notifications or anything....which is much needed for my sensors.

TimShriver 11-09-2016 07:25 PM

Re: Internet Server Can't get email; send notifications
 
3 Attachment(s)
Hi,

I tested the email tonight using a Gmail account instead of my automatedliving email. I have attached screen shots of setting up the email account info in System Settings.

I then create a rule to fire off an email to me when I clicked on the Ear to begin listening as the trigger event and the action was to send and email to my automatedliving account from the gmail account.

also pictured is the incoming email. Below is the Debug Rule Trace Log:

HAL System Server V6.1.35 @ 21:13:57 On 11/9/2016
RulesEval TE Is True, Now Checking SC's in Rule: Listening ON MIC
************************************************** ******************************
HAL System Server V6.1.35 @ 21:13:57 On 11/9/2016
RulesEval Checked ALL Conditions, Rule is TRUE! Do Actions.
************************************************** ******************************
HAL System Server V6.1.35 @ 21:13:57 On 11/9/2016
RulesEval Execute Action: SIMUM1UM2|||EMAIL||TShriver@automatedliving.com||H AL Notification|This is a test email...|0|0|Send E-mail to E-mail 1|293

I'm not sure what the issue could be if you have followed the Gmail account setting guidelines posted earlier in this thread...

Tim


BDD43 11-10-2016 08:15 AM

Re: Internet Server Can't get email; send notifications
 
I see this in the log file. I tested through my Insteon IP camera, using the same gmail account and settings and it works fine.

HAL Internet Server V6.1.35 @ 09:13:36 On 11/10/2016
CSMTP.SendMail: Encr: 0, Port: 465, Host: smtp.gmail.com
ERROR: Dart.SecureTcp.1, 10060, The connection has been dropped because of a network failure or because the peer system failed to respond. Also caused when Connect, Send, Receive, Fill or Close methods are used with a Timeout parameter and the operation fails to complete within the specified number of milliseconds., 206

TimShriver 11-10-2016 08:23 AM

Re: Internet Server Can't get email; send notifications
 
Quote:

Originally Posted by BDD43 (Post 31651)
I see this in the log file. I tested through my Insteon IP camera, using the same gmail account and settings and it works fine.

HAL Internet Server V6.1.35 @ 09:13:36 On 11/10/2016
CSMTP.SendMail: Encr: 0, Port: 465, Host: smtp.gmail.com
ERROR: Dart.SecureTcp.1, 10060, The connection has been dropped because of a network failure or because the peer system failed to respond. Also caused when Connect, Send, Receive, Fill or Close methods are used with a Timeout parameter and the operation fails to complete within the specified number of milliseconds., 206

This is related to security on your HAL computer which is preventing the communication and is therefore timing out. Your Camera is not running Windows OS LOL...

Tim

TimShriver 11-10-2016 08:31 AM

Re: Internet Server Can't get email; send notifications
 
Quote:

Originally Posted by BDD43 (Post 31651)
The connection has been dropped because of a network failure or because the peer system failed to respond.

What are you using for your firewall?

Tim

BDD43 11-10-2016 12:35 PM

Re: Internet Server Can't get email; send notifications
 
Just the windows defender.

Also, my IP camera is on my network, I ran it from my computer through HTTP IP address just to show it is getting out of my network to gmail. :-)

I'll try to turn off my firewall completely to see if that is the issue.

BDD43 11-10-2016 01:04 PM

Re: Internet Server Can't get email; send notifications
 
Turned off Defender, turned off all Firewalls,

Restarted HAL....tried again, no luck....same error.

TimShriver 11-10-2016 01:11 PM

Re: Internet Server Can't get email; send notifications
 
If you're up for it... when you have a moment, give me a call in the office 855-442-5435 Ext 701. I want to enter your gmail info into a system here and see if it goes out. If it does we can issolate it to something on your computer.

Tim

BDD43 11-10-2016 01:37 PM

Re: Internet Server Can't get email; send notifications
 
Will do.
On another note. I created the below real quick in a windows form (C#) to test..and it worked.

private void button1_Click(object sender, EventArgs e)
{
SmtpClient client = new SmtpClient();
client.Host = "smtp.gmail.com";
client.Port = 587;
client.EnableSsl = true;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = false;
client.Credentials = new NetworkCredential("my gmail account", " my gmail password");

MailMessage msg = new MailMessage();

msg.From = new MailAddress(" my gmail account");
msg.To.Add("my hotmail, my cell phone");
msg.Subject = "Hello You";
msg.Body = "What?";

client.Send(msg);
}

TimShriver 11-10-2016 01:43 PM

Re: Internet Server Can't get email; send notifications
 
The port you used in your test app is not the same one you used in HAL...

BDD43 11-11-2016 09:57 AM

Re: Internet Server Can't get email; send notifications
 
Yes, my understanding is SSL 465 is depreciated and 587 and TLS is used now...587 with SSL enabled.

It works in my program with those set, but not in HAL...although it did in the past version of HAL. I am currently on the latest and greatest.

BDD43 11-12-2016 12:12 PM

Re: Internet Server Can't get email; send notifications
 
It seems it was working on 10/18, but then I see this in the same Error Log. I tried to revert back to 6.1.32 when it was working, but no luck there either.
--

HAL Internet Server V6.1.33 @ 16:17:31 On 11/7/2016
CSecureMail.m_oMailPop_Error: Port: 995, Host: pop.gmail.com, Prot: 0

************************************************** ******************************
HAL Internet Server V6.1.33 @ 16:17:31 On 11/7/2016
CSecureMail.Start
ERROR: Dart.SecurePop.1, 12011, A method is currently blocking the thread. Some PowerTcp methods are not reentrant. For example, if you set a timer and enter the Receive method with a Timeout, and attempt to enter the Receive method again, then this error is generated., 140

TimShriver 11-12-2016 01:23 PM

Re: Internet Server Can't get email; send notifications
 
There has been no change in that area of the code since Build 5.0.14 back on March 12, 2012. (Added support for secure (SSL/TSL) email POP3 and SMTP connections.)

Tim

BDD43 11-12-2016 01:40 PM

Re: Internet Server Can't get email; send notifications
 
Interesting. I did a restore back to 10/28, still same issue. All I can say is it was working and now it is not. Not sure what changed on my computer, but I'll go back through and unload anything I can think of that I've done in the last couple of months.
Could you verify that you are running Windows 10, all updates installed up to date? Just want to make sure we are on the same page. I'll also send you my creds in a private message so maybe you can test it on your end. Since my program allowed it to work, I doubt it is a network issue, but could be some other program causing an issue.

Thanks Tim

TimShriver 11-12-2016 01:55 PM

Re: Internet Server Can't get email; send notifications
 
Got your credentials... I'll try later this evening and let you know. Rather you'll get an email if I'm successful LOL :-)

BDD43 11-12-2016 01:58 PM

Re: Internet Server Can't get email; send notifications
 
LOL....Thanks! I'll continue to look around on my computer as well.

BDD43 11-12-2016 09:29 PM

Re: Internet Server Can't get email; send notifications
 
Never received an email, but not sure if you've had a chance to test either. :-)

TimShriver 11-15-2016 02:52 PM

Re: Internet Server Can't get email; send notifications
 
1 Attachment(s)
Hi Darrin,

You didn't have HAL or Google setup correctly. After I set the port to 465 and adjusted your google account to allow access it worked fine. You should have gotten an email today with the following contents of which has a typo LOL.
Testing 123 Sending an Emial from HA...
11/15/2016 16:40:03 - Execute Action

See this early post in this thread for the instructions you should have followed...
http://www.automatedliving.com/forum...ad.php?p=31581

Attached is a screen shot of the setting change I made in your google account.

Please change your gmail password now for security purposes...

Cheers,

Tim

BDD43 11-15-2016 09:14 PM

Re: Internet Server Can't get email; send notifications
 
Hi Tim,
My 'real' email address did have the correct settings. I changed my HAL to use the test account, set the HAL by your settings, but still same issue. This week I will move HAL to my surface pro. It only has windows 10 and no other programs, so should be a good test.
I will let you know how it goes and thank you for testing that account.


All times are GMT -6. The time now is 08:38 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© 1995-2017 Home Automated Living. All Rights Reserved.