summaryrefslogtreecommitdiff
path: root/mail/spamdyke/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2007-03-24 07:39:25 +0000
committerschmonz <schmonz@pkgsrc.org>2007-03-24 07:39:25 +0000
commitf3aea9056b911e2ada774125a42415843899cbd6 (patch)
tree7ad340f9bed90e0b826d0ae793a173da31857ef4 /mail/spamdyke/Makefile
parenta26c76b38c8c499b38bb4d58a8030393b0dbc8d1 (diff)
downloadpkgsrc-f3aea9056b911e2ada774125a42415843899cbd6.tar.gz
Initial import of spamdyke 2.2.1.
spamdyke monitors incoming traffic, acting as a middleman between qmail and the remote server. It catches the sender and recipient addresses as they go by and logs them to syslog. If it sees something it doesn't like (e.g. a blacklisted sender), it cuts the connection, closes qmail and fakes the rest of the SMTP transaction with the remote server. qmail thinks the remote server disconnected normally. The remote server thinks qmail is rejecting the message. It's the best of both worlds. spamdyke can optionally reject the connection if the remote server's reverse DNS entry does not exist, does not resolve, contains its IP address and either contains a prohibited keyword (like "dynamic") or ends in a country code; if the IP address, reverse DNS entry, or envelope sender is listed in a blacklist; or if data is sent before the SMTP greeting banner is displayed. spamdyke can also limit recipients per connection, greylist for some or all domains, and close connections that go idle or take too long.
Diffstat (limited to 'mail/spamdyke/Makefile')
-rw-r--r--mail/spamdyke/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/spamdyke/Makefile b/mail/spamdyke/Makefile
new file mode 100644
index 00000000000..882701baf25
--- /dev/null
+++ b/mail/spamdyke/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/24 07:39:25 schmonz Exp $
+#
+
+DISTNAME= spamdyke-2.2.1
+CATEGORIES= mail
+MASTER_SITES= http://freesoftware.silence.org/spamdyke/releases/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://freesoftware.silence.org/spamdyke/
+COMMENT= Monitors and intercept incoming SMTP connections to qmail
+
+BUILD_DIRS= ${PKGBASE}
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${PKGBASE}/spamdyke.c
+SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX:Q},g'
+SUBST_STAGE.paths= do-configure
+
+INSTALLATION_DIRS= bin share/doc/${PKGBASE}
+
+do-install:
+ cd ${WRKSRC}/${PKGBASE}; \
+ for f in spamdyke domain2path domainsplit; do \
+ ${INSTALL_PROGRAM} $${f} ${PREFIX}/bin; \
+ done
+ cd ${WRKSRC}/documentation; \
+ for f in *.txt; do \
+ ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/${PKGBASE}; \
+ done
+
+.include "../../mk/bsd.pkg.mk"