]> TLD Linux GIT Repositories - packages/postfix.git/blob - postfix-config.patch
- updated to 3.8.6
[packages/postfix.git] / postfix-config.patch
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
4 @@ -58,7 +58,7 @@
5  # daemon programs (i.e. programs listed in the master.cf file). This
6  # directory must be owned by root.
7  #
8 -daemon_directory = /usr/libexec/postfix
9 +daemon_directory = /usr/lib/postfix
10  
11  # The data_directory parameter specifies the location of Postfix-writable
12  # data files (caches, random numbers). This directory must be owned
13 @@ -82,7 +82,7 @@
14  # These rights are used in the absence of a recipient user context.
15  # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
16  #
17 -#default_privs = nobody
18 +default_privs = nobody
19  
20  # INTERNET HOST AND DOMAIN NAMES
21  # 
22 @@ -114,7 +114,7 @@
23  # myorigin also specifies the default domain name that is appended
24  # to recipient addresses that have no @domain part.
25  #
26 -#myorigin = $myhostname
27 +myorigin = $myhostname
28  #myorigin = $mydomain
29  
30  # RECEIVING MAIL
31 @@ -398,7 +398,7 @@
32  # "postfix reload" to eliminate the delay.
33  #
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
39  
40 @@ -409,7 +409,7 @@
41  #
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
47  
48  # ADDRESS EXTENSIONS (e.g., user+foo)
49 @@ -437,7 +437,7 @@
50  # UNIX-style mailboxes are kept. The default setting depends on the
51  # system type.
52  #
53 -#mail_spool_directory = /var/mail
54 +mail_spool_directory = /var/mail
55  #mail_spool_directory = /var/spool/mail
56  
57  # The mailbox_command parameter specifies the optional external
58 @@ -459,8 +459,8 @@
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.
61  #
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"
66  
67  # The mailbox_transport specifies the optional transport in master.cf
68  # to use after processing aliases and .forward files. This parameter
69 @@ -632,45 +632,24 @@
70  #      -dmS $process_name gdb $daemon_directory/$process_name
71  #      $process_id & sleep 1
72  
73 +biff = no
74 +
75  # INSTALL-TIME CONFIGURATION INFORMATION
76  #
77  # The following parameters are used when installing a new Postfix version.
78 -# 
79 -# sendmail_path: The full pathname of the Postfix sendmail command.
80 -# This is the Sendmail-compatible mail posting interface.
81 -# 
82 -sendmail_path =
83 -
84 -# newaliases_path: The full pathname of the Postfix newaliases command.
85 -# This is the Sendmail-compatible command to build alias databases.
86 -#
87 -newaliases_path =
88 -
89 -# mailq_path: The full pathname of the Postfix mailq command.  This
90 -# is the Sendmail-compatible mail queue listing command.
91 -# 
92 -mailq_path =
93  
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.
97  #
98 -setgid_group =
99 +setgid_group = maildrop
100  
101 -# html_directory: The location of the Postfix HTML documentation.
102 -#
103 -html_directory =
104 -
105 -# manpage_directory: The location of the Postfix on-line manual pages.
106 -#
107 -manpage_directory =
108 +inet_protocols = ipv4
109  
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.
115  #
116 -sample_directory =
117 -
118 -# readme_directory: The location of the Postfix README files.
119 +# Contrary to what Wietse thinks (450) this should be 550
120  #
121 -readme_directory =
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
127 @@ -85,7 +85,7 @@
128  extern gid_t var_owner_gid;
129  
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;
135  
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
139 @@ -55,7 +55,7 @@
140  #define ALIAS_DB_MAP   DEF_DB_TYPE ":/etc/postfix/aliases"     /* OpenBSD 2.7 */
141  #endif
142  #ifndef ALIAS_DB_MAP
143 -#define ALIAS_DB_MAP   DEF_DB_TYPE ":/etc/aliases"
144 +#define ALIAS_DB_MAP   DEF_DB_TYPE ":/etc/postfix/aliases"
145  #endif
146  #define GETTIMEOFDAY(t)        gettimeofday(t,(struct timezone *) 0)
147  #define ROOT_PATH      "/bin:/usr/bin:/sbin:/usr/sbin"