Skip to main content

An SMTP Server to forward Messages into A Backend System.

Project description

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

Project details


Download files

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

Source Distribution

pinkman-0.1.5.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

pinkman-0.1.5-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file pinkman-0.1.5.tar.gz.

File metadata

  • Download URL: pinkman-0.1.5.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pinkman-0.1.5.tar.gz
Algorithm Hash digest
SHA256 785bf0e6183c922dc44941de4f8dabb47a8e960c5196e382cac0bc751eda6448
MD5 e4019404a8a1a57e3fb84d68d60e87a9
BLAKE2b-256 c646d1c3c9730b5acbb54faa8263e7d9f5c18d7a68658ecb15fa7bbc7f5aef20

See more details on using hashes here.

File details

Details for the file pinkman-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pinkman-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pinkman-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5078a155a35e2de6ef6513988f8ae6519b191549f6259110dbb12061e7ccff
MD5 93f3c3b03fc73fb9f292bdf0704dbf6a
BLAKE2b-256 ccfdd443d9b2c9dc78fe4227f9c43cad8120ee575dcf9e1f5f2e55d43fd9499e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page