Poor man's mailing list
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
mw 6c837f4ff8 bump version 3 years ago
example_configs bump version 3 years ago
Dockerfile update Dockerfile to work with kubernetes 3 years ago
LICENSE add license 3 years ago
README.md update README 3 years ago
entrypoint.sh update Dockerfile to work with kubernetes 3 years ago
pmml.py fix mail encoding 3 years ago
requirements.txt initial commit 3 years ago

README.md

poor man's mailing list (pmml)

Description

Fetches IMAP inboxes via fetchmail and forwards recieved mails to a list of recipients.

Usage

First you will need to write configuration files for pmml and fetchmail. Feel free to use the supplied examples as starting point:

  • example_configs/pmmlrc
  • example_configs/fetchmailrc

Docker

docker run -v $(pwd)/example_configs/fetchmailrc:/.fetchmailrc -v $(pwd)/example_configs/pmmlrc:/.pmmlrc -it pmml:0.1.4

Kubernetes

If using kubernetes the configuration files should be injected as secret into the pod executing pmml.

Create a namespace:

kubectl create ns pmml

Create secrets containing the configuration:

kubectl create secret generic pmml-pmmlrc --from-file example_configs/pmmlrc -n pmml
kubectl create secret generic pmml-fetchmailrc --from-file example_configs/fetchmailrc -n pmml

Afterwards create the deployment:

kubectl -n pmml apply -f example_configs/pmml_deployment.yml

Updating secrets

After updating either of the supplied secrets you will need to restart the pmml pod:

kubectl -n pmml delete pod $(kubectl -n pmml get pods | tail -1 | awk '{print $1}')