summaryrefslogtreecommitdiff
path: root/security/smtpd
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2000-04-21 10:57:33 +0000
committermjl <mjl@pkgsrc.org>2000-04-21 10:57:33 +0000
commitd1c2c2f83845b3699522924ac806345035ba73ec (patch)
treed952cb3749693c85312b4c3d2266241d4fe6c3f8 /security/smtpd
parentc82529a73727d4e0fccb084e71fbdf2504786ab1 (diff)
downloadpkgsrc-d1c2c2f83845b3699522924ac806345035ba73ec.tar.gz
Initial import of smtpd, an SMTP store-and-forward proxy for firewalling.
Diffstat (limited to 'security/smtpd')
-rw-r--r--security/smtpd/Makefile33
-rw-r--r--security/smtpd/files/md54
-rw-r--r--security/smtpd/files/patch-sum3
-rw-r--r--security/smtpd/patches/patch-aa60
-rw-r--r--security/smtpd/pkg/COMMENT1
-rw-r--r--security/smtpd/pkg/DEINSTALL18
-rw-r--r--security/smtpd/pkg/DESCR3
-rw-r--r--security/smtpd/pkg/MESSAGE13
-rw-r--r--security/smtpd/pkg/PLIST3
9 files changed, 138 insertions, 0 deletions
diff --git a/security/smtpd/Makefile b/security/smtpd/Makefile
new file mode 100644
index 00000000000..fe07873e669
--- /dev/null
+++ b/security/smtpd/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+#
+
+DISTNAME= smtpd-2.0
+CATEGORIES= mail security
+MASTER_SITES= ftp://ftp.obtuse.com/pub/smtpd/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+PATCHFILES= patch-smtpd-2.0-RBL.gz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.obtuse.com/smtpd.html
+
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+SPOOL= /var/spool/smtpd
+
+pre-install:
+ -${MKDIR} -p ${SPOOL}/etc
+ for f in antirelay_check_rules_example antispam_check_rules.example smtpd_check_rules.example ; do ${INSTALL_DATA} ${WRKSRC}/$$f ${SPOOL}/etc; done
+ ${CHOWN} -R uucp.mail ${SPOOL}
+ ${CHMOD} -R g=,o= ${SPOOL}
+ ${CP} /etc/localtime /etc/resolv.conf ${SPOOL}/etc
+
+
+post-build:
+ @cd ${PKGDIR}; \
+ for f in DEINSTALL MESSAGE; do \
+ ${SED} -e 's#@PREFIX@#${PREFIX}#g' <$$f >$$f.1; \
+ ${MV} -f $$f.1 $$f; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/smtpd/files/md5 b/security/smtpd/files/md5
new file mode 100644
index 00000000000..21861be8d60
--- /dev/null
+++ b/security/smtpd/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+
+MD5 (smtpd-2.0.tar.gz) = c1b4e15db9bd7f6fd2ef846fd2e22d4b
+MD5 (patch-smtpd-2.0-RBL.gz) = 5c54365520f439db27d5ed428139429c
diff --git a/security/smtpd/files/patch-sum b/security/smtpd/files/patch-sum
new file mode 100644
index 00000000000..5e04caca837
--- /dev/null
+++ b/security/smtpd/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+
+MD5 (patch-aa) = 223e0559f5a8b0fdf5756ee1e9818ffd
diff --git a/security/smtpd/patches/patch-aa b/security/smtpd/patches/patch-aa
new file mode 100644
index 00000000000..31ab89b7beb
--- /dev/null
+++ b/security/smtpd/patches/patch-aa
@@ -0,0 +1,60 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+
+--- Makefile.orig Thu Apr 20 18:23:56 2000
++++ Makefile Thu Apr 20 18:29:42 2000
+@@ -1,7 +1,7 @@
+ ##########################################################
+ ## Where do I get installed? #############################
+ ##########################################################
+-INSTALL_PREFIX = /usr/local/
++INSTALL_PREFIX = ${PREFIX}/
+ INSTALL_BIN = sbin/
+ INSTALL_MAN = man/
+
+@@ -20,7 +20,7 @@
+ # sendmail or whatever you are using as MAIL_AGENT above so that the user
+ # may use the "-f" flag to specify the sender of a mail message.
+ SMTP_USER = uucp
+-SMTP_GROUP = uucp
++SMTP_GROUP = mail
+
+ # smtpd and smtpfwdd generate lots of syslogs, by design.
+ #
+@@ -41,7 +41,7 @@
+ # in SMTP_USER above.
+ #
+ # The chroot directory
+-SPOOLDIR = /usr/spool/smtpd
++SPOOLDIR = /var/spool/smtpd
+ # Where to store messages, relative to SPOOLDIR above.
+ SPOOLSUBDIR = .
+ #Use below instead of above if you don't want smtpd to chroot. This
+@@ -53,7 +53,7 @@
+
+ # How frequently (in seconds) should smtpfwdd wake up to check the
+ # spool directory for new mail?
+-POLL_TIME = 10
++POLL_TIME = 30
+
+ # What is the maximum number of children smtpfwdd should spawn at one time
+ # when delivering messages before waiting for some to complete? This ensures
+@@ -206,8 +206,8 @@
+ # build with CHECK_ADDRESS set to 1. You will get an error about
+ # juniper_firewall.h not existing if you forget this.
+ #
+-JUNIPER_SUPPORT=1
+-#JUNIPER_SUPPORT=0
++#JUNIPER_SUPPORT=1
++JUNIPER_SUPPORT=0
+
+ # Use regexp's in patterns? If you have a POSIX <regex.h> and friends,
+ # and you trust the regex lib enough for use, you can set USE_REGEX to
+@@ -245,7 +245,7 @@
+ #
+ #NS_MATCH=0
+ NS_MATCH=1
+-LD_LIBS=-lresolv # you may or may not need this.
++#LD_LIBS=-lresolv # you may or may not need this.
+
+ # The rules file for address checking, if enabled, remember this file
+ # will be in the chroot jail, so the line below probably means
diff --git a/security/smtpd/pkg/COMMENT b/security/smtpd/pkg/COMMENT
new file mode 100644
index 00000000000..3ed8f035856
--- /dev/null
+++ b/security/smtpd/pkg/COMMENT
@@ -0,0 +1 @@
+Store and forward SMTP proxy
diff --git a/security/smtpd/pkg/DEINSTALL b/security/smtpd/pkg/DEINSTALL
new file mode 100644
index 00000000000..4bfc80cc99b
--- /dev/null
+++ b/security/smtpd/pkg/DEINSTALL
@@ -0,0 +1,18 @@
+#! /bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+#
+
+case "$2" in
+ DEINSTALL) cat <<EOF
+
+=============================================================
+Note that the configuration and spool dir (/var/spool/smtpd)
+are not removed in the deinstallation process. You should
+remove those by hand, if you no longer need them.
+=============================================================
+
+EOF
+ ;;
+esac
+
diff --git a/security/smtpd/pkg/DESCR b/security/smtpd/pkg/DESCR
new file mode 100644
index 00000000000..e0bddd77fb2
--- /dev/null
+++ b/security/smtpd/pkg/DESCR
@@ -0,0 +1,3 @@
+The smtpd daemon talks the Simple Mail Transfer Protocol (SMTP) with
+other SMTP daemons to receive mail from them, and saves it into a
+spool directory for later processing.
diff --git a/security/smtpd/pkg/MESSAGE b/security/smtpd/pkg/MESSAGE
new file mode 100644
index 00000000000..8e6c49a1a4c
--- /dev/null
+++ b/security/smtpd/pkg/MESSAGE
@@ -0,0 +1,13 @@
+==========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+
+The necessary spool and configuration directories were created
+under /var/spool/smtpd. Please edit /var/spool/smtpd/etc/smtp_check_rules
+according to your taste.
+
+You will want to start smtpfwdd in rc.local, and add a line like
+
+smtp stream tcp nowait root /usr/pkg/sbin/smtpd smtpd
+
+to your /etc/inetd.conf when you are done.
+==========================================================================
diff --git a/security/smtpd/pkg/PLIST b/security/smtpd/pkg/PLIST
new file mode 100644
index 00000000000..9956381dad7
--- /dev/null
+++ b/security/smtpd/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
+sbin/smtpd
+sbin/smtpfwdd