1 diff -ur postfix-3.0.2.orig/conf/main.cf postfix-3.0.2/conf/main.cf
2 --- postfix-3.0.2.orig/conf/main.cf 2014-10-09 23:46:44.000000000 +0000
3 +++ postfix-3.0.2/conf/main.cf 2015-07-25 15:53:06.027514288 +0000
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
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
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
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
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)
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
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
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 -ur postfix-3.0.2.orig/src/global/mail_params.h postfix-3.0.2/src/global/mail_params.h
125 --- postfix-3.0.2.orig/src/global/mail_params.h 2015-07-19 22:24:25.000000000 +0000
126 +++ postfix-3.0.2/src/global/mail_params.h 2015-07-25 15:53:06.026514288 +0000
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 -ur postfix-3.0.2.orig/src/util/sys_defs.h postfix-3.0.2/src/util/sys_defs.h
137 --- postfix-3.0.2.orig/src/util/sys_defs.h 2015-07-18 13:28:17.000000000 +0000
138 +++ postfix-3.0.2/src/util/sys_defs.h 2015-07-25 15:53:06.028514288 +0000
140 #define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/postfix/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"