Indy Node Email Notifier
## Prerequisites - SMTP server running on localhost
## Install SMTP server (if you don’t have one already) The most simple way on Ubuntu is to use sendmail ` sudo apt-get install sendmail ` To check that it’s working execute ` echo "Subject: sendmail test" | sendmail -v firstname.lastname@example.org -f email@example.com ` If you get a email on your firstname.lastname@example.org then sendmail is working.
## Install ` pip3 install indynotifieremail Add INDY_NOTIFIER_EMAIL_RECIPIENTSemail@example.com to your /etc/environment ` You are required to set system environment variable INDY_NOTIFIER_EMAIL_RECIPIENTS.
## Configuration Package depends on two environment variables: - INDY_NOTIFIER_EMAIL_RECIPIENTS (required) - INDY_NOTIFIER_EMAIL_SENDER (optional)
### INDY_NOTIFIER_EMAIL_RECIPIENTS INDY_NOTIFIER_EMAIL_RECIPIENTS should be a string in a format of: ` firstname.lastname@example.org [optional list of events the recipient is going to get],email@example.com [event list], ... ` If no list was provided the recipient is going to get notifications for all events. Example: ` firstname.lastname@example.org event1 event2, email@example.com, firstname.lastname@example.org event3 ` This way steward1 is going to get notifications for event1 and event2, steward2 is going to get all possible notifications and steward3 is going to get notifications for event3 only.
Current list of events can be found in [plenum](https://github.com/hyperledger/indy-plenum/blob/master/plenum/server/notifier_plugin_manager.py#L11).
### INDY_NOTIFIER_EMAIL_SENDER By default every email notification is going to be from email@example.com. You can change this by setting INDY_NOTIFIER_EMAIL_SENDER. May be useful for email filters.
## Email delivery frequency By default you will not get a email with the same topic more than once an hour. This is defined by [SILENCE_TIMEOUT](https://github.com/evernym/sovrin-notifier-email/blob/master/sovrinnotifieremail/constants.py#L8). It can be overrided by setting INDY_NOTIFIER_SILENCE_TIMEOUT environment variable. Emails regarding update procedure are always delivered.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size indynotifieremail-0.0.9.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View|