Simple Golang SMTP relay/proxy server
Topics
#golang #proxy-server #smtp-server #smtp-relay #ssl #load-balancer
|
2 dní pred | |
---|---|---|
.github | 2 dní pred | |
LICENSE | 6 rokov pred | |
README.md | 5 mesiacov pred | |
SECURITY.md | 5 mesiacov pred | |
auth.go | 4 rokov pred | |
auth_test.go | 4 rokov pred | |
config.go | 2 rokov pred | |
config_test.go | 4 rokov pred | |
go.mod | 2 týždňov pred | |
go.sum | 2 týždňov pred | |
logger.go | 4 rokov pred | |
main.go | 2 mesiacov pred | |
main_test.go | 4 rokov pred | |
remotes.go | 2 rokov pred | |
remotes_test.go | 3 rokov pred | |
smtp.go | 1 mesiac pred | |
smtprelay.ini | 1 mesiac pred |
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.