Mailgun Router is an SMTP server that routes requests to Mailgun.
- Make sure you have Golang installed, (see: http://golang.org/)
- Make sure your Go environment is set up. Example:
mkdir -p ~/go
export GOPATH=/home/$USER/go
- Then, grab the source code:
cd $GOPATH
go get github.com/alliedmodders/mailgun_router
cd github.com/alliedmodders/mailgun_router
git submodule update --init --recursive
go install
- The binary will be in
$GOPATH/pkg/
.
mailgun_router -config_file=/path/to/config.yaml
See extra/sample_config.yaml
for a sample configuration file. You will need your Mailgun API keys
as well as domain.