From mea@nic.funet.fi Fri Jan 16 17:18:48 1998
Received: from nic.funet.fi ([128.214.248.6] EHLO nic.funet.fi ident: NO-IDENT-SERVICE [port 49926]) by mea.tmt.tele.fi with ESMTP id <92176-265>; Fri, 16 Jan 1998 17:18:47 +0000
Received: by nic.funet.fi id <11015-12619>; Fri, 16 Jan 1998 17:14:54 +0200
Received: from facil3.facilnet.es ([194.74.157.14]:23904 "EHLO facil3.facilnet.es" ident: "root") by nic.funet.fi with ESMTP id <11709-12619>; Fri, 16 Jan 1998 14:32:53 +0200
Received: from calvin (facilppp142.facilnet.es [194.74.157.142])
	by facil3.facilnet.es (8.8.8/8.8.8) with SMTP id NAA31916
	for <mea@nic.funet.fi>; Fri, 16 Jan 1998 13:31:36 +0100
Message-ID: <00dc01bd227a$f7258e30$0701a8c0@calvin.ibd.es>
From:	"Alfredo Sanjuan" <alfre@ibd.es>
To:	<mea@nic.funet.fi>
Subject: RE: Zmailer rpms
Date:	Fri, 16 Jan 1998 13:33:16 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_00D9_01BD2283.4CCC00A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Sender: mea@nic.funet.fi
Return-Path: <mea@nic.funet.fi>
X-Orcpt: rfc822;mea@mea.tmt.tele.fi
Status: RO

This is a multi-part message in MIME format.

------=_NextPart_000_00D9_01BD2283.4CCC00A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I have a spec that perhaps may be interesting. But it need some changes...



> I have working RPMs for zmailer-2.99.49p8. It's basically some fine tuned
> old SPEC from someone at RedHat (no packager in the spec file). Works fine 
> for me, although i think there was some minor flaw so i didn't upload it to
> RedHat. Anyway, it could be a good start point. If someone wants to look into
> it just tell me where I should upload them. Since I'm still on dial up (which
> is rather expensive here in germany :-( ) I'd prefer to upload the srpm only
> once. 

Send the diff (and specs) to me, as I use RedHat systems
anyway, why would I not include it natively...

> so long,
>   Tom

/Matti Aarnio <mea@nic.funet.fi>


------=_NextPart_000_00D9_01BD2283.4CCC00A0
Content-Type: application/octet-stream;
	name="zmailer49.spec"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="zmailer49.spec"

[encoded data, 7161 characters]
bWFpbGVyCi9ldGMvcmMuZC9yYzUuZC9TODB6bWFpbGVyCg==

------=_NextPart_000_00D9_01BD2283.4CCC00A0--

From mea@nic.funet.fi Fri Jan 16 17:21:27 1998
Received: from nic.funet.fi ([128.214.248.6] EHLO nic.funet.fi ident: NO-IDENT-SERVICE [port 1033]) by mea.tmt.tele.fi with ESMTP id <92176-265>; Fri, 16 Jan 1998 17:21:17 +0000
Received: by nic.funet.fi id <2968-6684>; Fri, 16 Jan 1998 17:16:34 +0200
Received: from isabella.servus.at ([193.170.194.18]:47142 "EHLO isabella.verynet.at" ident: "root") by nic.funet.fi with ESMTP id <13056-12619>; Fri, 16 Jan 1998 16:50:04 +0200
Received: from uucprelay.4t2.com by isa.verynet.at with UUCP id <24388-396>; Fri, 16 Jan 1998 15:57:05 +0100
Received: by utumno.4t2.com id <80200-6817>; Fri, 16 Jan 1998 15:51:33 +0100
Subject: Re: Zmailer rpms
From:	Thomas Weber <x@4t2.com>
To:	mea@nic.funet.fi
Date:	Fri, 16 Jan 1998 15:51:30 +0100 (CET)
In-Reply-To: <19980116105605Z11505-24815+1100@nic.funet.fi> from "mea@nic.funet.fi" at Jan 16, 98 12:56:03 pm
Content-Type: text
Message-Id: <19980116145133Z80200-6817+10@utumno.4t2.com>
Sender: mea@nic.funet.fi
Return-Path: <mea@nic.funet.fi>
X-Orcpt: rfc822;mea@mea.tmt.tele.fi
Content-Length:  8358
Status: RO

