https://github.com/ponlponl123/smtp-switcher
a simple smtp gateway
https://github.com/ponlponl123/smtp-switcher
custom python smtp tls
Last synced: 12 months ago
JSON representation
a simple smtp gateway
- Host: GitHub
- URL: https://github.com/ponlponl123/smtp-switcher
- Owner: ponlponl123
- Created: 2025-01-04T06:10:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-19T16:16:32.000Z (about 1 year ago)
- Last Synced: 2025-06-25T22:02:20.868Z (12 months ago)
- Topics: custom, python, smtp, tls
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# smtp-switcher
this solution for who have more than one smtp endpoint server and mail server can only send one smtp endpoint
## how to configure
* `-p ` or `--port `
the port of your smtp server (default: 25)
* `-a` or `--public`
host smtp server on `0.0.0.0`
## how to run
* windows
```cmd
./run.bat
```
* linux
```bash
bash run.sh
```
## relayers.json
example:
```json
{
"example.com": {
"host": "smtp.example.com",
"username": "my_smtp",
"password": "psw123456",
"port": 587
},
"gmail.com": {
"host": "smtp.gmail.com",
"username": "google",
"password": "gg123456",
"port": 465
}
}
```
## note
* smtp server must support STARTTLS
* this is a simple solution, you may need to handle error, retry, and so on according to your needs.