pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/opensmtpd-filter-spfgreylist
Module Name: pkgsrc
Committed By: vins
Date: Thu Dec 5 09:08:30 UTC 2024
Added Files:
pkgsrc/mail/opensmtpd-filter-spfgreylist: DESCR Makefile PLIST distinfo
go-modules.mk
pkgsrc/mail/opensmtpd-filter-spfgreylist/files: README.spf
Log Message:
mail/opensmtpd-filter-spfgreylist: initial import
This filter implements greylisting, allowing OpenSMTPD to temporarily
reject sessions of clients it has not seen before. Unlike many
implementations, this one is SPF-aware so it will properly handle
greylisting for domains doing relaying through multiple MX, as long as
they publish a valid SPF record.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/opensmtpd-filter-spfgreylist/DESCR \
pkgsrc/mail/opensmtpd-filter-spfgreylist/Makefile \
pkgsrc/mail/opensmtpd-filter-spfgreylist/PLIST \
pkgsrc/mail/opensmtpd-filter-spfgreylist/distinfo \
pkgsrc/mail/opensmtpd-filter-spfgreylist/go-modules.mk
cvs rdiff -u -r0 -r1.1 \
pkgsrc/mail/opensmtpd-filter-spfgreylist/files/README.spf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/DESCR
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/DESCR:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/DESCR Thu Dec 5 09:08:29 2024
@@ -0,0 +1,12 @@
+This filter implements greylisting, allowing OpenSMTPD to temporarily
+reject sessions of clients it has not seen before. Unlike many
+implementations, this one is SPF-aware so it will properly handle
+greylisting for domains doing relaying through multiple MX, as long as
+they publish a valid SPF record.
+
+The filter currently supports:
+
+* IPv4 and IPv6 address greylisting
+* SPF greylisting
+* startup whitelisting of IP and domains
+* automatically renewed whitelisting
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/Makefile
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/Makefile:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/Makefile Thu Dec 5 09:08:30 2024
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2024/12/05 09:08:30 vins Exp $
+
+DISTNAME= filter-spfgreylist-1.0.0
+PKGNAME= ${DISTNAME:S|^|opensmtpd-|}
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_GITHUB:=poolpOrg/}
+GITHUB_PROJECT= filter-spfgreylist
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= vins%NetBSD.org@localhost
+HOMEPAGE= https://github.com/poolpOrg/filter-spfgreylist/
+COMMENT= SPF-aware greylisting filter integration for OpenSMTPD
+LICENSE= isc
+
+DEPENDS+= opensmtpd-[0-9]*:../../mail/opensmtpd
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_FILES.prefix= README.spf
+SUBST_VARS.prefix= PKG_SYSCONFDIR PREFIX
+SUBST_MESSAGE.prefix= Replacing pkgsrc placeholders.
+
+GOPATH= ${WRKDIR}/.gopath
+
+INSTALLATION_DIRS+= libexec/opensmtpd
+INSTALLATION_DIRS+= share/doc/opensmtpd/filters
+
+post-extract:
+ ${RUN}${CP} ${FILESDIR}/README.spf ${WRKSRC}
+
+do-install:
+ ${INSTALL_PROGRAM} ${GOPATH}/bin/filter-spfgreylist \
+ ${DESTDIR}${PREFIX}/libexec/opensmtpd/
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/README.spf \
+ ${DESTDIR}${PREFIX}/share/doc/opensmtpd/filters
+
+.include "go-modules.mk"
+
+.include "../../lang/go/go-module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/PLIST
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/PLIST:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/PLIST Thu Dec 5 09:08:30 2024
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2024/12/05 09:08:30 vins Exp $
+libexec/opensmtpd/filter-spfgreylist
+share/doc/opensmtpd/filters/README.spf
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/distinfo
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/distinfo:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/distinfo Thu Dec 5 09:08:30 2024
@@ -0,0 +1,17 @@
+$NetBSD: distinfo,v 1.1 2024/12/05 09:08:30 vins Exp $
+
+BLAKE2s (blitiri.com.ar_go_spf_@v_v1.5.1.mod) = 405e9df4a25d9769c3b6953c5005425076f3bf0905ccd47d5b4ba7cc473b9a01
+SHA512 (blitiri.com.ar_go_spf_@v_v1.5.1.mod) = 2567e2c1bdd37e95f1abbe5aed47411fedb4f7347e62fe104987b1a3cb5be490e980b7258cd20945da94a7cb4af052b8160b8fa827172cde4397bed21ef56e6e
+Size (blitiri.com.ar_go_spf_@v_v1.5.1.mod) = 71 bytes
+BLAKE2s (blitiri.com.ar_go_spf_@v_v1.5.1.zip) = 31b398b9d8795545e00abcbe4388436c4f5b145cc1a228171e6a7cf46c577c37
+SHA512 (blitiri.com.ar_go_spf_@v_v1.5.1.zip) = 73bd9093d4ec514dc2edfe7bc5620815c6fc73bfc247667076c84c6b1b0d4331dd31e8a06fb14acce6c1233a6602eb7a7224d582686bf7109d964e8c393750c0
+Size (blitiri.com.ar_go_spf_@v_v1.5.1.zip) = 279821 bytes
+BLAKE2s (filter-spfgreylist-1.0.0.tar.gz) = 0071e5931584551cf1b653a088d118cbcfef62b3eb9ed3a252dae855bd072867
+SHA512 (filter-spfgreylist-1.0.0.tar.gz) = 597e520b2f9c833491cfcc2910c6fd67d769cd6a64f3ca4be2fd752194da67907edcd3a5b76fbff6122b22332d99534c8cbba67a6c603775189b1d5b8099da33
+Size (filter-spfgreylist-1.0.0.tar.gz) = 5943 bytes
+BLAKE2s (gopkg.in_check.v1_@v_v0.0.0-20161208181325-20d25e280405.mod) = 35cd1964700502d06b8c987979fb4dbddc41a5cda3368d037211b89d3587521f
+SHA512 (gopkg.in_check.v1_@v_v0.0.0-20161208181325-20d25e280405.mod) = 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2
+Size (gopkg.in_check.v1_@v_v0.0.0-20161208181325-20d25e280405.mod) = 25 bytes
+BLAKE2s (gopkg.in_yaml.v3_@v_v3.0.1.mod) = 17da54ba1894b4653d4c1ab1ae6e9fe03928a96c69cdc8db6b6ea9e34d673991
+SHA512 (gopkg.in_yaml.v3_@v_v3.0.1.mod) = 307ca9123efc577ca04828996ee9d8edbb51794ccb4b8d9f169ba689e7276aa5f6ae106a04b22b7fab853ffacfebcbf74468b64eaefd57445864c1fbc77fad9d
+Size (gopkg.in_yaml.v3_@v_v3.0.1.mod) = 95 bytes
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/go-modules.mk
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/go-modules.mk:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/go-modules.mk Thu Dec 5 09:08:30 2024
@@ -0,0 +1,6 @@
+# $NetBSD: go-modules.mk,v 1.1 2024/12/05 09:08:30 vins Exp $
+
+GO_MODULE_FILES+= blitiri.com.ar/go/spf/@v/v1.5.1.mod
+GO_MODULE_FILES+= blitiri.com.ar/go/spf/@v/v1.5.1.zip
+GO_MODULE_FILES+= gopkg.in/check.v1/@v/v0.0.0-20161208181325-20d25e280405.mod
+GO_MODULE_FILES+= gopkg.in/yaml.v3/@v/v3.0.1.mod
Index: pkgsrc/mail/opensmtpd-filter-spfgreylist/files/README.spf
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-spfgreylist/files/README.spf:1.1
--- /dev/null Thu Dec 5 09:08:30 2024
+++ pkgsrc/mail/opensmtpd-filter-spfgreylist/files/README.spf Thu Dec 5 09:08:30 2024
@@ -0,0 +1,33 @@
++-----------------------------------------------------------------------
+| filter-spfgreylist setup
++-----------------------------------------------------------------------
+
+The filter itself requires no configuration.
+
+It must be decalred in @PKG_SYSCONFDIR@/smtpd/smtpd.conf and attached to
+a listener for sessions to go through greylisting:
+
+ filter "greylist" \
+ proc-exec "@PREFIX@/libexec/opensmtpd/filter-spfgreylist"
+
+ listen on all filter "greylist"
+
+See filter-spfgreylist(8) man page.
+
+It is possible to tweak the greylisting parameters, here listed with
+default values in seconds:
+
+* -passtime 300 accept greylisting retries only after 5 minutes from
+ initial attempt
+* -greyexp 14400 expire greylisting attempts after 4 hours without a
+ retry
+* -whiteexp 2592000 expire whitelisting after 30 days without any
+ attempt at delivery
+
+It is also possible to inject IP and domains in the whitelists at
+startup to avoid greylisting:
+
+* -wl-ip inject IP addresses listed, one per line, in the
+ parameter file to the whitelist
+* -wl-domain inject domains listed, one per line, in the
+ parameter file to the whitelist
Home |
Main Index |
Thread Index |
Old Index