> 
> 	Send the diff (and specs) to me, as I use RedHat systems
> 	anyway, why would I not include it natively...

Here they are.

  Tom

===zmailer-initscript.patch===
--- zmailer-2.99.48/utils/zmailer.init.sh.in.sopwith	Thu Jun  5 23:48:48 1997
+++ zmailer-2.99.48/utils/zmailer.init.sh.in	Thu Jun  5 23:51:57 1997
@@ -16,12 +16,18 @@
 		$MAILBIN/zmailer bootclean
 		$MAILBIN/zmailer
 	fi
+	touch /var/lock/subsys/zmailer
 	;;
 
 stop)
 	if [ ${MAILSERVER-NONE} = NONE -a -x $MAILBIN/zmailer ]; then
 		$MAILBIN/zmailer kill
 	fi
+	rm -f /var/lock/subsys/zmailer
+	;;
+*)
+	echo "Usage: zmailer.init {start|stop}"
+	exit 0
 	;;
-
 esac
+exit 0
===zmailer-initscript.patch===

===zmailer-noipv6.cache===
ac_cv_header_linux_in6_h=no
ac_cv_struct_in6_addr=no
ac_cv_struct_netinet6_in6_h=no
ac_cv_struct_netinet_in6_h=no
ac_cv_af_inet6=no
===zmailer-noipv6.cache===

===zmailer-procmail+conf.patch===
--- zmailer-2.99.48/compat/rmail/Makefile.in.sopwith	Sat Jul 26 00:30:40 1997
+++ zmailer-2.99.48/compat/rmail/Makefile.in		Sun Sep 28 04:19:59 1997
@@ -47,7 +47,7 @@
 install: $(LIBDEB) rmail
 	$(INSTALL) -m 0755 rmail $(prefix)$(MAILBIN)/rmail.x ; \
 	mv $(prefix)$(MAILBIN)/rmail.x $(prefix)$(MAILBIN)/rmail
-	@if [ $(LN_S) = "ln -s" ]; then				\
+	@if [ $(LN_S) = "ln -s" -a "$(MAILBIN)/rmail" != "$(RMAILPATH)" ]; then\
 	    if [ -h $(RMAILPATH) ]; then			\
 		rm -f $(RMAILPATH) ;				\
 		ln -s $(MAILBIN)/rmail $(RMAILPATH) ;		\
--- zmailer-2.99.48/compat/sendmail/Makefile.in.sopwith	Thu Dec 12 09:50:34 1996
+++ zmailer-2.99.48/compat/sendmail/Makefile.in		Fri Jun  6 21:29:34 1997
@@ -44,7 +44,7 @@
 install: $(LIBDEB) sendmail
 	$(INSTALL) -m 0755 sendmail $(prefix)$(MAILBIN)/sendmail.x ; \
 	mv $(prefix)$(MAILBIN)/sendmail.x $(prefix)$(MAILBIN)/sendmail
-	@if [ $(LN_S) = "ln -s" ]; then				\
+	@if [ $(LN_S) = "ln -s" -a "$(SENDMAILPATH)" != "$(MAILBIN)/sendmail" ]; then \
 	    if [ -h $(SENDMAILPATH) ]; then			\
 		rm -f $(SENDMAILPATH) ;				\
 		ln -s $(MAILBIN)/sendmail $(SENDMAILPATH) ;	\
--- zmailer-2.99.48/proto/cf/SMTP+UUCP.cf.in.sopwith	Fri Jun  6 21:30:05 1997
+++ zmailer-2.99.48/proto/cf/SMTP+UUCP.cf.in	Fri Jun  6 21:30:10 1997
@@ -39,7 +39,7 @@
 # ZMailer's mailbox does accept.  If you use something else, and
 # it doesn't accept, comment this away!
 
-localdoesdomain=1
+#localdoesdomain=1
 
 # We may want .forward and mailing list files to be private, i.e., we ignore
 # the current privileges when checking the privileges of such files.
