https://github.com/torarg/pmml
https://github.com/torarg/pmml
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/torarg/pmml
- Owner: torarg
- License: gpl-3.0
- Created: 2022-12-21T08:08:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T11:22:11.000Z (over 3 years ago)
- Last Synced: 2025-02-05T03:18:27.975Z (over 1 year ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```sh
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:
```sh
kubectl create ns pmml
```
Create secrets containing the configuration:
```sh
kubectl create secret generic pmml-pmmlrc --from-file example_configs/pmmlrc -n pmml
```
```sh
kubectl create secret generic pmml-fetchmailrc --from-file example_configs/fetchmailrc -n pmml
```
Afterwards create the deployment:
```sh
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:
```sh
kubectl -n pmml delete pod $(kubectl -n pmml get pods | tail -1 | awk '{print $1}')
```