File smtpd-2.0.dif of Package smtpd
--- Makefile
+++ Makefile 2000/12/14 11:54:19
@@ -1,7 +1,7 @@
##########################################################
## Where do I get installed? #############################
##########################################################
-INSTALL_PREFIX = /usr/local/
+INSTALL_PREFIX = /usr/
INSTALL_BIN = sbin/
INSTALL_MAN = man/
@@ -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
@@ -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
@@ -362,6 +362,7 @@
indent $(INDENT_ARGS) address_check.c
install: smtpd smtpfwdd
+ install -d $(INSTALL_PREFIX)$(INSTALL_BIN)
install -m 500 smtpd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpd
install -m 500 smtpfwdd $(INSTALL_PREFIX)$(INSTALL_BIN)smtpfwdd
--- README.SuSE
+++ README.SuSE 2000/12/14 11:54:19
@@ -0,0 +1,17 @@
+README.SuSE
+(vinil@suse.cz 12.6.00, based on choeger@suse.de 2.6.98)
+
+
+Please, copy:
+
+/etc/resolv.conf
+/usr/lib/zoneinfo/localtime
+/lib/libnss_dns.so.2
+/lib/libnss_files.so.2
+/etc/nsswitch.conf
+/etc/host.conf
+
+to their equivalent in /var/spool/smtpd.
+(If you do the dns lookup non-ordinary way, copy other necessary files.)
+
+For further information, read INSTALL.
--- smtpd.c
+++ smtpd.c 2000/12/14 11:55:08
@@ -2368,9 +2368,6 @@
new_sa.sa_handler = SIG_IGN;
(void)sigemptyset(&new_sa.sa_mask);
new_sa.sa_flags = SA_RESTART;
-#ifdef __linux__
- new_sa.sa_restorer = NULL;
-#endif
if ( sigaction( SIGPIPE, &new_sa, &old_sa ) != 0 ) {
syslog(LOG_CRIT,"CRITICAL - sigaction failed (%m)");
exit(EX_OSERR);
--- smtpd_check_rules.SuSE
+++ smtpd_check_rules.SuSE 2000/12/14 11:54:19
@@ -0,0 +1,11 @@
+#
+# Example smtpd_check_rules file.
+# Carsten Hoeger <choeger@suse.de> S.u.S.E. Gmbh, Fuerth, Germany 1998
+#
+allow:localhost:ALL:ALL
+
+# Access to all members of domain suse.de
+allow:ALL@suse.de:ALL:ALL
+
+# deny all other
+deny:ALL:ALL:ALL