email notification

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
lucius
Posts: 3
Joined: Saturday 28 April 2018 10:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

email notification

Post by lucius »

Hi,
I want to have e-mail notification in responding to events. I try to configure e-mail (gmail) and I don't have any message. I don't have port forwarding (I can't have access to router). Is it related with this issue?
Attachments
email_notification.png
email_notification.png (89.52 KiB) Viewed 10206 times
SweetPants

Re: email notification

Post by SweetPants »

Does the Test message arrive?

Edit: Just tested with my own gmail account using SMTP (587), works just fine.
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: email notification

Post by randytsuch »

I don't port forward and get email notifications fine.

I set up a separate email account just for notification since they are free

My primary account requires confirmation so had trouble with that. Separate email is better anyway don't have to worry about email security
lucius
Posts: 3
Joined: Saturday 28 April 2018 10:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: email notification

Post by lucius »

still, I don't have any message in my gmail account...

password, I put my password to my gmail account

and also it doesn't work
test.png
test.png (24.48 KiB) Viewed 10146 times
SweetPants

Re: email notification

Post by SweetPants »

@lucius, Again, does the Test Message arrive?
juuzo
Posts: 20
Joined: Monday 15 October 2018 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: email notification

Post by juuzo »

I have also problems with email notifications. Test message arrives right but I can’t get any notifications. I was wondering if domoticz ever tries to send notifications cause nothing comes in log. How do I know if domoticz is even trying to send email or not?
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: email notification

Post by tvurce »

I am also unable to send any email, not even test mail.

Raspbian + latest dev Domoticz (tried last half year, so not version specific)
Tried GMail and another one SMTP provider. Tried all ports. No luck. In log is just "email sent failed".

How about to install outgoing mail server on Rapsbian and use localhost mail server? Should it work?
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: email notification

Post by FireWizard »

Hi,

Just a simple question.

Did you configure for each switch/sensor, if you want to send a notification for that switch/sensor, the notification?

Regards
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: email notification

Post by tvurce »

Yes. Same with Test mail and with notification from sensor: In log is Notification sent (email) => Failed

I am using Synology and this is able to send emails with my gmail account from same network.
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: email notification

Post by tvurce »

And now, i tried local smtp provider and it works! So finaly, I am happy :)

GMAil still not working, but it is may be problem with two factor authentication. I add an exclusion for this kind of using smtp without luck, but not so big problem.

Anyway, using local mais server should by good idea - I am using this way with my own webserver and there Drupal is using postfix configured for only outgoing mail usage.
User avatar
leecollings
Posts: 167
Joined: Tuesday 30 June 2015 18:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Re: email notification

Post by leecollings »

Not sure if it helps, but often you may need to dive into your Gmail SMTP relay settings, as often Google will block other services from using this, unless you specify it can be allowed.
AntoineA
Posts: 1
Joined: Monday 10 May 2021 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Houten
Contact:

Re: email notification

Post by AntoineA »

The key seems to be app-passwords within Google. In your Google account go to Security and create a new app password (Name it for example: Domoticz for RP) and use the generated password in the password field in the email setup of Domoticz. Username should still be your gmail address of course.
For me this worked. I was able to sent test emails and email notifications again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests