]> TLD Linux GIT Repositories - packages/postfix.git/blob - postfix-config.patch
- rel 3
[packages/postfix.git] / postfix-config.patch
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
4 @@ -64,7 +64,7 @@
5  extern gid_t var_owner_gid;
6  
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;
12  
13 #@@ -231,7 +231,7 @@
14 #   */
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"
19 # #endif
20 # extern char *var_config_dir;
21
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
24 @@ -39,7 +39,7 @@
25  # daemon programs (i.e. programs listed in the master.cf file). This
26  # directory must be owned by root.
27  #
28 -daemon_directory = /usr/libexec/postfix
29 +daemon_directory = /usr/lib/postfix
30  
31  # The data_directory parameter specifies the location of Postfix-writable
32  # data files (caches, random numbers). This directory must be owned
33 @@ -63,7 +63,7 @@
34  # These rights are used in the absence of a recipient user context.
35  # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
36  #
37 -#default_privs = nobody
38 +default_privs = nobody
39  
40  # INTERNET HOST AND DOMAIN NAMES
41  # 
42 @@ -95,7 +95,7 @@
43  # myorigin also specifies the default domain name that is appended
44  # to recipient addresses that have no @domain part.
45  #
46 -#myorigin = $myhostname
47 +myorigin = $myhostname
48  #myorigin = $mydomain
49  
50  # RECEIVING MAIL
51 @@ -379,7 +379,7 @@
52  # "postfix reload" to eliminate the delay.
53  #
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
59  
60 @@ -390,7 +390,7 @@
61  #
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
67  
68  # ADDRESS EXTENSIONS (e.g., user+foo)
69 @@ -418,7 +418,7 @@
70  # UNIX-style mailboxes are kept. The default setting depends on the
71  # system type.
72  #
73 -#mail_spool_directory = /var/mail
74 +mail_spool_directory = /var/mail
75  #mail_spool_directory = /var/spool/mail
76  
77  # The mailbox_command parameter specifies the optional external
78 @@ -440,8 +440,8 @@
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.
81  #
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"
86  
87  # The mailbox_transport specifies the optional transport in master.cf
88  # to use after processing aliases and .forward files. This parameter
89 @@ -613,45 +613,24 @@
90  #      -dmS $process_name gdb $daemon_directory/$process_name
91  #      $process_id & sleep 1
92  
93 +biff = no
94 +
95  # INSTALL-TIME CONFIGURATION INFORMATION
96  #
97  # The following parameters are used when installing a new Postfix version.
98 -# 
99 -# sendmail_path: The full pathname of the Postfix sendmail command.
100 -# This is the Sendmail-compatible mail posting interface.
101 -# 
102 -sendmail_path =
103 -
104 -# newaliases_path: The full pathname of the Postfix newaliases command.
105 -# This is the Sendmail-compatible command to build alias databases.
106 -#
107 -newaliases_path =
108 -
109 -# mailq_path: The full pathname of the Postfix mailq command.  This
110 -# is the Sendmail-compatible mail queue listing command.
111 -# 
112 -mailq_path =
113  
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.
117  #
118 -setgid_group =
119 +setgid_group = maildrop
120  
121 -# html_directory: The location of the Postfix HTML documentation.
122 -#
123 -html_directory =
124 -
125 -# manpage_directory: The location of the Postfix on-line manual pages.
126 -#
127 -manpage_directory =
128 +inet_protocols = ipv4
129  
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.
135  #
136 -sample_directory =
137 -
138 -# readme_directory: The location of the Postfix README files.
139 +# Contrary to what Wietse thinks (450) this should be 550
140  #
141 -readme_directory =
142 -inet_protocols = ipv4
143 +unknown_address_reject_code = 550
144 --- postfix-2.9.0/src/util/sys_defs.h.orig      2012-02-04 19:05:23.000000000 +0100
145 +++ postfix-2.9.0/src/util/sys_defs.h   2012-02-04 19:15:31.153933031 +0100
146 @@ -54,7 +54,7 @@
147  #define ALIAS_DB_MAP   "hash:/etc/mail/aliases"        /* OpenBSD 2.7 */
148  #endif
149  #ifndef ALIAS_DB_MAP
150 -#define ALIAS_DB_MAP   "hash:/etc/aliases"
151 +#define ALIAS_DB_MAP   "hash:/etc/mail/aliases"
152  #endif
153  #define GETTIMEOFDAY(t)        gettimeofday(t,(struct timezone *) 0)
154  #define ROOT_PATH      "/bin:/usr/bin:/sbin:/usr/sbin"