This. Yes this would be awesome for interfacing with legacy systems that send alerts via email.
That is deprecated and the docs refer you to this https://aiosmtpd.readthedocs.io/en/latest/README.html
OK sure then use that one. The thing I worked on was 5 years ago. Point being, python already has this handled. No need to write an MTA, just hang out on port 25, accept email, and throw events in response.
Does the camera actually send the email or does their server outside the network send it anyway? If so I canât see the issue with using Gmail?
I think the answer is something like âwhy bring the cloud into itâ. There is zero reason to have this sort of alert egress your network only to come back in again.
Itâs already in the cloud, thatâs where the email comes from
Not according to the request in the OP. Goal is to deal with internal devices which alert via SMTP.
That what Iâm trying to clarify. I got the impression the email comes from the cloud server
The camera Iâm using needs an email server, I guess it has email client software in it, currenty Iâm using it with a separate accoung I have in gmail. Again, the idea is to have the camera not connecting to the external email server, but to that tiny local email server, inside my home network, so it all stays local. Again, that tiny email server wonât send any email to anyone, it will just convert the incoming email into some kind of alarm or device status inside Home Assistant.
Hope it is clear now.
Yep, got it now, sorry, didnât realise the individual camera connected to the mail server directly.
Could this help?:
Big Yes! but for us who are using the suprevised version of HA the option is to add hardware where this docker program can run. Is there a way to convert this to a Home Assistant Add-On?
You can add any docker image to supervised.
You also could create an add-on from that docker image I believe
Yes, if I could work that out I would do it.
This article may be of help⌠https://www.linkedin.com/pulse/creating-your-first-home-assistant-add-on-issac-goldstand/?trackingId=GBuP4I7IWrFlydSGpT8c3g%3D%3D
On this Github there is a Docker install Add-on to get a mailserver inside HA
Not what is wanted I think.
The addon is very simple. You can create domains into it, add mail addresses etc.
Open ports in router to your HA and then you can use it in IMAP way.
Its very easy. For me my question to have a tiny email server is done.
I also have a need for a tiny on-site smtp server ⌠for my use case I want to parse email warnings sent by a Paradox IP150 module (Specifically for Alarm trouble conditions like AC Failure which isnât handled anywhere else yet).
The IP150 module doesnât support doesnât support sending over TLS, otherwise I would have just sent the emails to Gmail and used the IMAP Email Content add-on.
Iâve installed Erik73âs Mailserver addon - everything worked on the first attempt. It will do the job nicely.