mailproxy

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

README

MailProxy

A dead simple Mail forward proxy written in Golang.

HowTo guide

Docker
  • Build it
$ make build-image
  • Generate cert key files, then put it in /path/to/directory/contains/cert (Change this path with the actual path). For example:
# Key considerations for algorithm "RSA" ≥ 2048-bit
$ openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" (X25519 || ≥ secp384r1)
# https://safecurves.cr.yp.to/
# List ECDSA the supported curves (openssl ecparam -list_curves)
$ openssl ecparam -genkey -name secp384r1 -out server.key
$ openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
  • Update config.yml, you could refer an example config

  • Run it (build command is suppored as well, check Makefile for more details)

$ docker run -d --name mailproxy -v /path/to/mailproxy/directory:/etc/mailproxy kienn26/mailproxy:latest
Manual
  • Generate cert key files, then put it in /path/to/directory/contains/cert (Change this path with the actual path). For example:
# Key considerations for algorithm "RSA" ≥ 2048-bit
$ openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" (X25519 || ≥ secp384r1)
# https://safecurves.cr.yp.to/
# List ECDSA the supported curves (openssl ecparam -list_curves)
$ openssl ecparam -genkey -name secp384r1 -out server.key
$ openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
  • Update config file.

  • Run it.

$ make build
$ ./bin/mailproxy --config.file=/path/to/directory/config-file

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL