Simple Golang SMTP relay/proxy server
Topics
#golang #proxy-server #smtp-server #smtp-relay #ssl #load-balancer
|
2 päivää sitten | |
---|---|---|
.github | 2 päivää sitten | |
LICENSE | 6 vuotta sitten | |
README.md | 5 kuukautta sitten | |
SECURITY.md | 5 kuukautta sitten | |
auth.go | 4 vuotta sitten | |
auth_test.go | 4 vuotta sitten | |
config.go | 2 vuotta sitten | |
config_test.go | 4 vuotta sitten | |
go.mod | 2 viikkoa sitten | |
go.sum | 2 viikkoa sitten | |
logger.go | 4 vuotta sitten | |
main.go | 2 kuukautta sitten | |
main_test.go | 4 vuotta sitten | |
remotes.go | 2 vuotta sitten | |
remotes_test.go | 3 vuotta sitten | |
smtp.go | 1 kuukausi sitten | |
smtprelay.ini | 1 kuukausi sitten |
Simple Golang based SMTP relay/proxy server that accepts mail via SMTP and forwards it directly to 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.