Debian Patches

Status for postfix/3.9.1-7

Patch Description Author Forwarded Bugs Origin Last update
debian-run-configure-instance-from-create-missing.patch run debian-specific configure-instance script from post-install create-missingTue, 17 Dec 2024 09:48:32 +0300

Run debian-provided (mostly chroot setup) script from
`post-install create-missing`, which is run when starting
a postfix instance.

diff --git a/conf/post-install b/conf/post-install
Michael Tokarev <mjt@tls.msk.ru not-needed
03_ldap3_by_default.diff Set default LDAP protocol version to 3=================================================================== LaMont Jones <lamont@debian.org> not-needed
05_debian_defaults.diff Set Debian specific defaults
diff --git a/conf/main.cf b/conf/main.cf
LaMont Jones <lamont@debian.org> not-needed
05_debian_readme_differences.diff Update postfix-files for Debian readme file naming specifics=================================================================== Scott Kitterman <scott@kitterman.com> not-needed
06_debian_paths.diff Set paths for Debian=================================================================== LaMont Jones <lamont@debian.org> not-needed
10_openssl_version_check.diff Disable openssl version check=================================================================== LaMont Jones <lamont@debian.org> not-needed
40_chroot_by_default.diff Set chroot to default enabled=================================================================== LaMont Jones <lamont@debian.org> not-needed
41_rmail.diff Use sendmail's rmail=================================================================== LaMont Jones <lamont@debian.org> not-needed
50_LANG.diff Set LANG=C for HTML documentation build=================================================================== LaMont Jones <lamont@debian.org> not-needed
71_debianize_collate.pl.diff Debianize collate.pl so we can ship it in the package=================================================================== Scott Kitterman <scott@kitterman.com> not-needed 2022-01-04
Disable-LD_LIBRARY_PATH-check.patch Disable LD_LIBRARY_PATH check
Conflicts with building with eatmydata (e.g. in salsa-ci).
=?utf-8?q?Christian_G=C3=B6ttsche?= <cgzones@googlemail.com> not-needed 2022-10-09
reproducible Reproducible
Need to sort auxlibs for reproducible. Missed part of upstreaming in 3.9.0.

===================================================================
Scott Kitterman <scott@kitterman.com> yes 2024-07-21
debian-re-run-startup-through-systemd.patch red-run postfix start through systemd
When `postfix start' (or `postmulti start') command is run from command line,
postfix instance is started outside a session manager such as systemd.
This is fine for traditional init-based systems, but systemd has a notion of
a service which it tracks. Postfix instance started this way line becomes
"orphaned", run within user session which started it, confuses session manager
and other tools which expexts mail service to be running.

Systemd exports $INVOCATION_ID when it starts a service. This variable can
be used as a (weak) indicator that we're running under systemd, so if it
is set, just run `master' process the usual way. But if it is not set,
and the system is running under systemd (/run/systemd/system is present),
instead of running postfix master process directly, we run the systemd
service which corresponds to this instance. Which, in turn, should re-run
the same `postfix' command and control will come back to this same place,
where we now start `master' the usual way.

Only the regular `start' command is handled. All other commands, including
`start-fg', are not modified.

The service being started is either the main/default postfix instance, if
config_directory is /etc/postfix. Or, the service is assumed to be a path
unit after /etc/postfix-, like config directory being /etc/postfix-foo for
postfix@foo.service, or postfix@foo%2dbar-baz for config directory being
/etc/postfix-foo-bar/baz (see man:systemd-escape for details on the naming).
Other config directories (not prefixed with /etc/postfix-) are not rescheduled
through systemd.

Currently $MAIL_VERBOSE and $MAIL_DEBUG are not passed through to the master
process started through systemd. It can be implemented if needed.

diff --git a/src/postfix/postfix.c b/src/postfix/postfix.c
Michael Tokarev <mjt@tls.msk.ru> no 2024-12-13
makedefs-fix-RELEASE_MAJOR-expression.patch makedefs: fix $RELEASE_MAJOR expression
There are 2 issues with the way RELEASE_MAJOR is currently
computed in ./makedefs. First, it is not set at all when
the system name/release are specified on the command line,
so this change moves it a few lines down.

And second, the usage of "expr" utility is wrong, as it does
not work when the system release is 0.something. Consider:

expr 0.foo : '\([0-9]*\)'

the ":" expression itself will return the first N digits,
which is "0" in this case. But the less widely known thing
about expr is that it works with numbers, not strings.
So this becomes:

expr 0

which, in turn, is false. So while expr utility will produce
"0" on output, it will ALSO exit with non-zero status. And the
next "exit 1" immediately gets in, so whole makedefs terminates.

Fix this by using sed instead of expr.

Introduced in 3.0.2.
Michael Tokarev via Postfix-users <postfix-users@postfix.org> yes 2024-12-13
hurd.patch hurd support v1
diff --git a/makedefs b/makedefs
index 1932e36d..6f251fdb 100644
Michael Tokarev <mjt@tls.msk.ru> no

All known versions for source package 'postfix'

Links