Finally that one. RFC 6647 graylisting policy server, following the recommendet practice noted in the standard document. Graylisting defers message acceptance (for a specific recipient / sender / client_address value tuple) a configurable number of times via a standardized SMTP response (see allow(5), RFC 5321), which does not prevent message delivery from SMTP M(ail) T(ransfer) A(gent)s, but can help against simple spam producing programs.
s-postgray is started via spawn(8), with the given user credentials, therefore the built-in DB store path is /tmp -- you surely want to change this. Note s-postgray changes CWD to the configured --store-path, and loads most files from therein. diff -Napru mail.orig/s-postgray/Makefile mail/s-postgray/Makefile --- mail.orig/s-postgray/Makefile Thu Jan 1 01:00:00 1970 +++ mail/s-postgray/Makefile Thu May 12 01:13:54 2022 @@ -0,0 +1,22 @@ +COMMENT= postfix graylisting policy server (fast+secure) + +DISTNAME= s-postgray-0.6.0 +#REVISION= 0 +CATEGORIES= mail +HOMEPAGE= https://www.sdaoden.eu/code.html\#s-postgray + +MASTER_SITES= https://ftp.sdaoden.eu/ +MAINTAINER= Steffen Nurpmeso <stef...@sdaoden.eu> + +# ISC +PERMIT_PACKAGE= Yes + +WANTLIB+= c + +MAKE_FILE= makefile +MAKE_FLAGS= MANDIR="${DESTDIR}${PREFIX}"/man/man8 \ + VAL_STORE_PATH=/tmp + +NO_TEST= Yes + +.include <bsd.port.mk> diff -Napru mail.orig/s-postgray/distinfo mail/s-postgray/distinfo --- mail.orig/s-postgray/distinfo Thu Jan 1 01:00:00 1970 +++ mail/s-postgray/distinfo Thu May 12 01:14:48 2022 @@ -0,0 +1,2 @@ +SHA256 (s-postgray-0.6.0.tar.gz) = He6OqMiB1ctjcmFR9RQrX19MS/nHEz2l5xcKzooA0UY= +SIZE (s-postgray-0.6.0.tar.gz) = 127563 diff -Napru mail.orig/s-postgray/pkg/DESCR mail/s-postgray/pkg/DESCR --- mail.orig/s-postgray/pkg/DESCR Thu Jan 1 01:00:00 1970 +++ mail/s-postgray/pkg/DESCR Thu May 12 01:12:01 2022 @@ -0,0 +1,10 @@ +RFC 6647 graylisting policy server, following the recommendet practice +noted in the standard document. +Graylisting defers message acceptance (for a specific recipient / sender +/ client_address value tuple) a configurable number of times +via a standardized SMTP response (see allow(5), RFC 5321), which does +not prevent message delivery from SMTP M(ail) T(ransfer) A(gent)s, +but can help against simple spam producing programs. +s-postgray is started via spawn(8), with the given user credentials, +therefore the built-in DB store path is /tmp -- you surely want to +change this. diff -Napru mail.orig/s-postgray/pkg/PLIST mail/s-postgray/pkg/PLIST --- mail.orig/s-postgray/pkg/PLIST Thu Jan 1 01:00:00 1970 +++ mail/s-postgray/pkg/PLIST Thu May 12 01:16:04 2022 @@ -0,0 +1,3 @@ +@pkgpath mail/s-postgray +@bin libexec/s-postgray +@man man/man8/s-postgray.8 diff -Napru mail.orig/s-postgray/pkg/PLIST.orig mail/s-postgray/pkg/PLIST.orig --- mail.orig/s-postgray/pkg/PLIST.orig Thu Jan 1 01:00:00 1970 +++ mail/s-postgray/pkg/PLIST.orig Thu May 12 00:58:11 2022 @@ -0,0 +1,3 @@ +@pkgpath mail/s-postgray +libexec/s-postgray +@man man/man8/s-postgray.8 --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)