Skip to main content

Indy Node Email Notifier

Project description

# sovrin-notifier-email

## 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 youremail@example.com -f alert@noreply.com ` If you get a email on your youremail@example.com then sendmail is working.

## Install ` pip3 install indynotifieremail Add INDY_NOTIFIER_EMAIL_RECIPIENTS=youremail@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: ` recipient1@adress.com [optional list of events the recipient is going to get],recipient2@adress.com [event list], ... ` If no list was provided the recipient is going to get notifications for all events. Example: ` steward1@company.com event1 event2, steward2@company.com, steward3@company.com 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 alert@noreply.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.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for indynotifieremail, version 0.0.9
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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page