[Slackbuilds-users] OpenSMTPD 5.9.2p1

Richard richard at aaazen.com
Tue May 17 00:58:45 UTC 2016


There is a new version of OpenSMTPD 5.9.2p1 available.

https://opensmtpd.org/announces/release-5.9.2.txt

This is a major release with reliability fixes mostly.

Issues fixed in this release (since 5.7.3):
===========================================

- remove dead code
- tons of code cleanup and simplification
- tons of code adaptations to ease portability
- reduce memory usage by invalidating envelopes cache earlier
- simplify a great deal the smtp session code
- get rid of 'kick' mechanism, we'll reintroduce a better one
- all smtpd processes now use the pledge() API
- kill support for 'dbm' db type, it cannot be made to work for us
- introduce "listen on socket"
- enqueuer is now setgid to avoid attacks against offline queue [1]
- fix mailq / smtpctl show queue breakage
- plug two memory leaks and one descriptor leak
- fix error code path for delivery loop that can lead to a fatal()

[1] follow-up to the Qualys Security audit fixes from 5.7.3


Attached is a unified diff of /opensmtpd-5.7.3p2 and /opensmtpd-5.9.2p1

I have tested the 5.9.2p1 package in both Slackware 14.1 and current and it runs fine.

--
Richard Narron
-------------- next part --------------
diff -u -r opensmtpd-5.7.3p2/README opensmtpd-5.9.2p1/README
--- opensmtpd-5.7.3p2/README	2013-12-14 09:05:47.000000000 -0800
+++ opensmtpd-5.9.2p1/README	2016-05-16 16:48:11.983971604 -0700
@@ -5,6 +5,7 @@
 
 You must have smtpd and smtpq users and groups on the system for
 privilege separation - something like this should suffice:
+
   groupadd -g 270 smtpd
   useradd -u 270 -g 270 -r -s /bin/false -d /var/empty smtpd
   groupadd -g 271 smtpq
@@ -17,3 +18,10 @@
 This package conflicts with the stock sendmail package included in
 Slackware and overwrites some of its files, so remove the sendmail
 package before installing opensmtpd.
+
+In the change from version 5.7.3p2 to 5.9.2p1 the ownership and permissions
+changed for the /var/spool/offline directory
+
+  chown -R root:smtpq /var/spool/offline
+  chmod 770           /var/spool/offline
+
Only in opensmtpd-5.7.3p2: configure.diff
diff -u -r opensmtpd-5.7.3p2/opensmtpd.SlackBuild opensmtpd-5.9.2p1/opensmtpd.SlackBuild
--- opensmtpd-5.7.3p2/opensmtpd.SlackBuild	2016-02-03 10:53:26.000000000 -0800
+++ opensmtpd-5.9.2p1/opensmtpd.SlackBuild	2016-05-16 16:43:26.167976182 -0700
@@ -24,7 +24,7 @@
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=opensmtpd
-VERSION=${VERSION:-5.7.3p2}
+VERSION=${VERSION:-5.9.2p1}
 EXTRAS=${EXTRAS:-5.7.1}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
@@ -85,6 +85,7 @@
 rm -rf             $PRGNAM-$VERSION
 tar xvf       $CWD/$PRGNAM-$VERSION.tar.gz
 cd                 $PRGNAM-$VERSION
+
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -92,8 +93,6 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
-patch -p0 <$CWD/configure.diff
-
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
@@ -101,16 +100,17 @@
   --libdir=/usr/lib${LIBDIRSUFFIX} \
   --sysconfdir=/etc/opensmtpd \
   --localstatedir=/var \
-  --with-sock-dir=/var/run \
+  --with-path-socket=/var/run \
   --mandir=/usr/man \
   --with-mantype=doc \
   --docdir=/usr/doc/$PRGNAM-$VERSION \
   --without-rpath \
-  --with-maildir=/var/spool/mail \
-  --with-privsep-user=smtpd \
-  --with-queue-user=smtpq \
-  --with-ca-file=/etc/ssl/certs/ca-certificates.crt \
-  --enable-table-db \
+  --with-path-mbox=/var/spool/mail \
+  --with-user-smtpd=smtpd \
+  --with-user-queue=smtpq \
+  --with-group-queue=smtpq \
+  --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
+  --with-table-db \
   --build=$ARCH-slackware-linux
 
 make
@@ -124,9 +124,10 @@
 ln -s smtpctl $PKG/usr/sbin/sendmail
 ln -s ../sbin/sendmail $PKG/usr/bin/sendmail
 
-rm -f $PKG/usr/sbin/mailq $PKG/usr/sbin/newaliases
-ln -s makemap $PKG/usr/sbin/newaliases
+rm -f $PKG/usr/sbin/mailq $PKG/usr/sbin/newaliases $PKG/usr/sbin/makemap
 ln -s smtpctl $PKG/usr/sbin/mailq
+ln -s smtpctl $PKG/usr/sbin/newaliases
+ln -s smtpctl $PKG/usr/sbin/makemap
 
 mkdir -p $PKG/etc/rc.d
 cat $CWD/rc.opensmtpd > $PKG/etc/rc.d/rc.opensmtpd.new
@@ -144,6 +145,7 @@
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a INSTALL LICENSE README.md THANKS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README             > $PKG/usr/doc/$PRGNAM-$VERSION/README
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
 mkdir -p $PKG/install
@@ -151,4 +153,4 @@
 cat $CWD/doinst.sh > $PKG/install/doinst.sh
 
 cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -p -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff -u -r opensmtpd-5.7.3p2/opensmtpd.info opensmtpd-5.9.2p1/opensmtpd.info
--- opensmtpd-5.7.3p2/opensmtpd.info	2016-02-02 11:14:13.315111387 -0800
+++ opensmtpd-5.9.2p1/opensmtpd.info	2016-05-16 15:35:04.446041883 -0700
@@ -1,8 +1,8 @@
 PRGNAM="opensmtpd"
-VERSION="5.7.3p2"
+VERSION="5.9.2p1"
 HOMEPAGE="http://www.opensmtpd.org/"
-DOWNLOAD="http://www.opensmtpd.org/archives/opensmtpd-5.7.3p2.tar.gz"
-MD5SUM="85bdccf1f28945771f79fd33e893cc43"
+DOWNLOAD="https://www.opensmtpd.org/archives/opensmtpd-5.9.2p1.tar.gz"
+MD5SUM="d109374dcc4bc8be14f790b859f1dd31"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES="libasr"


More information about the SlackBuilds-users mailing list