1 diff -urNp -x '*.orig' postfix-3.7.0.org/conf/main.cf postfix-3.7.0/conf/main.cf
2 --- postfix-3.7.0.org/conf/main.cf 2021-12-22 23:49:37.000000000 +0100
3 +++ postfix-3.7.0/conf/main.cf 2022-04-04 19:57:04.594313194 +0200
4 @@ -62,7 +62,7 @@ command_directory = /usr/sbin
5 # daemon programs (i.e. programs listed in the master.cf file). This
6 # directory must be owned by root.
8 -daemon_directory = /usr/libexec/postfix
9 +daemon_directory = /usr/lib/postfix
11 # The data_directory parameter specifies the location of Postfix-writable
12 # data files (caches, random numbers). This directory must be owned
13 @@ -86,7 +86,7 @@ mail_owner = postfix
14 # These rights are used in the absence of a recipient user context.
15 # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
17 -#default_privs = nobody
18 +default_privs = nobody
20 # INTERNET HOST AND DOMAIN NAMES
22 @@ -118,7 +118,7 @@ mail_owner = postfix
23 # myorigin also specifies the default domain name that is appended
24 # to recipient addresses that have no @domain part.
26 -#myorigin = $myhostname
27 +myorigin = $myhostname
31 @@ -407,7 +407,7 @@ unknown_local_recipient_reject_code = 55
32 # "postfix reload" to eliminate the delay.
34 #alias_maps = dbm:/etc/aliases
35 -#alias_maps = hash:/etc/aliases
36 +alias_maps = hash:/etc/postfix/aliases
37 #alias_maps = hash:/etc/aliases, nis:mail.aliases
38 #alias_maps = netinfo:/aliases
40 @@ -418,7 +418,7 @@ unknown_local_recipient_reject_code = 55
42 #alias_database = dbm:/etc/aliases
43 #alias_database = dbm:/etc/mail/aliases
44 -#alias_database = hash:/etc/aliases
45 +alias_database = hash:/etc/postfix/aliases
46 #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
48 # ADDRESS EXTENSIONS (e.g., user+foo)
49 @@ -446,7 +446,7 @@ unknown_local_recipient_reject_code = 55
50 # UNIX-style mailboxes are kept. The default setting depends on the
53 -#mail_spool_directory = /var/mail
54 +mail_spool_directory = /var/mail
55 #mail_spool_directory = /var/spool/mail
57 # The mailbox_command parameter specifies the optional external
58 @@ -468,8 +468,8 @@ unknown_local_recipient_reject_code = 55
59 # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
60 # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
62 -#mailbox_command = /some/where/procmail
63 -#mailbox_command = /some/where/procmail -a "$EXTENSION"
64 +#mailbox_command = /usr/bin/procmail
65 +#mailbox_command = /usr/bin/procmail -a "$EXTENSION"
67 # The mailbox_transport specifies the optional transport in master.cf
68 # to use after processing aliases and .forward files. This parameter
69 @@ -641,45 +641,24 @@ debugger_command =
70 # -dmS $process_name gdb $daemon_directory/$process_name
71 # $process_id & sleep 1
75 # INSTALL-TIME CONFIGURATION INFORMATION
77 # The following parameters are used when installing a new Postfix version.
79 -# sendmail_path: The full pathname of the Postfix sendmail command.
80 -# This is the Sendmail-compatible mail posting interface.
84 -# newaliases_path: The full pathname of the Postfix newaliases command.
85 -# This is the Sendmail-compatible command to build alias databases.
89 -# mailq_path: The full pathname of the Postfix mailq command. This
90 -# is the Sendmail-compatible mail queue listing command.
94 # setgid_group: The group for mail submission and queue management
95 # commands. This must be a group name with a numerical group ID that
96 # is not shared with other accounts, not even with the Postfix account.
99 +setgid_group = maildrop
101 -# html_directory: The location of the Postfix HTML documentation.
105 -# manpage_directory: The location of the Postfix on-line manual pages.
108 +inet_protocols = ipv4
110 -# sample_directory: The location of the Postfix sample configuration files.
111 -# This parameter is obsolete as of Postfix 2.1.
112 +# The unknown_address_reject_code parameter specifies the SMTP server
113 +# response when a client violates the reject_unknown_sender_domain
114 +# or reject_unknown_recipient_domain restrictions.
118 -# readme_directory: The location of the Postfix README files.
119 +# Contrary to what Wietse thinks (450) this should be 550
122 -inet_protocols = ipv4
123 +unknown_address_reject_code = 550
124 diff -urNp -x '*.orig' postfix-3.7.0.org/src/global/mail_params.h postfix-3.7.0/src/global/mail_params.h
125 --- postfix-3.7.0.org/src/global/mail_params.h 2022-01-24 01:03:32.000000000 +0100
126 +++ postfix-3.7.0/src/global/mail_params.h 2022-04-04 19:57:04.594313194 +0200
127 @@ -107,7 +107,7 @@ extern uid_t var_owner_uid;
128 extern gid_t var_owner_gid;
130 #define VAR_SGID_GROUP "setgid_group"
131 -#define DEF_SGID_GROUP "postdrop"
132 +#define DEF_SGID_GROUP "maildrop"
133 extern char *var_sgid_group;
134 extern gid_t var_sgid_gid;
136 diff -urNp -x '*.orig' postfix-3.7.0.org/src/util/sys_defs.h postfix-3.7.0/src/util/sys_defs.h
137 --- postfix-3.7.0.org/src/util/sys_defs.h 2021-12-05 19:59:27.000000000 +0100
138 +++ postfix-3.7.0/src/util/sys_defs.h 2022-04-04 19:57:04.595313196 +0200
140 #define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/mail/aliases" /* OpenBSD 2.7 */
143 -#define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/aliases"
144 +#define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/postfix/aliases"
146 #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
147 #define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"