A Simple MTA for forwarding mail that uses synchronous channels to relay mail in realtime.
- Simple configuration in a single file
- Forwards instantly, no need for queueing
TODO
- Stats Interface
- TLS Support
- Blacklist Support
- RBL
- Greylisting
- DB / key-value store lookups
- RFC Compliant
I had a requirement for a simple MTA that forwards email for multiple addresses to another address. Managing a full MTA can take a large amount of work and dealing with mail queues can be painful. This is mainly intended for personal use.
All configuration is stored in /etc/scramd.yaml
See example_config.yaml
for more inspiration
The forwarding map is configured in YAML as a list of addresses bound to a forwarding address:
forwards:
target:
- address1
- address2
...
Example configuration:
---
forwards:
[email protected]:
- [email protected]
- [email protected]
[email protected]:
- [email protected]
- [email protected]
The identifier sent in the SMTP connection banner. (Defaults to the system hostname)
The interface address to listen for SMTP requests. (Defaults to 0.0.0.0)
listen_address: 127.0.0.1
The TCP Port to listen for SMTP requests. (Defaults to 25)
listen_port: 25
Set timeouts for the receiving server (the one running at listen_port
)
server_timeouts:
read: 120s
write: 90s
Set timeouts when we are sending mail to remote upstream servers
client_timeouts:
connect: 90s
read: 30s
wite: 30s
Contributions are very welcome! Feel free to fork and raise a PR aginst this repo
This is mostly built wtih the help of go-smtpd: https://github.com/bradfitz/go-smtpd
- Remote errors cause a connection close with no message after DATA stream. This may cause issues with upstream hosts when the connection is closed unexpectedly.
MIT © Ian Bissett