diff --git a/.gitignore b/.gitignore index b609275..9b5a884 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ mailrelay test -vendor \ No newline at end of file +vendor +build diff --git a/README.md b/README.md index 272d5ef..c941e36 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ `mailrelay` is a simple mail relay that can take unauthenticated SMTP emails (e.g. over port 25) and relay them to authenticated, TLS-enabled SMTP servers. Plus it's easy to configure. +Prebuilt binaries are available [here](https://github.com/wiggin77/mailrelay/releases/latest) for Linux, MacOS, Windows, OpenBSD. + ## Use case Some older appliances such as scanners, multi-function printers, RAID cards or NAS boxes with monitoring, can only send email without any authentication or encryption over port 25. `mailrelay` can send those emails to your Gmail, Fastmail or other provider. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..17d514c --- /dev/null +++ b/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# build Linux +echo building Linux... +env GOOS=linux GOARCH=amd64 go build -o ./build/linux_amd64/mailrelay-linux-amd64 + +# build Windows +echo building Windows... +env GOOS=windows GOARCH=amd64 go build -o ./build/windows_amd64/mailrelay-windows-amd64.exe + +# build OSX +echo building OSX... +env GOOS=darwin GOARCH=amd64 go build -o ./build/osx_amd64/mailrelay-osx-amd64 + +# build OpenBSD +echo building OpenBSD... +env GOOS=openbsd GOARCH=amd64 go build -o ./build/openbsd_amd64/mailrelay-openbsd-amd64 \ No newline at end of file