more G-Labs products

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

February 03, 2017, 02:57:38 AM
Reply #15

kevinvinv

  • ****
  • Information
  • Sr. Member
  • Posts: 196

Just my .02,    I am a newbee to the pie but I installed the latest Jesse or whatever it is and didnt have a single problem with Mono... ?


February 04, 2017, 01:15:37 AM
Reply #16

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Yes Jessie and Mono 4x sorts out all those nasty security certs issues. I've a separate HG  image running on Jessie and email notification works fine. I have it working on Wheezy too but a lot more involved to achieve this.

February 04, 2017, 06:42:34 PM
Reply #17

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
I am using R526 on wheezy and mono 4.2.3, installed the certs by

- certmgr -ssl smtps://smtp.gmail.com:465
and
- sudo certmgr -ssl smtps://smtp.gmail.com:465

Certs are update in mono config directory

Check with
- echo "" | openssl s_client -tls1 -showcerts -connect smtp.gmail.com:465

looks okay from what I can tell

But not a single e-mail is being sent, also tried Port 587.

In June Gene mentioned a bug
http://www.homegenie.it/forum/index.php?topic=466.15

I checked the 526 source and the change went in.

Anybody any idea what to check next?

Thanks
Bests
Jens

February 04, 2017, 08:20:57 PM
Reply #18

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Jens ensure you have mono-complete installed and try again.

February 04, 2017, 08:26:09 PM
Reply #19

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
I'd ensure you follow this link to install Mono complete. The GPG signing seems to look after any certs issue.

I'm assuming the rc526 is a typo error. As far as I know it's rc525 on HG.

http://www.mono-project.com/docs/getting-started/install/linux/
« Last Edit: February 04, 2017, 08:41:07 PM by petediscrete »

February 04, 2017, 10:36:47 PM
Reply #20

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
Yes, this is how the installation went, including the ca-certificates-mono.

No, 526 is no typo, you can download it from the source code and compile it yourself. Subjective impression is, that it runs faster than 525. Maybe due to the change in regards to css

snippet from history:
07/07/2016 v1.1-beta.526
    - Fixed Camera widget 'hanging' bug when displaying multiple cameras on a page, also increased refresh speed
    - Fixed side menu refresh bug
    - Fonts are now embedded in css (no more delay downloading from google fonts)
    - Fixed SSL error when sending e-mails
    - Other minor fixes/improvements


« Last Edit: February 04, 2017, 10:40:07 PM by Jens »

February 04, 2017, 11:01:09 PM
Reply #21

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
That's interesting about fixing SSL certs. Email notification has become such an issue for many people. Obviously you have tried this version rc526 but it hasn't resolved yours.

All I can say is that I backed up my HG Wheezy version RC525 and created a new Jessie image, updated it and installed Mono-complete as per my instruction above, restored my settings and it works.

Surprised that Gene never made this version available as a precompiled version. I might try downloading it and compiling it myself to check the results.

February 05, 2017, 12:41:31 PM
Reply #22

Jens

  • *****
  • Information
  • Global Moderator
  • Posts: 211
Did a network trace and found out that TLS handling was aborted with "bad certificate".

Got it working by

cert-sync /etc/ssl/certs/ca-certificates.crt

certmgr was used already before to pick the certificate but now its working well.

February 05, 2017, 01:53:05 PM
Reply #23

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Good news Jens but not everybody will have the level of knowledge you have to achieve this result. Maybe it's time for an overhaul of HG to reflect the development in Raspbian Wheezy v Raspbian Jessie. Since I upgraded to Jessie I haven't managed to get the Pi CSI camera module working with HG.

March 08, 2017, 05:00:11 PM
Reply #24

pinie_pinie

  • ***
  • Information
  • Full Member
  • Posts: 55
The data in the email account are correct. I have already checked this.
Nevertheless, the sending of emails works.
I absolutely lack a good idea.

Is it really so hard to send an email under HG?

Many Thanks!

Thoralf

March 08, 2017, 08:30:47 PM
Reply #25

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
No it's not once it's set up correctly.  When it's not working, debugging has been difficult in the past.