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.prod.yml
  1. Run the pinkman worker.

$ pinkman worker run -c /etc/config.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
  1. Create an A entry which points to the IP address of your server.

$ [ A ] [ smtp.orangutan.com ] [ x.x.x.x ]
  1. Create an MX entry, which points back to the A entry above

$ [ MX ] [ orangutan.com ] [ smtp.orangutan.com ]

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.3.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

pinkman-0.1.3-py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 3

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