Some services have an option to send notifications by email, so we need to install a simple sendmail emulator which could forward messages to relay mail host.
For example, sendmail could be used to notify you about failed drive in RAID array via google mail.
- Created google mail account.
- Installed entware-ng with
opkg. Follow this article: https://www.artembutusov.com/libreelec-entware-ng-installation/
- SSH access to LibreELEC.
Login over SSH.
msmtp sendmail-like MTA:
opkg install msmtp
account default : gmail
You should have your regular email account, for example
So you could test and send email to yourself from your LibreELEC:
echo test | sendmail firstname.lastname@example.org
You should get an email after running code below.
If you did not get an email you could try to debug issue (add
echo test | sendmail email@example.com -v
For google mail here are some well known issues (make sure you are logged out from your personal account and logged in with your account designated to be used on LibreELEC):
- Less secure apps: https://myaccount.google.com/lesssecureapps
- Unlock Captcha: https://accounts.google.com/DisplayUnlockCaptcha
Now you could use sendmail in various custom scripts to notify yourself over email.