From c81b1a7a7c1e57767cc0acd4d911570ef3cf804b Mon Sep 17 00:00:00 2001 From: kloczek Date: Mon, 25 Jan 1999 21:27:40 +0000 Subject: [PATCH] - initial version sendmaiil source sources. Changed files: sendmail-path.patch -> 1.1 sendmail-pld.mc.patch -> 1.1 sendmail-redirect.patch -> 1.1 sendmail-rmail.patch -> 1.1 sendmail.init -> 1.1 sendmail.sysconfig -> 1.1 site.Linux.m4 -> 1.1 site.Linux.ppc.m4 -> 1.1 --- sendmail-path.patch | 12 ++++++++ sendmail-pld.mc.patch | 39 ++++++++++++++++++++++++++ sendmail-redirect.patch | 11 ++++++++ sendmail-rmail.patch | 10 +++++++ sendmail.init | 62 +++++++++++++++++++++++++++++++++++++++++ sendmail.sysconfig | 2 ++ site.Linux.m4 | 17 +++++++++++ site.Linux.ppc.m4 | 16 +++++++++++ 8 files changed, 169 insertions(+) create mode 100644 sendmail-path.patch create mode 100644 sendmail-pld.mc.patch create mode 100644 sendmail-redirect.patch create mode 100644 sendmail-rmail.patch create mode 100644 sendmail.init create mode 100644 sendmail.sysconfig create mode 100644 site.Linux.m4 create mode 100644 site.Linux.ppc.m4 diff --git a/sendmail-path.patch b/sendmail-path.patch new file mode 100644 index 0000000..4597cac --- /dev/null +++ b/sendmail-path.patch @@ -0,0 +1,12 @@ +diff -Nur sendmail-8.9.1/src/pathnames.h sendmail-8.9.1.orig/src/pathnames.h +--- sendmail-8.9.1/src/pathnames.h Wed May 20 01:36:02 1998 ++++ sendmail-8.9.1.orig/src/pathnames.h Sat Sep 12 14:49:03 1998 +@@ -15,7 +15,7 @@ + # if defined(USE_VENDOR_CF_PATH) && defined(_PATH_VENDOR_CF) + # define _PATH_SENDMAILCF _PATH_VENDOR_CF + # else +-# define _PATH_SENDMAILCF "/etc/sendmail.cf" ++# define _PATH_SENDMAILCF "/etc/mail/sendmail.cf" + # endif + #endif + diff --git a/sendmail-pld.mc.patch b/sendmail-pld.mc.patch new file mode 100644 index 0000000..086ddde --- /dev/null +++ b/sendmail-pld.mc.patch @@ -0,0 +1,39 @@ +--- /dev/null Tue May 5 22:32:27 1998 ++++ sendmail-8.9.2/cf/cf/pld.mc Thu Jan 14 17:20:28 1999 +@@ -0,0 +1,36 @@ ++divert(-1)dnl ++include(`../m4/cf.m4')dnl ++OSTYPE(`linux')dnl ++define(`confCT_FILE', ` -o /etc/mail/sendmail.ct')dnl ++define(`confCW_FILE', ` /etc/mail/sendmail.cw')dnl ++define(`confDEF_USER_ID',``8:12'')dnl ++define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')dnl ++define(`confSTATUS_FILE',`/var/run/sendmail.st')dnl ++define(`confTO_QUEUERETURN', `4d')dnl ++define(`confTO_QUEUEWARN', `4h')dnl ++define(`ALIAS_FILE',`/etc/mail/aliases,/etc/mail/majordomo')dnl ++define(`HELP_FILE',`/etc/mail/sendmail.hf')dnl ++define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl ++define(`STATUS_FILE',`/var/run/sendmail.st')dnl ++define(`UUCP_MAILER_MAX', `100000')dnl ++define(`UUCP_RELAY', `uunet.uu.net')dnl ++FEATURE(access_db, hash -o /etc/mail/access)dnl ++FEATURE(always_add_domain)dnl ++FEATURE(blacklist_recipients)dnl ++FEATURE(limited_masquerade)dnl ++FEATURE(local_procmail)dnl ++FEATURE(masquerade_entire_domain)dnl ++FEATURE(redirect)dnl ++FEATURE(use_ct_file)dnl ++FEATURE(use_cw_file)dnl ++FEATURE(`domaintable',`hash -o /etc/mail/domaintable')dnl ++FEATURE(`genericstable',`hash -o /etc/mail/genericstable')dnl ++FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl ++FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl ++MAILER(procmail)dnl ++MAILER(smtp)dnl ++MAILER(usenet)dnl ++MAILER(uucp)dnl ++O DetectTelnet = True ++O ExitOnTelnet = True ++O MaxMimeHeaderLength=256/128 diff --git a/sendmail-redirect.patch b/sendmail-redirect.patch new file mode 100644 index 0000000..32ede6b --- /dev/null +++ b/sendmail-redirect.patch @@ -0,0 +1,11 @@ +diff -Nur sendmail-8.9.2/cf/feature/redirect.m4 sendmail-8.9.2.pld/cf/feature/redirect.m4 +--- sendmail-8.9.2/cf/feature/redirect.m4 Tue Dec 29 18:42:11 1998 ++++ sendmail-8.9.2.pld/cf/feature/redirect.m4 Sun Jan 17 13:06:26 1999 +@@ -18,6 +18,7 @@ + + PUSHDIVERT(3) + # addresses sent to foo@host.REDIRECT will give a 551 error code ++R$*@$*@$* $#error $@ 5.7.1 $: "551 What is your problem, Willy?" + R$* < @ $+ .REDIRECT. > $: $1 < @ $2 . REDIRECT . > < ${opMode} > + R$* < @ $+ .REDIRECT. > $: $1 < @ $2 . REDIRECT. > + R$* < @ $+ .REDIRECT. > < $- > $# error $@ 5.1.1 $: "551 User has moved; please try " <$1@$2> diff --git a/sendmail-rmail.patch b/sendmail-rmail.patch new file mode 100644 index 0000000..35472cd --- /dev/null +++ b/sendmail-rmail.patch @@ -0,0 +1,10 @@ +--- sendmail-8.8.7/rmail/rmail.c.rmail Mon Feb 9 14:30:13 1998 ++++ sendmail-8.8.7/rmail/rmail.c Mon Feb 9 14:30:42 1998 +@@ -232,7 +232,6 @@ + i = 0; + args[i++] = _PATH_SENDMAIL; /* Build sendmail's argument list. */ + args[i++] = "-oee"; /* No errors, just status. */ +- args[i++] = "-odq"; /* Queue it, don't try to deliver. */ + args[i++] = "-oi"; /* Ignore '.' on a line by itself. */ + + /* set from system and protocol used */ diff --git a/sendmail.init b/sendmail.init new file mode 100644 index 0000000..b72637b --- /dev/null +++ b/sendmail.init @@ -0,0 +1,62 @@ +#!/bin/sh +# +# sendmail This shell script takes care of starting and stopping +# sendmail. +# +# chkconfig: 2345 80 30 +# description: Sendmail is a Mail Transport Agent, which is the program \ +# that moves mail from one machine to another. +# processname: sendmail +# config: /etc/sendmail.cf +# pidfile: /var/run/sendmail.pid + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Source sendmail configureation. +if [ -f /etc/sysconfig/sendmail ] ; then + . /etc/sysconfig/sendmail +else + DAEMON=yes + QUEUE=1h +fi + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +[ -f /usr/sbin/sendmail ] || exit 0 + +# See how we were called. +case "$1" in + start) + # Start daemons. + echo -n "Starting sendmail: " + daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \ + $([ -n "$QUEUE" ] && echo -q$QUEUE) + echo + touch /var/lock/subsys/sendmail + ;; + stop) + # Stop daemons. + echo -n "Shutting down sendmail: " + killproc sendmail + echo + rm -f /var/lock/subsys/sendmail + ;; + restart) + $0 stop + $0 start + ;; + status) + status sendmail + ;; + *) + echo "Usage: sendmail {start|stop|restart|status}" + exit 1 +esac + +exit 0 + diff --git a/sendmail.sysconfig b/sendmail.sysconfig new file mode 100644 index 0000000..cada3c9 --- /dev/null +++ b/sendmail.sysconfig @@ -0,0 +1,2 @@ +DAEMON=yes +QUEUE=1h diff --git a/site.Linux.m4 b/site.Linux.m4 new file mode 100644 index 0000000..41e11ad --- /dev/null +++ b/site.Linux.m4 @@ -0,0 +1,17 @@ +# @(#)Linux 8.4 (Berkeley) 3/22/98 +define(`confSBINOWN',`id') +define(`confSBINGRP',`gid') +define(`confUBINOWN',`id') +define(`confUBINGRP',`gid') +define(`confMANOWN', `id') +define(`confMANGRP',`gid') +define(`confCC',`gcc') +define(`confMAPDEF',`-DMAP_REGEX -DNIS -DNETINET6') +define(`confSTDIR', `/var/run') +define(`confHFDIR',`/etc/mail') +define(`confDEPEND_TYPE', `CC-M') +define(`confMANROOT', `/usr/man/man') +define(`confOPTIMIZE', `opt') +define(`confLDOPTS',`-s') +APPENDDEF(`confLIBS', `-lresolv -lnsl') +APPENDDEF(`confENVDEF', `-D_FFR_MAX_MIME_HEADER_LENGTH=1') \ No newline at end of file diff --git a/site.Linux.ppc.m4 b/site.Linux.ppc.m4 new file mode 100644 index 0000000..0126b7b --- /dev/null +++ b/site.Linux.ppc.m4 @@ -0,0 +1,16 @@ + +# Very much like site.Linux.m4, but: +# Uses $(RPM_OPT_FLAGS) for OPTIMIZE +# Uses the default cc +# SBINGRP already defaults to mail +# Adds -lnsl to LIBS for NIS support + +define(`confMAPDEF', `-DMAP_REGEX -DNIS') +APPENDDEF(`confLIBS', `-lnsl') +define(`confSTDIR', `/var/run') +define(`confHFDIR',`/etc/mail') +define(`confDEPEND_TYPE', `CC-M') +define(`confMANROOT', `/usr/man/man') +define(`confOPTIMIZE', `$(RPM_OPT_FLAGS)') +define(`confLDOPTS', `-s') + -- 2.44.0