diff options
author | schmonz <schmonz@pkgsrc.org> | 2007-03-24 07:39:25 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2007-03-24 07:39:25 +0000 |
commit | f3aea9056b911e2ada774125a42415843899cbd6 (patch) | |
tree | 7ad340f9bed90e0b826d0ae793a173da31857ef4 /mail/spamdyke | |
parent | a26c76b38c8c499b38bb4d58a8030393b0dbc8d1 (diff) | |
download | pkgsrc-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')
-rw-r--r-- | mail/spamdyke/DESCR | 17 | ||||
-rw-r--r-- | mail/spamdyke/Makefile | 32 | ||||
-rw-r--r-- | mail/spamdyke/PLIST | 10 | ||||
-rw-r--r-- | mail/spamdyke/distinfo | 6 | ||||
-rw-r--r-- | mail/spamdyke/patches/patch-aa | 13 |
5 files changed, 78 insertions, 0 deletions
diff --git a/mail/spamdyke/DESCR b/mail/spamdyke/DESCR new file mode 100644 index 00000000000..f3bab14d082 --- /dev/null +++ b/mail/spamdyke/DESCR @@ -0,0 +1,17 @@ +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. 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" diff --git a/mail/spamdyke/PLIST b/mail/spamdyke/PLIST new file mode 100644 index 00000000000..450258e76da --- /dev/null +++ b/mail/spamdyke/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/24 07:39:25 schmonz Exp $ +bin/domain2path +bin/domainsplit +bin/spamdyke +share/doc/spamdyke/Changelog.txt +share/doc/spamdyke/FAQ.txt +share/doc/spamdyke/GNUGPL.txt +share/doc/spamdyke/INSTALL.txt +share/doc/spamdyke/README.txt +@dirrm share/doc/spamdyke diff --git a/mail/spamdyke/distinfo b/mail/spamdyke/distinfo new file mode 100644 index 00000000000..edffa8106d7 --- /dev/null +++ b/mail/spamdyke/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/03/24 07:39:25 schmonz Exp $ + +SHA1 (spamdyke-2.2.1.tgz) = 5ad8f0919d65244b8d141438274c8902ed7076f9 +RMD160 (spamdyke-2.2.1.tgz) = c5d410739808f97eff5d9c0a80ccc3d7bd73bbd9 +Size (spamdyke-2.2.1.tgz) = 37067 bytes +SHA1 (patch-aa) = 6dfe19bbe45db372a97e9711f7ed4969a4497f2a diff --git a/mail/spamdyke/patches/patch-aa b/mail/spamdyke/patches/patch-aa new file mode 100644 index 00000000000..ce1603bb98e --- /dev/null +++ b/mail/spamdyke/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/03/24 07:39:25 schmonz Exp $ + +--- spamdyke/spamdyke.c.orig 2007-03-20 21:48:39.000000000 -0400 ++++ spamdyke/spamdyke.c +@@ -37,7 +37,7 @@ + + #define VERSION_STRING "2.2.1" + +-#define DEFAULT_PATH "/bin:/usr/bin:/usr/local/bin:/var/qmail/bin:/home/vpopmail/bin" ++#define DEFAULT_PATH "/bin:/usr/bin:@PREFIX@/bin:/usr/local/bin:/home/vpopmail/bin" + #define DEFAULT_TIMEOUT_COMMAND_SECS 60 + #define DEFAULT_TIMEOUT_CONNECTION_SECS 0 + |