--- notqmail-dkim-spf.orig/debian/changelog
+++ notqmail-dkim-spf/debian/changelog
@@ -0,0 +1,24 @@
+notqmail-dkim-spf (1.1-1+33.11) unstable; urgency=medium
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sat, 11 Jul 2026 11:57:36 +0000
+
+notqmail-dkim-spf (1.1) unstable; urgency=medium
+
+  * spf-dkim patch
+  * honor all groups of qmailr user when spawning qmail-rspawn
+  * code: netstring parsing in qmail-qmtpd & qmail-qmqpd now checks that the netstring length is actually a number.
+  * code: remove register storage class declaration from codebase.
+  * bug: in qmail-remote, handle DNS packets up to max EDNS response size.
+  * code: extend qmail-queue(8) interface so a custom rejection message can be communicated to the caller.
+  * code: add instqueue for packagers, extracted from instpackage.
+  * avoid sending CRCRLF in qmail-remote if input contains CRLF
+  * remove maildirwatch
+  * stop rewriting RCPT TO: domains when they are a CNAME (RFC 5321 5.1)
+  * doc: give text files .md extensions.
+  * cleanup: remove qsmhook, replaced by preline.
+  * remove wrappers for obsolete mail clients without maildir support
+  * Run an alternate qmail-remote by setting QMAILREMOTE in qmail-send's environment.
+
+ -- notqmail <packages@notqmail.org>  Sat, 23 May 2020 08:33:30 +0200
--- notqmail-dkim-spf.orig/debian/compat
+++ notqmail-dkim-spf/debian/compat
@@ -0,0 +1,1 @@
+10
--- notqmail-dkim-spf.orig/debian/control
+++ notqmail-dkim-spf/debian/control
@@ -0,0 +1,16 @@
+Source: notqmail-dkim-spf
+Section: mail
+Priority: extra
+Maintainer: mbhangui <mbhangui@gmail.com>
+Standards-Version: 3.9.1
+Homepage: https://github.com/notqmail/notqmail
+
+Package: notqmail-dkim-spf
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, net-tools, coreutils
+Provides: default-mta, mail-transport-agent
+Description: notqmail is a community-driven fork of qmail, beginning where netqmail
+ left off: providing stable, compatible, small releases to which existing
+ qmail users can safely update.
+ notqmail also aims higher: developing an extensible, easily packaged, and
+ increasingly useful modern mail server.
--- notqmail-dkim-spf.orig/debian/copyright
+++ notqmail-dkim-spf/debian/copyright
@@ -0,0 +1,49 @@
+netqmail-1.04
+-------------
+No copyright is claimed by the distributors of netqmail for changes from
+qmail 1.03 to netqmail 1.04.
+NOTE: netqmail 1.04 is a community-assembled distribution of qmail from
+the official qmail-1.03.tar.gz and patches approved by the community.
+D. J. Bernstein did not participate in, nor has he been asked to approve
+of this distribution.
+
+netqmail-1.05
+-------------
+James Craig Burley claims copyright on the qmail-isoc patch. See the file
+
+    old-patches/qmail-isoc.patch
+
+for details on James' copyright claim and distribution license.
+
+James' patch has been combined with the original netqmail-1.04 patch
+and the result incorporated into a unified netqmail-1.05 patch.
+
+Apart from James' copyrights, no other copyright is claimed by the
+distributors of netqmail for changes from qmail 1.03 to netqmail 1.05.
+
+NOTE: netqmail 1.05 is a community-assembled distribution of qmail from
+the official qmail-1.03.tar.gz and patches approved by the community.
+D. J. Bernstein did not participate in, nor has he been asked to approve
+of this distribution.
+
+netqmail-1.06
+-------------
+The same copyright information as netqmail-1.05 applies to netqmail-1.06
+with the addition of D. J. Bernstein's dedication of qmail to the public
+domain.
+
+notqmail-1.07
+-------------
+No copyright is claimed by the distributors of notqmail for changes from
+netqmail 1.06 to notqmail 1.07.
+NOTE: notqmail 1.07 is a community-driven fork of qmail.
+Neither D. J. Bernstein nor any of the netqmail developers has
+participated in or been asked to approve of this distribution.
+
+notqmail-1.08
+-------------
+No copyright is claimed by the distributors of notqmail for changes from
+netqmail 1.07 to notqmail 1.08.
+NOTE: notqmail 1.08 is a community-driven fork of qmail.
+Neither D. J. Bernstein nor any of the netqmail developers has
+participated in or been asked to approve of this distribution.
--- notqmail-dkim-spf.orig/debian/docs
+++ notqmail-dkim-spf/debian/docs
@@ -0,0 +1,1 @@
+doc/*
--- notqmail-dkim-spf.orig/debian/notqmail-dkim-spf.install
+++ notqmail-dkim-spf/debian/notqmail-dkim-spf.install
@@ -0,0 +1,1 @@
+var/qmail /var
--- notqmail-dkim-spf.orig/debian/postinst
+++ notqmail-dkim-spf/debian/postinst
@@ -0,0 +1,94 @@
+#!/bin/sh
+# postinst script for notqmail
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+qmaildir=/var/qmail
+logdir=/var/log/svc
+####################################
+
+case "$1" in
+    configure)
+		if [ " $2" = " " ] ; then
+			echo "installing notqmail"
+			upgrade=0
+		else
+			echo "upgrading notqmail $2"
+			upgrade=1
+		fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+	exit 0
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+# notqmail.upgrade/notqmail.install are created
+# by the preinst script
+if [ $upgrade -eq 1 ] ; then # upgrade
+	if [ -f ${qmaildir}/bin/instchown ] ; then
+		# required because on debian you lose the setuid bit of qmail-queue
+		# and the proper permissions of files in /var/qmail/queue
+		echo "Checking Installed Permissions"
+		${qmaildir}/bin/instchown > /dev/null 2>&1 || true
+	fi
+  exit 0
+fi
+
+echo "Post Installation..."
+echo "Creating ${logdir}"
+/bin/mkdir -p ${logdir}
+/bin/chown -R qmaill:nofiles ${logdir}
+
+echo "Checking Installed Permissions"
+if [ -f ${qmaildir}/bin/instchown ] ; then
+	${qmaildir}/bin/instchown || true
+fi
+dpkg-statoverride --list ${qmaildir}/bin/qmail-queue >/dev/null ||
+	dpkg-statoverride --update --add qmailq qmail 4711 ${qmaildir}/bin/qmail-queue
+if [ ! -f ${qmaildir}/control/me ] ; then
+	echo "Creating ${qmaildir}/control/me"
+	uname -n > ${qmaildir}/control/me
+fi
+
+# setup notqmail as an alternative mta
+update-alternatives --install /usr/sbin/sendmail mta /var/qmail/bin/sendmail 120 \
+	--slave /usr/lib/sendmail mta-sendmail /var/qmail/bin/sendmail
+
+# Create aliases if they do not exist
+mkdir -p  ${qmaildir}/alias/Maildir/new
+mkdir -p  ${qmaildir}/alias/Maildir/cur
+mkdir -p  ${qmaildir}/alias/Maildir/tmp
+chown -R alias:qmail ${qmaildir}/alias/Maildir
+for i in postmaster mailer-daemon root
+do
+  if [ ! -f ${qmaildir}/alias/.qmail-"$i" ] ; then
+    echo "${qmaildir}/alias/Maildir/" > ${qmaildir}/alias/.qmail-"$i"
+  fi
+done
+
+exit 0
--- notqmail-dkim-spf.orig/debian/postrm
+++ notqmail-dkim-spf/debian/postrm
@@ -0,0 +1,89 @@
+#!/bin/sh
+# postrm script for notqmail
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+qmaildir=/var/qmail
+logdir=/var/log/svc
+####################################
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+# we are doing upgrade or removal
+if [ " $1" = " upgrade" ] ; then
+	if [ ! "${prefix}" = "/usr" ] ; then
+		echo "recreating ld.so cache"
+		/sbin/ldconfig
+	fi
+	exit 0
+fi
+
+case "$1" in
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+	exit 0
+    ;;
+esac
+#
+# Debian silliness
+#
+if [ " $1" = " purge" ] ; then
+	update-alternatives --remove mta ${qmaildir}/bin/sendmail || true
+	update-alternatives --auto mta || true
+	for i in alias qmaild qmaill qmailp qmailq qmailr qmails
+	do
+		echo "removing user $i"
+		/usr/bin/getent passwd $i > /dev/null && /usr/sbin/userdel $i >/dev/null || true
+	done
+	for i in nofiles qmail
+	do
+		echo "removing group $i"
+		/usr/bin/getent group $i > /dev/null && /usr/sbin/groupdel $i  >/dev/null || true
+	done
+
+	echo "removing aliases postmaster, mailer-daemon, root"
+	for i in postmaster mailer-daemon root
+	do
+		rm -f ${qmaildir}/alias/.qmail-"$i"
+	done
+	rm -rf ${qmaildir}/Maildir ${qmaildir}/alias/Maildir
+	if [ -d ${qmaildir}/alias ] ; then
+		rmdir --ignore-fail-on-non-empty ${qmaildir}/alias 2>/dev/null || true
+	fi
+	if [ -h ${logdir} ] ; then
+		log_dir=`readlink $logdir`
+	else
+		log_dir=${logdir}
+	fi
+	[ "$log_dir" != "/" ] && rm -fr $log_dir
+	dpkg-statoverride --remove ${qmaildir}/bin/qmail-queue || true
+fi
+exit 0
--- notqmail-dkim-spf.orig/debian/preinst
+++ notqmail-dkim-spf/debian/preinst
@@ -0,0 +1,62 @@
+#!/bin/sh
+# preinst script for notqmail
+#
+# see: dh_installdeb(1)
+
+set -e
+qmaildir=/var/qmail
+logdir=/var/log/svc
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+case "$1" in
+    install|upgrade)
+	if [ " $1" = " upgrade" ] ; then
+		exit 0
+	fi
+	#
+	# Create a users and groups. Do not report any problems if they already
+	# exists.
+	#
+	echo "Adding notqmail users/groups"
+	addgroup -q --system nofiles
+	addgroup -q --system qmail
+	
+	for i in alias qmaild qmaill qmailp qmailq qmailr qmails
+	do
+		rm -f /var/spool/mail/$i
+	done
+
+	mkdir -p ${qmaildir}/alias
+	mkdir -p ${logdir}
+	adduser -q --system --disabled-login --home ${qmaildir}/alias --no-create-home --ingroup nofiles alias
+	adduser -q --system --disabled-login --home ${qmaildir}       --no-create-home --ingroup nofiles qmaild
+	adduser -q --system --disabled-login --home ${logdir}         --no-create-home --ingroup nofiles qmaill
+	adduser -q --system --disabled-login --home ${qmaildir}       --no-create-home --ingroup nofiles qmailp
+	adduser -q --system --disabled-login --home ${qmaildir}       --no-create-home --ingroup qmail   qmailq
+	adduser -q --system --disabled-login --home ${qmaildir}       --no-create-home --ingroup qmail   qmailr
+	adduser -q --system --disabled-login --home ${qmaildir}       --no-create-home --ingroup qmail   qmails
+	chown qmaill:nofiles ${logdir}
+	;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- notqmail-dkim-spf.orig/debian/rules
+++ notqmail-dkim-spf/debian/rules
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+# export DH_COMPAT=4
+CFLAGS=-g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0 -fno-strict-aliasing -Wno-unused-result -Wno-unused-result
+else
+	CFLAGS += -O2 -fno-strict-aliasing -Wno-unused-result -Wno-unused-result
+endif
+
+qmaildir=/var/qmail
+mandir=$(qmaildir)/man
+
+DESTDIR=$(CURDIR)/debian/notqmail.tmp
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	#
+	# Extract source archives
+	#
+	#
+	# run configure script
+	#
+	#
+	# run make
+	#
+	echo "cc -g -O2 -fPIC" > conf-cc
+	echo "cc -fPIE -pie"   > conf-ld
+	if [ -f ../SOURCES/notqmail.patch ] ; then patch -p1 < ../SOURCES/notqmail.patch; fi
+	$(MAKE) -s it man
+	touch build-stamp
+
+clean:
+	rm -f build-stamp configure-stamp
+	rm -rf $(DESTDIR)
+	$(MAKE) -s clean
+	dh_testdir
+	dh_testroot
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep || dh_clean -k
+	dh_installdirs
+	env DESTDIR=$(DESTDIR) ./instpackage
+	cp instchown $(DESTDIR)$(qmaildir)/bin
+	$(MAKE) -s qmail-send.service
+	$(MAKE) -s qmail-smtpd.service
+	# do this for dh_installdocs
+	mv $(DESTDIR)$(qmaildir)/doc doc
+	ln -s /usr/share/doc/notqmail-dkim-spf $(DESTDIR)$(qmaildir)/doc
+	cp qmail-send.service debian/notqmail-dkim-spf.service
+	cp qmail-smtpd.service debian/notqmail-smtpd.service
+	if [ -x /usr/bin/dh_installsystemd ] ; then \
+		dh_installsystemd --no-enable --no-start; \
+        dh_installsystemd --name=notqmail-smtpd --no-enable --no-start; \
+	elif [ -x /usr/bin/dh_installinit ] ; then \
+		dh_installinit --no-enable --no-start ||  \
+		dh_installinit --name=notqmail-smtpd --no-enable --no-start ||  \
+		dh_installinit --no-start; \
+	else \
+		mv debian/notqmail-dkim-spf.service $(DESTDIR)$(qmaildir)/boot ; \
+	fi
+	rm -rf $(DESTDIR)$(mandir)/man3
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	#find $(DESTDIR)$(mandir) -name '*'.? -type f -exec gzip -q {} \;
+	dh_install --sourcedir=$(DESTDIR) -pnotqmail-dkim-spf
+	dh_installchangelogs
+	dh_installcron
+	dh_installdocs
+	dh_link
+	dh_strip
+	dh_fixperms
+	dh_installdeb
+	dh_makeshlibs -V
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here. 
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- notqmail-dkim-spf.orig/debian/source/format
+++ notqmail-dkim-spf/debian/source/format
@@ -0,0 +1,1 @@
+3.0 (quilt)
