Page 1 of 1
SMTPd: an EG mail server to create events from alert emails
Posted: Wed Dec 23, 2015 4:56 pm
by luma
A number of connected devices offer the ability to send an email in response to an event. This plugin will setup an SMTP mail server on the EventGhost system. You can configure your networked devices to send an email using the EventGhost IP as their mail server, and in response EG will fire off an event containing details of the incoming email. Now devices like IP cameras can send an event directly to EG via email.
This plugin was started by myself with most of the hard work done by resident
EG plugin wizard technoguy.
The latest version of the plugin can be found on GitHub here.
Notes on useage
- When you add the plugin it will default to listen on 127.0.0.1 port 25. This will only allow local applications to send email to the service. If you want to receive messages from external devices, set the address to your local network IP.
- You can change to port to a value other than 25, but first make sure all your other devices support a non-standard port.
- There is currently no support for SSL/TLS nor any sort of authentication. For this use case it doesn't really seem necessary.
- No emails will actually be delivered. Incoming messages will be received, an event triggered, and then disappear (this may change in the future).
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Sat Jun 25, 2016 7:43 pm
by scat
I am interested in how to use this, my intent is that I am going to get a security camera system and put a camera over my front door, that system will monitor motion detection and send a email when it detects motion at the front door, I want to receive a email and have eventghost trigger a event so I can the show the live camera on the tv screen.
eventghost is on my HTPC which runs SageTV
has anyone done this already?
thanks
Scat
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Sat Jun 25, 2016 11:24 pm
by luma
This is exactly the sort of use case this plugin was intended for. Do you have specific questions about how to set it up?
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Sun Jun 26, 2016 9:22 am
by kgschlosser
Oh man if it has support for SSL and TLS that wound be awesome. getting the event in the first place is proper. but being able to relay the message to an account like say the sms text messaging on my phone would be sweet. because i have some raid controllers that have a network connection for sending email but will only connect to an emtp that doesn't have any authentication. and that's a problem because what i would have to do is set up the smtp server in in my server to get e-mail unauthenticated. and then have that forward the e-mail to something like google. then i would have to have google forward it to say my google e-mail and then from there the existing e-mail plugin would receive the message post the event, to have that event trigger an action to send an e-mail to my phone.
way to many fingers in the cookie jar if ya get my meaning.
and it would probably take 20 minutes for me to get the text that the thing was having a problem. which makes not worth the effort.
but if yours would support the SSL/TLS as well as unauthenticated. i could just have it transfer the mail to the plugin have the plugin post the event and then have the plugin forward the mail off to google to be sent to my phone.
now i do not know if the plugin will allow for forwarding the e-mail to another SMTP or not. but i would feel that it would make the plugin act in the best way possible to get the important notification to you but then also be able to have something put into place to run to either repair or to shutdown a computer or whatever..
kinda makes it a one solution plugin for automatic system handleing if an error happens. or some such thing. Like this for instance. my APC backup will shutdown the computer if the batteries get to 10%. that's great. but what isn't great is that EG will stop the shutdown process and "hang" if you will if it needs to save. but i can have the APC send the e-mail to trigger an event that will have eventghost save it's self and in turn will allow the server to shutdown properly. which is extremely important if you are running hyper-v like i am
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Fri Jul 01, 2016 12:40 pm
by luma
For that situation I would recommend an MTA of some sort. Postfix is a popular choice, it supports SSL/TLS and you can set it up to relay mail to several destinations. Putting this sort of functionality into EG seems overkill.
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Fri Jul 01, 2016 4:23 pm
by kgschlosser
but i would lose the events in eventghost.
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Tue Jul 26, 2016 6:31 pm
by luma
kgschlosser wrote:but i would lose the events in eventghost.
The MTA would receive the email, then forward it to EG along with sending it to it's preferred destination. You'd get your cake and could eat it too.
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Tue Jul 26, 2016 7:50 pm
by kgschlosser
yeah i get what you are saying. but i am kind of a person that the less "layers" there are the more i like it and the less problems there are (usually) i don't like running a bunch of different programs to accomplish a single task. i don't have the available resources on my machine to hand out like that. i am already running low on ram and i can't put more in i would have to replace the Main board and something that can hold 256 gigs of ram gets very spendy and let alone i haven't located one that is am3+ that has 3 PCIE slots (i would love to have 4) but also has enough clearance for my heat sink and fan i am just clearing it now by about a millimeter. and i have to keep the fan and heatsink because this machine is in my media room and i don't want to have to put some vortec 80mm fans (5000 rpm) in it to keep everything cool those things sound like a jet engine. so i like having the larger one because it spins slower to do the same job. there is a lot inside that box. and i also fear that if i had to go up in ram that would cause me to go over that tipping point on the heat. i am already riding the line on the HDD's at 49C or so (120ish F) . and i have no space to split this thing apart.
blah blah blah. so that is my dilemma. it's ok tho, if I could get permission to add this feature to the plugin I would like to do so for my own benefit. and i can present to code to you and if you wanted to add it you would be more then welcome to.
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Wed Nov 09, 2016 1:48 am
by skribb
luma wrote:A number of connected devices offer the ability to send an email in response to an event. This plugin will setup an SMTP mail server on the EventGhost system. You can configure your networked devices to send an email using the EventGhost IP as their mail server, and in response EG will fire off an event containing details of the incoming email. Now devices like IP cameras can send an event directly to EG via email.
.[/list]
Glad I found this, gonna try it out!
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Mon Mar 13, 2017 9:58 am
by Snowbird
Hello,
Does this plugin still work ? I've just tried it, and it doesn't fire any events upon email arrival, the plugin seems to work since I've successfully got connected through telnet to the specified port, so its receiving the email, but it doesn't seem to do anything after that.
Did I miss something ?
--
Thank you
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Wed Mar 15, 2017 8:50 am
by scat
Success
I got this working, see the attached file for setup and usage.
this opens many options with connected devices.
Attached file:
Send an email to Eventghost then it shows up in the Log window.zip
Note: The pc that I setup a test account on was not the same one that Eventghost was on, it was another desktop pc running Windows 7
thank you to the authors for this plug-in and to Evenghost team
Scat
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Wed Mar 15, 2017 9:06 am
by Snowbird
Hi,
thanks for the feedback, can you try to post your setup with another format ? maybe pdf is not supported here.
Thank you.
Re: SMTPd: an EG mail server to create events from alert ema
Posted: Thu Mar 16, 2017 9:01 am
by Snowbird
Thank you,
I've found out that I wasn't doing anything wrong, but you gave me the idea to send an email from another computer and it worked right away !

So, for me it's not working only when I send an email from the same computer where EG is installed. Would you be kind enough to try another test but this time by sending an email from the same computer ?
Thank you again

Re: SMTPd: an EG mail server to create events from alert ema
Posted: Thu Mar 16, 2017 9:36 am
by Snowbird
Ok, don't waste your time, I got it to work ! I tried with another mail client and it worked... so everything is good with this plugin, even when emails are sent from the same computer
have a good day.