Simple Golang SMTP relay/proxy server
Topics
#golang #proxy-server #smtp-server #smtp-relay #ssl #load-balancer
|
2 hari lalu | |
---|---|---|
.github | 2 hari lalu | |
LICENSE | 6 tahun lalu | |
README.md | 5 bulan lalu | |
SECURITY.md | 5 bulan lalu | |
auth.go | 4 tahun lalu | |
auth_test.go | 4 tahun lalu | |
config.go | 2 tahun lalu | |
config_test.go | 4 tahun lalu | |
go.mod | 2 minggu lalu | |
go.sum | 2 minggu lalu | |
logger.go | 4 tahun lalu | |
main.go | 2 bulan lalu | |
main_test.go | 4 tahun lalu | |
remotes.go | 2 tahun lalu | |
remotes_test.go | 3 tahun lalu | |
smtp.go | 1 bulan lalu | |
smtprelay.ini | 1 bulan lalu |
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.