--- zmailer-2.99.48/proto/sm.conf.in.sopwith	Tue Nov 26 09:04:29 1996
+++ zmailer-2.99.48/proto/sm.conf.in		Fri Jun  6 21:29:34 1997
@@ -20,7 +20,7 @@
 #local	mS	/usr/lib/mail/localm		localm -r $g $u
 cyrus	Pn	/usr/cyrus/bin/deliver		deliver -e -m $h -- $u
 #		# CYRUS example from: Tom Samplonius <tom@sdf.com>
-procm	sSPfn	/usr/local/bin/procmail		procmail -a $h -d $u
+procm	sSPfn	/usr/bin/procmail		procmail -a $h -d $u
 #		# Procmail example from: Ken Pizzini <ken@spry.com>
 #
 #prog	-	/bin/sh				sh -c $u
===zmailer-procmail+conf.patch===

===zmailer.spec===
Summary: High performance, secure mail delivery agent
Name: zmailer
Version: 2.99.49p8
Release: 3
Source: ftp://ftp.funet.fi/pub/unix/mail/zmailer/zmailer-2.99.49p8.tar.gz
Source1: zmailer-noipv6.cache
Patch1: zmailer-initscript.patch
Patch2: zmailer-procmail+conf.patch
Copyright: GPL
Group: Daemons
Provides: smtpdaemon
AutoReqProv: no
#BuildRoot: /tmp/zmailer-root
%description
This is a package that implements an internet message transfer agent
called ZMailer. It is intended for gateways or mail servers or other large
site environments that have extreme demands on the abilities of the
mailer. It was motivated by the problems of the Sendmail design in such
situations.

%prep
%setup -n zmailer-2.99.49p8
%patch1 -p1
%patch2 -p1 -b .sopwith

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
	--includedir=/usr/include \
	--libdir=/usr/lib \
	--with-mailbox=/var/spool/mail \
	--with-logdir=/var/log/mail \
	--with-zconfig=/etc/zmailer/zmailer.conf \
	--with-mailshare=/etc/zmailer \
	--with-tcp-wrappers=/usr \
	--with-system-malloc \
	--with-sendmailpath=/usr/sbin/sendmail \
	--with-rmailpath=/usr/sbin/rmail \
	--with-mailbin=/usr/sbin \
	--with-mailvar=/etc/zmailer \
	--with-postoffice=/var/spool/postoffice \
	--with-ta-mmap
make

