1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Simple Golang SMTP relay/proxy server that accepts mail via SMTP

and forwards it directly to another SMTP server. It supports TLS,
STARTTLS, plain SMTP, can do authentication and various sender
and receiver checks.

WWW: https://code.bluelife.at/decke/smtprelay
Submitted by:	myself
This commit is contained in:
Bernhard Froehlich 2019-01-09 08:32:15 +00:00
parent eb3ff6ddfb
commit 64fc3b7c2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=489760
5 changed files with 69 additions and 0 deletions

View File

@ -654,6 +654,7 @@
SUBDIR += smtpfeed
SUBDIR += smtpmail
SUBDIR += smtprc
SUBDIR += smtprelay
SUBDIR += smtptrapd
SUBDIR += sortmail
SUBDIR += spamass-ixhash

35
mail/smtprelay/Makefile Normal file
View File

@ -0,0 +1,35 @@
# $FreeBSD$
PORTNAME= smtprelay
DISTVERSIONPREFIX=v
DISTVERSION= 1.2.0
CATEGORIES= mail
MASTER_SITES= https://code.bluelife.at/decke/smtprelay/archive/ \
LOCAL/decke/smtprelay/
DISTFILES= ${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= decke@FreeBSD.org
COMMENT= Simple Go SMTP relay/proxy server
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_RC_SUBR= smtprelay
USE_GITHUB= nodefault
GH_TUPLE= chrj:smtpd:v0.1.2:smtpd/vendor/github.com/chrj/smtpd \
vharitonsky:iniflags:a33cd0b5f3de:iniflags/vendor/github.com/vharitonsky/iniflags \
golang:crypto:505ab145d0a9:golang/vendor/golang.org/x/crypto
MAKE_ENV+= GOFLAGS=-mod=vendor
PLIST_FILES= bin/${PORTNAME} \
"@sample ${ETCDIR}/smtprelay.ini.sample"
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/smtprelay.ini ${STAGEDIR}${ETCDIR}/smtprelay.ini.sample
.include <bsd.port.mk>

9
mail/smtprelay/distinfo Normal file
View File

@ -0,0 +1,9 @@
TIMESTAMP = 1546979068
SHA256 (smtprelay/v1.2.0.tar.gz) = 924864ecaeeebb52895d1b16a25a9ad7ac407b9000c2c83ec1763d106cbf145e
SIZE (smtprelay/v1.2.0.tar.gz) = 8960
SHA256 (smtprelay/chrj-smtpd-v0.1.2_GH0.tar.gz) = f290b7233bf781222e40184f32bfa4550424f96a9d69cbb75241d744080eb8f7
SIZE (smtprelay/chrj-smtpd-v0.1.2_GH0.tar.gz) = 13676
SHA256 (smtprelay/vharitonsky-iniflags-a33cd0b5f3de_GH0.tar.gz) = d60f3292be138071158e47e794c2ba93ea9dfc866c44e6472833e2d8566024aa
SIZE (smtprelay/vharitonsky-iniflags-a33cd0b5f3de_GH0.tar.gz) = 7498
SHA256 (smtprelay/golang-crypto-505ab145d0a9_GH0.tar.gz) = 33a4ff7a15a69640a7ce2c65ba94680643554b744c69f3ed3623bd9557c985e7
SIZE (smtprelay/golang-crypto-505ab145d0a9_GH0.tar.gz) = 1644681

View File

@ -0,0 +1,18 @@
#!/bin/sh
#
# PROVIDE: smtprelay
# REQUIRE: networking
. /etc/rc.subr
name="smtprelay"
rcvar="smtprelay_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f %%LOCALBASE%%/bin/smtprelay -config %%ETCDIR%%/smtprelay.ini"
load_rc_config $name
: ${smtprelay_enable:=no}
run_rc_command "$1"

6
mail/smtprelay/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Simple Golang SMTP relay/proxy server that accepts mail via SMTP
and forwards it directly to another SMTP server. It supports TLS,
STARTTLS, plain SMTP, can do authentication and various sender
and receiver checks.
WWW: https://code.bluelife.at/decke/smtprelay