Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kz26/mailproxy
mailproxy is a simple SMTP proxy. It receives emails through an unencrypted, unauthenticated SMTP interface and retransmits them through a remote SMTP server that requires modern features such as encryption and/or authentication. mailproxy is primarily useful for enabling email functionality in legacy software that only supports plain SMTP.
https://github.com/kz26/mailproxy
cli python python3 smtp smtp-client smtp-server
Last synced: 2 months ago
JSON representation
mailproxy is a simple SMTP proxy. It receives emails through an unencrypted, unauthenticated SMTP interface and retransmits them through a remote SMTP server that requires modern features such as encryption and/or authentication. mailproxy is primarily useful for enabling email functionality in legacy software that only supports plain SMTP.
- Host: GitHub
- URL: https://github.com/kz26/mailproxy
- Owner: kz26
- License: mit
- Created: 2017-10-08T21:14:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T18:54:14.000Z (9 months ago)
- Last Synced: 2024-08-08T23:23:24.324Z (6 months ago)
- Topics: cli, python, python3, smtp, smtp-client, smtp-server
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 191
- Watchers: 17
- Forks: 28
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mailproxy
mailproxy is a simple SMTP proxy. It receives emails through an unencrypted, unauthenticated SMTP interface and retransmits them through a remote SMTP server that requires modern features such as encryption (SSL, STARTTLS) and/or authentication (SMTP AUTH). mailproxy is primarily useful for enabling email functionality in legacy software that only supports plain SMTP.# Requirements
* Python 3.5+
* [aiosmtpd 1.1+](https://aiosmtpd.readthedocs.io)# Usage
1. Create a config file (see below).
2. Run mailproxy from the command line, e.g. `python mailproxy.py`.By default, mailproxy looks for a `config.ini` in its own directory.
If you have placed your config file elsewhere, you can run mailproxy
using `python mailproxy.py `.# Configuration
An example config file for a mailproxy instance that accepts emails locally on port 25 for delivery via Gmail appears below:
```
[local]
host = 127.0.0.1
port = 25[remote]
host = smtp.gmail.com
port = 465
use_ssl = yes
starttls = no
smtp_auth = yes
smtp_auth_user = USERNAME
smtp_auth_password = PASSWORD
```