An SMTP Server to forward Messages into A Backend System.
Project description
Pinkman
To use pinkman, follow the following steps:
Create a python virtual environment or use system wide environment
$ python3 -m venv venv
$ source venv/bin/activate
Install pinkman package with pip.
$ pip install pinkman
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
Run the pinkman server.
$ pinkman server run -c /etc/config.prod.yml
Run the pinkman worker.
$ pinkman worker run -c /etc/config.prod.yml
Forward packets from port 1025 to port 25.
$ iptables -t nat -A PREROUTING -p tcp --dport 1025 -j REDIRECT --to-port 25
Create an A entry which points to the IP address of your server.
$ [ A ] [ smtp.orangutan.com ] [ x.x.x.x ]
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)
Built Distribution
pinkman-0.1.3-py3-none-any.whl
(18.7 kB
view hashes)