1
0
mirror of https://github.com/chylex/SMTP-Relay.git synced 2024-12-03 11:42:46 +01:00
Simple multi-account SMTP relay.
Go to file
2023-06-16 06:54:15 +00:00
.github Fix Release workflow 2023-06-16 06:54:15 +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 Support .env files if it exists 2022-08-15 13:35:12 +00:00
go.mod Bump minimum Go version to 1.20 2023-06-16 06:31:10 +00:00
go.sum Bump golang.org/x/crypto from 0.9.0 to 0.10.0 2023-06-14 10:57:05 +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 command: Add some environment variables when calling external cmd 2023-01-20 09:31:09 +00:00
README.md Support .env files if it exists 2022-08-15 13:35:12 +00:00
remotes_test.go add test coverage for scheme validation 2022-04-21 11:39:41 -05:00
remotes.go Fix code formatting 2022-08-15 13:34:22 +00:00
smtp.go smtp: gofmt main repo 2022-04-25 15:00:57 +00:00
smtprelay.ini Add note how to use environment variables for configuration 2022-05-23 15:18:22 +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

  • Simple configuration with ini file .env file or environment variables
  • 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