An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

smtpsplit
=========

[![Build Status](https://travis-ci.org/igrmk/smtpsplit.png)](https://travis-ci.org/igrmk/smtpsplit)
[![GoReportCard](https://goreportcard.com/badge/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