import mail/opensmtpd-filter-rspamd, an rspamd integration for OpenSMTPD

ok landry@ and kn@
This commit is contained in:
gilles 2019-08-13 18:40:10 +00:00
parent aa8caf12a3
commit cf636aa7fd
5 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/08/13 18:40:10 gilles Exp $
COMMENT = rspamd integration to the OpenSMTPD daemon
V = 0.1.0
DISTNAME = filter-rspamd-${V}
CATEGORIES = mail
HOMEPAGE = https://github.com/poolpOrg/filter-rspamd/
MAINTAINER = Gilles Chehade <gilles@poolp.org>
MASTER_SITES = https://github.com/poolpOrg/filter-rspamd/releases/download/${V}/
# ISC
PERMIT_PACKAGE = Yes
WANTLIB = c pthread
MODULES = lang/go
MODGO_TYPE = bin
NO_TEST = Yes
ALL_TARGET = filter-rspamd
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (filter-rspamd-0.1.0.tar.gz) = AXrtaCqiZmIDGgzxWni8VQEFteRACDsoD6F7odXuU+c=
SIZE (filter-rspamd-0.1.0.tar.gz) = 3397

View File

@ -0,0 +1,2 @@
filter-rspamd is an opensmtpd filter that passes mail through
rspamd to flag or reject spam messages at session time.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/08/13 18:40:10 gilles Exp $
@bin bin/filter-rspamd
share/doc/pkg-readmes/${PKGSTEM}

View File

@ -0,0 +1,18 @@
$OpenBSD: README,v 1.1.1.1 2019/08/13 18:40:10 gilles Exp $
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------
To use filter-rspamd, you must declare it in smtpd.
Edit the /etc/mail/smtpd.conf file to declare the filter:
filter "rspamd" proc-exec "${PREFIX}/bin/filter-rspamd"
Then add the filter to each listener that should be filtered:
listen on socket filter "rspamd" listen on all filter "rspamd"
The filter itself doesn't have configuration and is controlled by
the Rspamd configuration itself.