aboutsummaryrefslogtreecommitdiffstats
path: root/mail/smtpd/files
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-03-01 09:58:52 +0800
committerobrien <obrien@FreeBSD.org>1998-03-01 09:58:52 +0800
commit48b8681de7fbb7555c85c94c997555a4bcf706b6 (patch)
treef3a38116727d9feee68a11245f4f8be1c72a33a3 /mail/smtpd/files
parentd51e09e483e44986c22d3ee3f383e5fc9a690992 (diff)
downloadfreebsd-ports-gnome-48b8681de7fbb7555c85c94c997555a4bcf706b6.tar.gz
freebsd-ports-gnome-48b8681de7fbb7555c85c94c997555a4bcf706b6.tar.zst
freebsd-ports-gnome-48b8681de7fbb7555c85c94c997555a4bcf706b6.zip
Obtuse smtpd/smtpfwdd, part of the Juniper firewall toolkit
Submitted by: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
Diffstat (limited to 'mail/smtpd/files')
-rw-r--r--mail/smtpd/files/patch-aa86
-rw-r--r--mail/smtpd/files/smtpd.sh11
2 files changed, 97 insertions, 0 deletions
diff --git a/mail/smtpd/files/patch-aa b/mail/smtpd/files/patch-aa
new file mode 100644
index 000000000000..f12359a1b459
--- /dev/null
+++ b/mail/smtpd/files/patch-aa
@@ -0,0 +1,86 @@
+--- Makefile.orig Sun Oct 12 23:40:34 1997
++++ Makefile Fri Feb 6 22:21:46 1998
+@@ -1,7 +1,7 @@
+ ##########################################################
+ ## Where do I get installed? #############################
+ ##########################################################
+-INSTALL_PREFIX = /usr/local/
++INSTALL_PREFIX = ${PREFIX}/
+ INSTALL_BIN = sbin/
+ INSTALL_MAN = man/
+
+@@ -41,9 +41,9 @@
+ # in SMTP_USER above.
+ #
+ # The chroot directory
+-SPOOLDIR = /usr/spool/smtpd
++SPOOLDIR = !!SPOOLBASE!!
+ # Where to store messages, relative to SPOOLDIR above.
+-SPOOLSUBDIR = .
++SPOOLSUBDIR = mqueue
+ #Use below instead of above if you don't want smtpd to chroot. This
+ #isn't normally a good idea if security is your main goal. A nice
+ #chroot jail may be a pain to build but should give you enough of a
+@@ -143,8 +143,8 @@
+ # indicating a DNS spoof of misconfiguration.
+ # If PARANOID_DNS is 0, smtpd will replace any evil characters it sees
+ # continue.
+-# PARANOID_DNS = 1
+-PARANOID_DNS = 0
++PARANOID_DNS = 1
++# PARANOID_DNS = 0
+
+ # The check above will clobber stuff in the headers from some
+ # non north-american localizations.
+@@ -181,8 +181,8 @@
+ # seem to have a bug in which they simply try the EHLO again. Sigh.
+ # setting EHLO_KLUDGE to 1 will make smtpd accept a second EHLO as a helo,
+ # thereby kludging around this bug in Communicator.
+-#EHLO_KLUDGE=1
+-EHLO_KLUDGE=0
++EHLO_KLUDGE=1
++#EHLO_KLUDGE=0
+
+
+ # smtpd can check FROM and RCPT addresses, along with the connecting
+@@ -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
+@@ -325,7 +325,8 @@
+ ####################################################
+
+ # The Source is with you (*BSD 4.4, Linux)
+-CFLAGS = -g -O -Wall -DUSE_FLOCK -DUSE_MKSTEMP $(OPTIONS)
++#CFLAGS = -g -O -Wall -DUSE_FLOCK -DUSE_MKSTEMP $(OPTIONS)
++CFLAGS += -Wall -DUSE_FLOCK -DUSE_MKSTEMP $(OPTIONS)
+
+
+ #SunOS 5.X
+@@ -362,8 +363,8 @@
+ indent $(INDENT_ARGS) address_check.c
+
+ install: smtpd smtpfwdd
+- install -m 500 smtpd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpd
+- install -m 500 smtpfwdd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpfwdd
++ install -cs -g 0 -o 0 -m 500 smtpd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpd
++ install -cs -g 0 -o 0 -m 500 smtpfwdd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpfwdd
+
+ clean:
+ /bin/rm -f *.o
diff --git a/mail/smtpd/files/smtpd.sh b/mail/smtpd/files/smtpd.sh
new file mode 100644
index 000000000000..a902971eb00d
--- /dev/null
+++ b/mail/smtpd/files/smtpd.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+if [ $# -eq 0 -o "$1" = "start" ]; then
+ if [ -x !!PREFIX!!/sbin/smtpfwdd ] ; then
+ !!PREFIX!!/sbin/smtpfwdd
+ echo " smtpfwdd"
+ fi
+fi
+if [ "$1" = "stop" ]; then
+ killall smtpfwdd
+fi