%install
touch proto/forms/*
make install

strip /usr/sbin/rmail \
	/usr/sbin/sendmail \
	/usr/sbin/router \
	/usr/sbin/mailq \
	/usr/sbin/scheduler \
	/usr/sbin/smtpserver \
	/usr/sbin/ta/errormail \
	/usr/sbin/ta/mailbox \
	/usr/sbin/ta/hold \
	/usr/sbin/ta/sm \
	/usr/sbin/ta/smtp \
	/usr/sbin/mprobe \
	/usr/sbin/makedb \
	/usr/sbin/dblook \
	/usr/sbin/vacation.exe || :

make -C man install
ln -sf zmailer/db/aliases /etc/aliases
mv /etc/zmailer/db/localnames /etc/zmailer/db/localnames-dist
echo "localhost" > /etc/zmailer/db/localnames
mkdir -p /var/log/mail
#ln -s cf/SMTP+UUCP.cf /etc/zmailer/router.cf

cat > /etc/mail.conf <<EOF
# Where am I?
#orgdomain=domain
# Who am I?
#hostname=host.subdomain.$orgdomain
# Who do I claim to be?
#mydomain=subdomain.$orgdomain
EOF
install -m755 utils/zmailer.init.sh /etc/rc.d/init.d/zmailer.init
for I in 0 1 6; do
	ln -sf ../init.d/zmailer.init /etc/rc.d/rc$I.d/K20zmailer
done
for I in 2 3 5; do
	ln -sf ../init.d/zmailer.init /etc/rc.d/rc$I.d/S80zmailer
done
. /etc/zmailer/zmailer.conf
cat << EOF > /etc/cron.daily/zmailer.cleanup
#!/bin/sh
. /etc/zmailer/zmailer.conf
$MAILBIN/zmailer cleanup
EOF
cat << EOF > /etc/cron.daily/zmailer.resubmit
#!/bin/sh
. /etc/zmailer/zmailer.conf
$MAILBIN/zmailer resubmit
EOF
chmod 755 /etc/cron.daily/zmailer.cleanup /etc/cron.daily/zmailer.resubmit
(cd /etc; chgrp -R zmailer zmailer);
(cd /var/log; chgrp -R zmailer mail);

%post
if grep -c "^hostname=" /etc/mail.conf; then
	:
else
	[ -z "`hostname -d`" ] || echo "orgdomain=`hostname -d`" >> /etc/mail.conf
	[ -z "`hostname -d`" ] || echo "mydomain=`hostname -d`" >> /etc/mail.conf
	[ -z "`hostname -f`" ] || echo "hostname=`hostname -f`" >> /etc/mail.conf
fi
if grep -c "^zmailer:" /etc/group; then
	:
else
	# Use 'mail' group for zmailer...
	echo "zmailer::12:root,daemon,uucp" >> /etc/group
fi
if grep -c "^mailq " /etc/services; then
	:
else
	echo "mailq       174/tcp	# Mailer transport queue" >> /etc/services
fi
/usr/sbin/newaliases
/usr/sbin/newfqdnaliases
echo "`hostname -f`" >> /etc/zmailer/db/localnames
echo "`hostname`" >> /etc/zmailer/db/localnames
echo "`hostname -d`" >> /etc/zmailer/db/localnames
echo "localhost.`hostname -d`" >> /etc/zmailer/db/localnames
if [ "$1" != 1 ]; then
	# Start it back up again, after an upgrade
	/etc/rc.d/init.d/zmailer.init start
fi

%preun
/etc/rc.d/init.d/zmailer.init stop

%files
/usr/sbin/mailrm
/usr/sbin/newaliases
/usr/sbin/newfqdnaliases
/usr/sbin/zmailer
/usr/sbin/rmail
/usr/sbin/sendmail
/usr/sbin/router
/usr/sbin/mailq
/usr/sbin/scheduler
/usr/sbin/smtpserver
/usr/sbin/mprobe
/usr/sbin/makedb
/usr/sbin/dblook
/usr/sbin/vacation.sh
/usr/sbin/vacation
/usr/sbin/vacation.exe
%dir /usr/sbin/ta
/usr/sbin/ta/errormail
/usr/sbin/ta/mailbox
/usr/sbin/ta/hold
/usr/sbin/ta/sm
/usr/sbin/ta/smtp
/usr/sbin/ta/bitbucket
/usr/sbin/ta/expirer
/usr/man/man8/errormail.8
/usr/man/man8/hold.8
/usr/man/man3/zmailer.3
/usr/man/man8/mailbox.8
/usr/man/man1/mailq.1
/usr/man/man1/mailrm.1
/usr/man/man1/newaliases.1
/usr/man/man1/rmail.1
/usr/man/man1/vacation.1
/usr/man/man8/router.8
/usr/man/man8/scheduler.8
/usr/man/man8/sendmail.8
/usr/man/man8/sm.8
/usr/man/man8/smtp.8
/usr/man/man8/smtpserver.8
/usr/man/man1/ssl.1
/usr/man/man1/zmailer.1
/usr/man/man1/zmsh.1
%dir /etc/zmailer
%config /etc/zmailer/zmailer.conf
%dir /etc/zmailer/lists
%dir /etc/zmailer/db
%config /etc/zmailer/db/*
/etc/aliases
%dir /var/log/mail
/var/spool/postoffice
%dir /var/spool/mail
%config /etc/zmailer/router.cf
%config /etc/zmailer/scheduler.conf
%config /etc/zmailer/sm.conf
%config /etc/zmailer/vacation.msg
%dir /etc/zmailer/forms
%config /etc/zmailer/forms/*
%dir /etc/zmailer/cf
%config /etc/zmailer/cf/*
%doc TODO ChangeLog INSTALL README* Overview doc
%config /etc/mail.conf
%config /etc/cron.daily/zmailer.cleanup
%config /etc/cron.daily/zmailer.resubmit
%config /etc/rc.d/init.d/zmailer.init
/etc/rc.d/rc0.d/K20zmailer
/etc/rc.d/rc1.d/K20zmailer
/etc/rc.d/rc6.d/K20zmailer
/etc/rc.d/rc2.d/S80zmailer
/etc/rc.d/rc3.d/S80zmailer
/etc/rc.d/rc5.d/S80zmailer
===zmailer.spec===

