https://github.com/igrmk/smtpsplit
SMTP router and splitter
https://github.com/igrmk/smtpsplit
go router smtp splitter
Last synced: 12 months ago
JSON representation
SMTP router and splitter
- Host: GitHub
- URL: https://github.com/igrmk/smtpsplit
- Owner: igrmk
- License: mit
- Created: 2020-06-03T18:11:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-08T15:35:56.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T03:27:09.893Z (about 2 years ago)
- Topics: go, router, smtp, splitter
- Language: Go
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
smtpsplit
=========
[](https://travis-ci.org/igrmk/smtpsplit)
[](https://goreportcard.com/report/igrmk/smtpsplit)
This is simple SMTP router and splitter. It is designed for an incoming mail.
It routes the incoming traffic depending on a recipient domain.
For example you can process several mail subdomains via different SMTP servers on a single machine.
STARTTLS is supported for both incoming and outgoing connections.
Usage
-----
1. Create a configuration file. Here is an example:
```
{
"listen_address": ":25",
"routes": {
"xxx.com": "localhost:2500",
"yyy.com": "localhost:2600"
}
}
```
2. Run `smtpsplit your_config.json`
Configuration
-------------
- listen_address
- the address to listen to for incoming emails
- host
- the host name used to introduce this router
- timeout_seconds
- the timeout for incoming and outgoing emails
- debug
- debug mode
- certificate
- the certificate path for STARTTLS
- certificate_key
- the certificate key path for STARTTLS
- routes
- a domain to an address map