1
0
mirror of https://github.com/chylex/SMTP-Relay.git synced 2025-04-09 17:15:49 +02:00
Simple multi-account SMTP relay.
Go to file
2022-05-23 14:51:54 +00:00
.github ci: Add testsuite to ci builds 2022-05-01 17:18:17 +00:00
cmd hasher: Check number of arguments 2021-02-15 00:18:15 -05:00
auth_test.go gofmt: Fix formatting 2021-02-16 15:57:50 +00:00
auth.go gofmt: Fix formatting 2021-02-16 15:57:50 +00:00
config_test.go Fix code formatting with gofmt -s 2021-04-03 19:00:38 +00:00
config.go Fix IniParser() to support various common formats 2022-05-23 14:51:54 +00:00
go.mod Replace iniflags config file parser with peterbourgon/ff/v3 2022-05-20 08:48:39 +00:00
go.sum Replace iniflags config file parser with peterbourgon/ff/v3 2022-05-20 08:48:39 +00:00
LICENSE Update MIT license template 2018-12-08 21:16:10 +00:00
logger.go Fix code formatting with gofmt -s 2021-04-03 19:00:38 +00:00
main_test.go gofmt: Fix formatting 2021-02-16 15:57:50 +00:00
main.go Propagate the error to the client if the external command fails () 2022-04-25 15:52:12 +02:00
README.md Remove service names from readme 2022-04-30 08:10:21 +02:00
remotes_test.go add test coverage for scheme validation 2022-04-21 11:39:41 -05:00
remotes.go Add missing default port for starttls and validate scheme to ensure support 2022-04-21 11:28:48 -05:00
smtp.go smtp: gofmt main repo 2022-04-25 15:00:57 +00:00
smtprelay.ini Improve remotes documentation in config 2022-04-25 14:19:31 +00:00

smtprelay

Go Report Card

Simple Golang based SMTP relay/proxy server that accepts mail via SMTP and forwards it directly to another SMTP server.

Why another SMTP server?

Outgoing mails are usually send via SMTP to an MTA (Mail Transfer Agent) which is one of Postfix, Exim, Sendmail or OpenSMTPD on UNIX/Linux in most cases. You really don't want to setup and maintain any of those full blown kitchensinks yourself because they are complex, fragile and hard to configure.

My use case is simple. I need to send automatically generated mails from cron via msmtp/sSMTP/dma, mails from various services and network printers via a remote SMTP server without giving away my mail credentials to each device which produces mail.

Main features

  • Supports SMTPS/TLS (465), STARTTLS (587) and unencrypted SMTP (25)
  • Checks for sender, receiver, client IP
  • Authentication support with file (LOGIN, PLAIN)
  • Enforce encryption for authentication
  • Forwards all mail to a smarthost (any SMTP server)
  • Small codebase
  • IPv6 support