Skip to content
/ Pinkman Public

🐺 A Local SMTP Server to forward Messages into A Backend System.

License

Notifications You must be signed in to change notification settings

Norwik/Pinkman

Repository files navigation

PyPI-Server Build Status

Pinkman

To use pinkman, follow the following steps:

  1. Create a python virtual environment or use system wide environment
$ python3 -m venv venv
$ source venv/bin/activate
  1. Install pinkman package with pip.
$ pip install pinkman
  1. Create the config file.
server:
  hostname: localhost
  port: 1025

cache:
  type: sqlite
  path: /tmp/pinkman.db

backend:
  type: http
  method: post
  url: https://pinkman.free.beeceptor.com
  apikey: 5ab99869-f403-4481-bed6-da7c8aad7521
  1. Run the pinkman server.
$ pinkman server run -c /etc/config.pinkman.prod.yml
  1. Run the pinkman worker.
$ pinkman worker run -c /etc/config.pinkman.prod.yml
  1. Forward packets from port 1025 to port 25.
$ iptables -t nat -A PREROUTING -p tcp --dport 1025 -j REDIRECT --to-port 25

About

🐺 A Local SMTP Server to forward Messages into A Backend System.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •