From 4696dacc7e460a5c41fd10206b11a8b0ef8e8550 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 29 Nov 2025 12:48:16 +0100 Subject: [PATCH] - updated to 3.10.6 --- postfix-config.patch | 65 +++++++++++++++++++++----------------------- postfix.spec | 4 +-- 2 files changed, 33 insertions(+), 36 deletions(-) diff --git a/postfix-config.patch b/postfix-config.patch index f77368d..3850268 100644 --- a/postfix-config.patch +++ b/postfix-config.patch @@ -1,7 +1,7 @@ -diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf ---- postfix-3.7.0.org/conf/main.cf 2021-12-22 23:49:37.000000000 +0100 -+++ postfix-3.7.0/conf/main.cf 2022-04-04 19:57:04.594313194 +0200 -@@ -62,7 +62,7 @@ command_directory = /usr/sbin +diff -ur postfix-3.10.6.orig/conf/main.cf postfix-3.10.6/conf/main.cf +--- postfix-3.10.6.orig/conf/main.cf 2025-10-23 21:51:44.000000000 +0200 ++++ postfix-3.10.6/conf/main.cf 2025-11-29 12:45:04.962284755 +0100 +@@ -62,7 +62,7 @@ # daemon programs (i.e. programs listed in the master.cf file). This # directory must be owned by root. # @@ -10,7 +10,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf # The data_directory parameter specifies the location of Postfix-writable # data files (caches, random numbers). This directory must be owned -@@ -86,7 +86,7 @@ mail_owner = postfix +@@ -86,7 +86,7 @@ # These rights are used in the absence of a recipient user context. # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. # @@ -19,7 +19,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf # INTERNET HOST AND DOMAIN NAMES # -@@ -118,7 +118,7 @@ mail_owner = postfix +@@ -118,7 +118,7 @@ # myorigin also specifies the default domain name that is appended # to recipient addresses that have no @domain part. # @@ -28,7 +28,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf #myorigin = $mydomain # RECEIVING MAIL -@@ -407,7 +407,7 @@ unknown_local_recipient_reject_code = 55 +@@ -407,7 +407,7 @@ # "postfix reload" to eliminate the delay. # #alias_maps = dbm:/etc/aliases @@ -37,7 +37,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf #alias_maps = hash:/etc/aliases, nis:mail.aliases #alias_maps = netinfo:/aliases -@@ -418,7 +418,7 @@ unknown_local_recipient_reject_code = 55 +@@ -418,7 +418,7 @@ # #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases @@ -46,7 +46,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases # ADDRESS EXTENSIONS (e.g., user+foo) -@@ -446,7 +446,7 @@ unknown_local_recipient_reject_code = 55 +@@ -446,7 +446,7 @@ # UNIX-style mailboxes are kept. The default setting depends on the # system type. # @@ -55,7 +55,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf #mail_spool_directory = /var/spool/mail # The mailbox_command parameter specifies the optional external -@@ -468,8 +468,8 @@ unknown_local_recipient_reject_code = 55 +@@ -468,8 +468,8 @@ # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER. # @@ -66,12 +66,7 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf # The mailbox_transport specifies the optional transport in master.cf # to use after processing aliases and .forward files. This parameter -@@ -641,45 +641,24 @@ debugger_command = - # -dmS $process_name gdb $daemon_directory/$process_name - # $process_id & sleep 1 - -+biff = no -+ +@@ -644,44 +644,22 @@ # INSTALL-TIME CONFIGURATION INFORMATION # # The following parameters are used when installing a new Postfix version. @@ -99,32 +94,34 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf +setgid_group = maildrop -# html_directory: The location of the Postfix HTML documentation. --# ++# The unknown_address_reject_code parameter specifies the SMTP server ++# response when a client violates the reject_unknown_sender_domain ++# or reject_unknown_recipient_domain restrictions. + # -html_directory = - -# manpage_directory: The location of the Postfix on-line manual pages. --# ++# Contrary to what Wietse thinks (450) this should be 550 + # -manpage_directory = -+inet_protocols = ipv4 ++unknown_address_reject_code = 550 -# sample_directory: The location of the Postfix sample configuration files. -# This parameter is obsolete as of Postfix 2.1. -+# The unknown_address_reject_code parameter specifies the SMTP server -+# response when a client violates the reject_unknown_sender_domain -+# or reject_unknown_recipient_domain restrictions. - # +-# -sample_directory = - -# readme_directory: The location of the Postfix README files. -+# Contrary to what Wietse thinks (450) this should be 550 - # +-# -readme_directory = --inet_protocols = ipv4 -+unknown_address_reject_code = 550 -diff -urNp -x '*.orig' postfix-3.7.0.org/src/global/mail_params.h postfix-3.7.0/src/global/mail_params.h ---- postfix-3.7.0.org/src/global/mail_params.h 2022-01-24 01:03:32.000000000 +0100 -+++ postfix-3.7.0/src/global/mail_params.h 2022-04-04 19:57:04.594313194 +0200 -@@ -107,7 +107,7 @@ extern uid_t var_owner_uid; ++biff = no + inet_protocols = ipv4 + shlib_directory = /usr/lib/postfix/${mail_version} + meta_directory = /etc/postfix +diff -ur postfix-3.10.6.orig/src/global/mail_params.h postfix-3.10.6/src/global/mail_params.h +--- postfix-3.10.6.orig/src/global/mail_params.h 2025-10-24 16:41:15.000000000 +0200 ++++ postfix-3.10.6/src/global/mail_params.h 2025-11-29 12:43:48.478151951 +0100 +@@ -107,7 +107,7 @@ extern gid_t var_owner_gid; #define VAR_SGID_GROUP "setgid_group" @@ -133,9 +130,9 @@ diff -urNp -x '*.orig' postfix-3.7.0.org/src/global/mail_params.h postfix-3.7.0/ extern char *var_sgid_group; extern gid_t var_sgid_gid; -diff -urNp -x '*.orig' postfix-3.7.0.org/src/util/sys_defs.h postfix-3.7.0/src/util/sys_defs.h ---- postfix-3.7.0.org/src/util/sys_defs.h 2021-12-05 19:59:27.000000000 +0100 -+++ postfix-3.7.0/src/util/sys_defs.h 2022-04-04 19:57:04.595313196 +0200 +diff -ur postfix-3.10.6.orig/src/util/sys_defs.h postfix-3.10.6/src/util/sys_defs.h +--- postfix-3.10.6.orig/src/util/sys_defs.h 2025-01-03 19:19:26.000000000 +0100 ++++ postfix-3.10.6/src/util/sys_defs.h 2025-11-29 12:43:48.482151958 +0100 @@ -61,7 +61,7 @@ #define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/mail/aliases" /* OpenBSD 2.7 */ #endif diff --git a/postfix.spec b/postfix.spec index 3311f1d..672f9c4 100644 --- a/postfix.spec +++ b/postfix.spec @@ -18,13 +18,13 @@ Summary(pl.UTF-8): Serwer SMTP Postfix Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho Summary(sk.UTF-8): Agent prenosu pošty Postfix Name: postfix -Version: 3.10.4 +Version: 3.10.6 Release: 1 Epoch: 2 License: distributable Group: Networking/Daemons/SMTP Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz -# Source0-md5: c9f472fe0455eff7a8334479fb0f1154 +# Source0-md5: 6dc17ebb8b25df313433573155dd9b08 Source1: %{name}.aliases Source2: %{name}.cron Source3: %{name}.init -- 2.51.0