1 diff -dur postfix-2.1.3.orig/src/global/mail_params.h postfix-2.1.3/src/global/mail_params.h
2 --- postfix-2.1.3.orig/src/global/mail_params.h 2004-06-22 14:20:57.890585644 +0200
3 +++ postfix-2.1.3/src/global/mail_params.h 2004-06-22 14:21:17.963422126 +0200
5 extern gid_t var_owner_gid;
7 #define VAR_SGID_GROUP "setgid_group"
8 -#define DEF_SGID_GROUP "postdrop"
9 +#define DEF_SGID_GROUP "maildrop"
10 extern char *var_sgid_group;
11 extern gid_t var_sgid_gid;
15 # #define VAR_CONFIG_DIR "config_directory"
16 # #ifndef DEF_CONFIG_DIR
17 #-#define DEF_CONFIG_DIR "/etc/postfix"
18 #+#define DEF_CONFIG_DIR "/etc/mail"
20 # extern char *var_config_dir;
22 --- postfix-2.9.0/conf/main.cf.orig 2012-02-04 19:05:20.960656539 +0100
23 +++ postfix-2.9.0/conf/main.cf 2012-02-04 19:12:31.810624906 +0100
25 # daemon programs (i.e. programs listed in the master.cf file). This
26 # directory must be owned by root.
28 -daemon_directory = /usr/libexec/postfix
29 +daemon_directory = /usr/lib/postfix
31 # The data_directory parameter specifies the location of Postfix-writable
32 # data files (caches, random numbers). This directory must be owned
34 # These rights are used in the absence of a recipient user context.
35 # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
37 -#default_privs = nobody
38 +default_privs = nobody
40 # INTERNET HOST AND DOMAIN NAMES
43 # myorigin also specifies the default domain name that is appended
44 # to recipient addresses that have no @domain part.
46 -#myorigin = $myhostname
47 +myorigin = $myhostname
52 # "postfix reload" to eliminate the delay.
54 #alias_maps = dbm:/etc/aliases
55 -#alias_maps = hash:/etc/aliases
56 +alias_maps = hash:/etc/mail/aliases
57 #alias_maps = hash:/etc/aliases, nis:mail.aliases
58 #alias_maps = netinfo:/aliases
62 #alias_database = dbm:/etc/aliases
63 #alias_database = dbm:/etc/mail/aliases
64 -#alias_database = hash:/etc/aliases
65 +alias_database = hash:/etc/mail/aliases
66 #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
68 # ADDRESS EXTENSIONS (e.g., user+foo)
70 # UNIX-style mailboxes are kept. The default setting depends on the
73 -#mail_spool_directory = /var/mail
74 +mail_spool_directory = /var/mail
75 #mail_spool_directory = /var/spool/mail
77 # The mailbox_command parameter specifies the optional external
79 # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
80 # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
82 -#mailbox_command = /some/where/procmail
83 -#mailbox_command = /some/where/procmail -a "$EXTENSION"
84 +#mailbox_command = /usr/bin/procmail
85 +#mailbox_command = /usr/bin/procmail -a "$EXTENSION"
87 # The mailbox_transport specifies the optional transport in master.cf
88 # to use after processing aliases and .forward files. This parameter
90 # -dmS $process_name gdb $daemon_directory/$process_name
91 # $process_id & sleep 1
95 # INSTALL-TIME CONFIGURATION INFORMATION
97 # The following parameters are used when installing a new Postfix version.
99 -# sendmail_path: The full pathname of the Postfix sendmail command.
100 -# This is the Sendmail-compatible mail posting interface.
104 -# newaliases_path: The full pathname of the Postfix newaliases command.
105 -# This is the Sendmail-compatible command to build alias databases.
109 -# mailq_path: The full pathname of the Postfix mailq command. This
110 -# is the Sendmail-compatible mail queue listing command.
114 # setgid_group: The group for mail submission and queue management
115 # commands. This must be a group name with a numerical group ID that
116 # is not shared with other accounts, not even with the Postfix account.
119 +setgid_group = maildrop
121 -# html_directory: The location of the Postfix HTML documentation.
125 -# manpage_directory: The location of the Postfix on-line manual pages.
128 +inet_protocols = ipv4
130 -# sample_directory: The location of the Postfix sample configuration files.
131 -# This parameter is obsolete as of Postfix 2.1.
132 +# The unknown_address_reject_code parameter specifies the SMTP server
133 +# response when a client violates the reject_unknown_sender_domain
134 +# or reject_unknown_recipient_domain restrictions.
138 -# readme_directory: The location of the Postfix README files.
139 +# Contrary to what Wietse thinks (450) this should be 550
142 -inet_protocols = ipv4
143 +unknown_address_reject_code = 550
144 --- postfix-2.11.0/src/util/sys_defs.h.orig 2014-01-21 20:07:14.000000000 +0100
145 +++ postfix-2.11.0/src/util/sys_defs.h 2014-01-21 20:09:42.583892396 +0100
147 #define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/mail/aliases" /* OpenBSD 2.7 */
150 -#define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/aliases"
151 +#define ALIAS_DB_MAP DEF_DB_TYPE ":/etc/mail/aliases"
153 #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
154 #define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"