summaryrefslogtreecommitdiff
path: root/mail/rlytest
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-01-26 03:20:56 +0000
committerSteve Price <steve@FreeBSD.org>1999-01-26 03:20:56 +0000
commit7e9600161d41b85da2b3e3dc552a501d31eea4f6 (patch)
treec09561713ab98a07b27227001e5e2058e8a0c9bc /mail/rlytest
parentActivate the wsoundprefs port. (diff)
Initial import of rlytest version 1.15.
Test an SMTP host for third-party relay. PR: 9531 Submitted by: Paul Chvostek <paul@it.ca>
Notes
Notes: svn path=/head/; revision=16340
Diffstat (limited to 'mail/rlytest')
-rw-r--r--mail/rlytest/Makefile33
-rw-r--r--mail/rlytest/distinfo1
-rw-r--r--mail/rlytest/pkg-comment1
-rw-r--r--mail/rlytest/pkg-descr14
-rw-r--r--mail/rlytest/pkg-message18
-rw-r--r--mail/rlytest/pkg-plist1
6 files changed, 68 insertions, 0 deletions
diff --git a/mail/rlytest/Makefile b/mail/rlytest/Makefile
new file mode 100644
index 000000000000..b7adfde2e85e
--- /dev/null
+++ b/mail/rlytest/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: rlytest
+# Version required: 1.15
+# Date created: 16 January 1999
+# Whom: Paul Chvostek <paul@it.ca>
+#
+# $Id$
+#
+
+DISTNAME= rlytest
+PKGNAME= rlytest-1.15
+CATEGORIES= mail security
+MASTER_SITES= http://www.unicom.com/sw/rlytest/
+
+MAINTAINER= paul@it.ca
+
+MAN1= rlytest.1
+
+USE_PERL5= yes
+NO_WRKSUBDIR= yes
+NO_BUILD=
+
+post-patch:
+ ${MV} ${WRKSRC}/rlytest ${WRKSRC}/rlytest.chip; \
+ ${SED} 's:/usr/local/bin/perl:${PERL}:' < ${WRKSRC}/rlytest.chip > ${WRKSRC}/rlytest
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/rlytest ${PREFIX}/bin/rlytest; \
+ ${INSTALL_MAN} ${WRKSRC}/rlytest.1 ${MANPREFIX}/man/man1/rlytest.1
+
+post-install:
+ ${CAT} ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>
diff --git a/mail/rlytest/distinfo b/mail/rlytest/distinfo
new file mode 100644
index 000000000000..ecb6e9a24cd8
--- /dev/null
+++ b/mail/rlytest/distinfo
@@ -0,0 +1 @@
+MD5 (rlytest.tar.gz) = ca22ca9cccd9710fd85cff70da72071d
diff --git a/mail/rlytest/pkg-comment b/mail/rlytest/pkg-comment
new file mode 100644
index 000000000000..96db3e4b9c18
--- /dev/null
+++ b/mail/rlytest/pkg-comment
@@ -0,0 +1 @@
+Test an SMTP host for third-party relay.
diff --git a/mail/rlytest/pkg-descr b/mail/rlytest/pkg-descr
new file mode 100644
index 000000000000..5c1b28f38f10
--- /dev/null
+++ b/mail/rlytest/pkg-descr
@@ -0,0 +1,14 @@
+The rlytest utility tests a host to determine whether it will relay
+third-party email. It will try to relay an email message to yourself
+through that host. A host that allows third-party relay is subject to
+attack by Internet vandals, and frequently is hijacked by spammers to
+relay massive amounts of junk email. A host that allows third-party
+relay should IMMEDIATELY be secured, disconnected, or shunned as a
+menace to the Internet.
+
+See http://www.unicom.com/sw/#rlytest for mor information.
+
+rlytest was written by Chip Rosenthal, and is featured at
+http://maps.vix.com/tsi/ and http://www.badrelay.org/.
+
+- Paul Chvostek <paul@it.ca>
diff --git a/mail/rlytest/pkg-message b/mail/rlytest/pkg-message
new file mode 100644
index 000000000000..898425a4b109
--- /dev/null
+++ b/mail/rlytest/pkg-message
@@ -0,0 +1,18 @@
+
+NOTE: If you wish to make easier use of the rlytest program from within
+scripts, you might want to modify the exit codes it uses. Line 122 of
+the script contains the exit code used if the relay was accepted (bad),
+and line 165 contains the exit code used if the relay was rejected
+(good). The original author has expressed a wish that his code not be
+modified automatically in this way by this distribution, but if you wish
+to modify your local copy, you should feel free to do so.
+
+If you just change the "0" line line 122 to a "1", then in shell scripts
+you'll be able to use constructs like:
+
+ if /usr/local/bin/rlytest $hostname >/dev/null 2>/dev/null ; then
+ echo "$hostname is good"
+ else
+ echo "$hostname is evil"
+ fi
+
diff --git a/mail/rlytest/pkg-plist b/mail/rlytest/pkg-plist
new file mode 100644
index 000000000000..a35f66e83fb7
--- /dev/null
+++ b/mail/rlytest/pkg-plist
@@ -0,0 +1 @@
+bin/rlytest