Browse Source

Merge pull request #912 from Shulyaka/master

postfix: upgrade to version 3.0.0
Steven Barth 10 years ago
parent
commit
5d4e18786f

+ 21
- 5
mail/postfix/Makefile View File

8
 include $(TOPDIR)/rules.mk
8
 include $(TOPDIR)/rules.mk
9
 
9
 
10
 PKG_NAME:=postfix
10
 PKG_NAME:=postfix
11
-PKG_RELEASE:=2
11
+PKG_RELEASE:=1
12
 PKG_SOURCE_URL:=ftp://ftp.porcupine.org/mirrors/postfix-release/official/
12
 PKG_SOURCE_URL:=ftp://ftp.porcupine.org/mirrors/postfix-release/official/
13
-PKG_VERSION:=2.11.3
14
-PKG_MD5SUM:=c3f0f51d8865559b40e9350eb3816011
13
+PKG_VERSION:=3.0.0
14
+PKG_MD5SUM:=a4a83f8d729f31c803bf9c2277701d56
15
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
 PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
16
 PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
17
 PKG_LICENSE:=IPL-1.0
17
 PKG_LICENSE:=IPL-1.0
62
 	endmenu
62
 	endmenu
63
 endef
63
 endef
64
 
64
 
65
-CCARGS=-DNO_EPOLL -DNO_SIGSETJMP -DNO_NIS
65
+CCARGS=-DNO_EPOLL -DNO_SIGSETJMP -DNO_NIS -DNO_EAI
66
 AUXLIBS=-L$(STAGING_DIR)/usr/lib
66
 AUXLIBS=-L$(STAGING_DIR)/usr/lib
67
 default_database_type=cdb
67
 default_database_type=cdb
68
 
68
 
111
 sendmail_path=/usr/sbin/sendmail
111
 sendmail_path=/usr/sbin/sendmail
112
 newaliases_path=/usr/bin/newaliases
112
 newaliases_path=/usr/bin/newaliases
113
 mailq_path=/usr/bin/mailq
113
 mailq_path=/usr/bin/mailq
114
+shlib_directory=/usr/lib/postfix
115
+meta_directory=/etc/postfix
114
 
116
 
115
 ln_suffix=.postfix
117
 ln_suffix=.postfix
116
 ln_old_suffix=.old
118
 ln_old_suffix=.old
130
 	cd $(PKG_BUILD_DIR); $(MAKE) makefiles CCARGS='$(CCARGS)' $(TARGET_CONFIGURE_OPTS) AUXLIBS="$(AUXLIBS)"
132
 	cd $(PKG_BUILD_DIR); $(MAKE) makefiles CCARGS='$(CCARGS)' $(TARGET_CONFIGURE_OPTS) AUXLIBS="$(AUXLIBS)"
131
 endef
133
 endef
132
 
134
 
135
+# Steps to regenerate files/main.cf.default:
136
+#
137
+# 1. Compile the package with current file
138
+# 2. Execute the following command on target device:
139
+# 	postconf -d > /tmp/main.cf.new
140
+# 3. Transfer /tmp/main.cf.new file to the build system
141
+# 4. Execute the following command:
142
+# 	cat /tmp/main.cf.new | ( echo '# DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE'; echo '# TEXT HERE JUST SHOWS DEFAULT SETTINGS BUILT INTO POSTFIX.'; echo '#'; grep -v ^alias_maps\ = |grep -v ^alias_database\ = |grep -v ^command_directory\ = |grep -v ^config_directory\ = |grep -v ^daemon_directory\ = |grep -v ^data_directory\ = |grep -v ^default_database_type\ = |grep -v ^html_directory\ = |grep -v ^mail_spool_directory\ = |grep -v ^mailq_path\ = |grep -v ^manpage_directory\ = |grep -v ^meta_directory\ = |grep -v ^mydomain\ = |grep -v ^myhostname\ = |grep -v ^mynetworks\ = |grep -v ^mynetworks_style\ = |grep -v ^newaliases_path\ = |grep -v ^queue_directory\ = |grep -v ^readme_directory\ = |grep -v ^sample_directory\ = |grep -v ^sendmail_path\ = |grep -v ^shlib_directory\ = |grep -v ^smtputf8_enable\ = ) > files/main.cf.default
143
+# 5. Done. Now you can rebuild the package with new main.cf.default.
144
+#
145
+
133
 define Build/Compile
146
 define Build/Compile
134
 	# Currently postfix has a bug with Makefiles that CCARGS are not passed to the compiler, so we are copying them to CC
147
 	# Currently postfix has a bug with Makefiles that CCARGS are not passed to the compiler, so we are copying them to CC
135
 	cd $(PKG_BUILD_DIR); $(MAKE) $(TARGET_CONFIGURE_OPTS) CC='$(TARGET_CC) $(CCARGS)'
148
 	cd $(PKG_BUILD_DIR); $(MAKE) $(TARGET_CONFIGURE_OPTS) CC='$(TARGET_CC) $(CCARGS)'
150
 	echo "queue_directory = $(queue_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
163
 	echo "queue_directory = $(queue_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
151
 	echo "config_directory = $(config_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
164
 	echo "config_directory = $(config_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
152
 	echo "mail_spool_directory = $(mail_spool_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
165
 	echo "mail_spool_directory = $(mail_spool_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
166
+	echo "shlib_directory = $(shlib_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
167
+	echo "meta_directory = $(meta_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
168
+	echo "smtputf8_enable = no" >> $(PKG_BUILD_DIR)/conf/main.cf.default
153
 endef
169
 endef
154
 
170
 
155
 define Package/postfix/install
171
 define Package/postfix/install
156
-	cd $(PKG_BUILD_DIR); $(MAKE) install_root=$(1) command_directory=$(command_directory) daemon_directory=$(daemon_directory) data_directory=$(data_directory) html_directory=$(html_directory) mail_owner=postfix mailq_path=$(mailq_path)$(ln_suffix) manpage_directory=$(manpage_directory) newaliases_path=$(newaliases_path)$(ln_suffix) queue_directory=$(queue_directory) readme_directory=$(readme_directory) sendmail_path=$(sendmail_path)$(ln_suffix) setgid_group=postdrop sample_directory=$(sample_directory) config_directory=$(config_directory) non-interactive-package
172
+	cd $(PKG_BUILD_DIR); $(MAKE) install_root=$(1) command_directory=$(command_directory) daemon_directory=$(daemon_directory) data_directory=$(data_directory) html_directory=$(html_directory) mail_owner=postfix mailq_path=$(mailq_path)$(ln_suffix) manpage_directory=$(manpage_directory) newaliases_path=$(newaliases_path)$(ln_suffix) queue_directory=$(queue_directory) readme_directory=$(readme_directory) sendmail_path=$(sendmail_path)$(ln_suffix) setgid_group=postdrop sample_directory=$(sample_directory) config_directory=$(config_directory) shlib_directory=$(shlib_directory) meta_directory=$(meta_directory) mail_version=$(PKG_VERSION) non-interactive-package
157
 	$(INSTALL_DIR) $(1)$(mail_spool_directory)
173
 	$(INSTALL_DIR) $(1)$(mail_spool_directory)
158
 	$(INSTALL_DIR) $(1)/etc/init.d/
174
 	$(INSTALL_DIR) $(1)/etc/init.d/
159
 	$(INSTALL_BIN) ./files/postfix.init $(1)/etc/init.d/postfix
175
 	$(INSTALL_BIN) ./files/postfix.init $(1)/etc/init.d/postfix

+ 44
- 20
mail/postfix/files/main.cf.default View File

11
 address_verify_negative_cache = yes
11
 address_verify_negative_cache = yes
12
 address_verify_negative_expire_time = 3d
12
 address_verify_negative_expire_time = 3d
13
 address_verify_negative_refresh_time = 3h
13
 address_verify_negative_refresh_time = 3h
14
-address_verify_poll_count = ${stress?1}${stress:3}
14
+address_verify_poll_count = ${stress?{1}:{3}}
15
 address_verify_poll_delay = 3s
15
 address_verify_poll_delay = 3s
16
 address_verify_positive_expire_time = 31d
16
 address_verify_positive_expire_time = 31d
17
 address_verify_positive_refresh_time = 7d
17
 address_verify_positive_refresh_time = 7d
35
 anvil_rate_time_unit = 60s
35
 anvil_rate_time_unit = 60s
36
 anvil_status_update_time = 600s
36
 anvil_status_update_time = 600s
37
 append_at_myorigin = yes
37
 append_at_myorigin = yes
38
-append_dot_mydomain = yes
38
+append_dot_mydomain = ${{$compatibility_level} < {1} ? {yes} : {no}}
39
 application_event_drain_time = 100s
39
 application_event_drain_time = 100s
40
 authorized_flush_users = static:anyone
40
 authorized_flush_users = static:anyone
41
 authorized_mailq_users = static:anyone
41
 authorized_mailq_users = static:anyone
59
 command_execution_directory =
59
 command_execution_directory =
60
 command_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
60
 command_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
61
 command_time_limit = 1000s
61
 command_time_limit = 1000s
62
+compatibility_level = 0
63
+confirm_delay_cleared = no
62
 connection_cache_protocol_timeout = 5s
64
 connection_cache_protocol_timeout = 5s
63
 connection_cache_service_name = scache
65
 connection_cache_service_name = scache
64
 connection_cache_status_update_time = 600s
66
 connection_cache_status_update_time = 600s
73
 default_delivery_slot_cost = 5
75
 default_delivery_slot_cost = 5
74
 default_delivery_slot_discount = 50
76
 default_delivery_slot_discount = 50
75
 default_delivery_slot_loan = 3
77
 default_delivery_slot_loan = 3
78
+default_delivery_status_filter =
76
 default_destination_concurrency_failed_cohort_limit = 1
79
 default_destination_concurrency_failed_cohort_limit = 1
77
 default_destination_concurrency_limit = 20
80
 default_destination_concurrency_limit = 20
78
 default_destination_concurrency_negative_feedback = 1
81
 default_destination_concurrency_negative_feedback = 1
169
 line_length_limit = 2048
172
 line_length_limit = 2048
170
 lmdb_map_size = 16777216
173
 lmdb_map_size = 16777216
171
 lmtp_address_preference = any
174
 lmtp_address_preference = any
175
+lmtp_address_verify_target = rcpt
172
 lmtp_assume_final = no
176
 lmtp_assume_final = no
173
 lmtp_bind_address =
177
 lmtp_bind_address =
174
 lmtp_bind_address6 =
178
 lmtp_bind_address6 =
187
 lmtp_delivery_slot_cost = $default_delivery_slot_cost
191
 lmtp_delivery_slot_cost = $default_delivery_slot_cost
188
 lmtp_delivery_slot_discount = $default_delivery_slot_discount
192
 lmtp_delivery_slot_discount = $default_delivery_slot_discount
189
 lmtp_delivery_slot_loan = $default_delivery_slot_loan
193
 lmtp_delivery_slot_loan = $default_delivery_slot_loan
194
+lmtp_delivery_status_filter = $default_delivery_status_filter
190
 lmtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
195
 lmtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
191
 lmtp_destination_concurrency_limit = $default_destination_concurrency_limit
196
 lmtp_destination_concurrency_limit = $default_destination_concurrency_limit
192
 lmtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
197
 lmtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
195
 lmtp_destination_recipient_limit = $default_destination_recipient_limit
200
 lmtp_destination_recipient_limit = $default_destination_recipient_limit
196
 lmtp_discard_lhlo_keyword_address_maps =
201
 lmtp_discard_lhlo_keyword_address_maps =
197
 lmtp_discard_lhlo_keywords =
202
 lmtp_discard_lhlo_keywords =
203
+lmtp_dns_reply_filter =
198
 lmtp_dns_resolver_options =
204
 lmtp_dns_resolver_options =
199
 lmtp_dns_support_level =
205
 lmtp_dns_support_level =
200
 lmtp_enforce_tls = no
206
 lmtp_enforce_tls = no
274
 lmtp_tls_session_cache_timeout = 3600s
280
 lmtp_tls_session_cache_timeout = 3600s
275
 lmtp_tls_trust_anchor_file =
281
 lmtp_tls_trust_anchor_file =
276
 lmtp_tls_verify_cert_match = hostname
282
 lmtp_tls_verify_cert_match = hostname
283
+lmtp_tls_wrappermode = no
277
 lmtp_use_tls = no
284
 lmtp_use_tls = no
278
 lmtp_xforward_timeout = 300s
285
 lmtp_xforward_timeout = 300s
279
 local_command_shell =
286
 local_command_shell =
280
 local_delivery_slot_cost = $default_delivery_slot_cost
287
 local_delivery_slot_cost = $default_delivery_slot_cost
281
 local_delivery_slot_discount = $default_delivery_slot_discount
288
 local_delivery_slot_discount = $default_delivery_slot_discount
282
 local_delivery_slot_loan = $default_delivery_slot_loan
289
 local_delivery_slot_loan = $default_delivery_slot_loan
290
+local_delivery_status_filter = $default_delivery_status_filter
283
 local_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
291
 local_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
284
 local_destination_concurrency_limit = 2
292
 local_destination_concurrency_limit = 2
285
 local_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
293
 local_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
298
 luser_relay =
306
 luser_relay =
299
 mail_name = Postfix
307
 mail_name = Postfix
300
 mail_owner = postfix
308
 mail_owner = postfix
301
-mail_release_date = 20140507
302
-mail_version = 2.11.1
309
+mail_release_date = 20150208
310
+mail_version = 3.0.0
303
 mailbox_command =
311
 mailbox_command =
304
 mailbox_command_maps =
312
 mailbox_command_maps =
305
 mailbox_delivery_lock = fcntl, dotlock
313
 mailbox_delivery_lock = fcntl, dotlock
316
 max_use = 100
324
 max_use = 100
317
 maximal_backoff_time = 4000s
325
 maximal_backoff_time = 4000s
318
 maximal_queue_lifetime = 5d
326
 maximal_queue_lifetime = 5d
327
+message_drop_headers = bcc, content-length, resent-bcc, return-path
319
 message_reject_characters =
328
 message_reject_characters =
320
 message_size_limit = 10240000
329
 message_size_limit = 10240000
321
 message_strip_characters =
330
 message_strip_characters =
346
 multi_instance_wrapper =
355
 multi_instance_wrapper =
347
 multi_recipient_bounce_reject_code = 550
356
 multi_recipient_bounce_reject_code = 550
348
 mydestination = $myhostname, localhost.$mydomain, localhost
357
 mydestination = $myhostname, localhost.$mydomain, localhost
349
-mynetworks_style = subnet
350
 myorigin = $myhostname
358
 myorigin = $myhostname
351
 nested_header_checks = $header_checks
359
 nested_header_checks = $header_checks
352
 non_fqdn_reject_code = 504
360
 non_fqdn_reject_code = 504
356
 parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
364
 parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
357
 permit_mx_backup_networks =
365
 permit_mx_backup_networks =
358
 pickup_service_name = pickup
366
 pickup_service_name = pickup
367
+pipe_delivery_status_filter = $default_delivery_status_filter
359
 plaintext_reject_code = 450
368
 plaintext_reject_code = 450
360
 postmulti_control_commands = reload flush
369
 postmulti_control_commands = reload flush
361
 postmulti_start_commands = start
370
 postmulti_start_commands = start
371
 postscreen_client_connection_count_limit = $smtpd_client_connection_count_limit
380
 postscreen_client_connection_count_limit = $smtpd_client_connection_count_limit
372
 postscreen_command_count_limit = 20
381
 postscreen_command_count_limit = 20
373
 postscreen_command_filter =
382
 postscreen_command_filter =
374
-postscreen_command_time_limit = ${stress?10}${stress:300}s
383
+postscreen_command_time_limit = ${stress?{10}:{300}}s
375
 postscreen_disable_vrfy_command = $disable_vrfy_command
384
 postscreen_disable_vrfy_command = $disable_vrfy_command
376
 postscreen_discard_ehlo_keyword_address_maps = $smtpd_discard_ehlo_keyword_address_maps
385
 postscreen_discard_ehlo_keyword_address_maps = $smtpd_discard_ehlo_keyword_address_maps
377
 postscreen_discard_ehlo_keywords = $smtpd_discard_ehlo_keywords
386
 postscreen_discard_ehlo_keywords = $smtpd_discard_ehlo_keywords
379
 postscreen_dnsbl_reply_map =
388
 postscreen_dnsbl_reply_map =
380
 postscreen_dnsbl_sites =
389
 postscreen_dnsbl_sites =
381
 postscreen_dnsbl_threshold = 1
390
 postscreen_dnsbl_threshold = 1
391
+postscreen_dnsbl_timeout = 10s
382
 postscreen_dnsbl_ttl = 1h
392
 postscreen_dnsbl_ttl = 1h
383
 postscreen_dnsbl_whitelist_threshold = 0
393
 postscreen_dnsbl_whitelist_threshold = 0
384
 postscreen_enforce_tls = $smtpd_enforce_tls
394
 postscreen_enforce_tls = $smtpd_enforce_tls
387
 postscreen_greet_action = ignore
397
 postscreen_greet_action = ignore
388
 postscreen_greet_banner = $smtpd_banner
398
 postscreen_greet_banner = $smtpd_banner
389
 postscreen_greet_ttl = 1d
399
 postscreen_greet_ttl = 1d
390
-postscreen_greet_wait = ${stress?2}${stress:6}s
400
+postscreen_greet_wait = ${stress?{2}:{6}}s
391
 postscreen_helo_required = $smtpd_helo_required
401
 postscreen_helo_required = $smtpd_helo_required
392
 postscreen_non_smtp_command_action = drop
402
 postscreen_non_smtp_command_action = drop
393
 postscreen_non_smtp_command_enable = no
403
 postscreen_non_smtp_command_enable = no
405
 postscreen_watchdog_timeout = 10s
415
 postscreen_watchdog_timeout = 10s
406
 postscreen_whitelist_interfaces = static:all
416
 postscreen_whitelist_interfaces = static:all
407
 prepend_delivered_header = command, file, forward
417
 prepend_delivered_header = command, file, forward
408
-process_id = 6537
418
+process_id = 25939
409
 process_id_directory = pid
419
 process_id_directory = pid
410
 process_name = postconf
420
 process_name = postconf
411
 propagate_unmatched_extensions = canonical, virtual
421
 propagate_unmatched_extensions = canonical, virtual
412
 proxy_interfaces =
422
 proxy_interfaces =
413
-proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps
423
+proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps $smtpd_client_restrictions $smtpd_helo_restrictions $smtpd_sender_restrictions $smtpd_relay_restrictions $smtpd_recipient_restrictions
414
 proxy_write_maps = $smtp_sasl_auth_cache_name $lmtp_sasl_auth_cache_name $address_verify_map $postscreen_cache_map
424
 proxy_write_maps = $smtp_sasl_auth_cache_name $lmtp_sasl_auth_cache_name $address_verify_map $postscreen_cache_map
415
 proxymap_service_name = proxymap
425
 proxymap_service_name = proxymap
416
 proxywrite_service_name = proxywrite
426
 proxywrite_service_name = proxywrite
447
 relay_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
457
 relay_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
448
 relay_destination_rate_delay = $default_destination_rate_delay
458
 relay_destination_rate_delay = $default_destination_rate_delay
449
 relay_destination_recipient_limit = $default_destination_recipient_limit
459
 relay_destination_recipient_limit = $default_destination_recipient_limit
450
-relay_domains = $mydestination
460
+relay_domains = ${{$compatibility_level} < {2} ? {$mydestination} : {}}
451
 relay_domains_reject_code = 554
461
 relay_domains_reject_code = 554
452
 relay_extra_recipient_limit = $default_extra_recipient_limit
462
 relay_extra_recipient_limit = $default_extra_recipient_limit
453
 relay_initial_destination_concurrency = $initial_destination_concurrency
463
 relay_initial_destination_concurrency = $initial_destination_concurrency
493
 show_user_unknown_table_name = yes
503
 show_user_unknown_table_name = yes
494
 showq_service_name = showq
504
 showq_service_name = showq
495
 smtp_address_preference = any
505
 smtp_address_preference = any
506
+smtp_address_verify_target = rcpt
496
 smtp_always_send_ehlo = yes
507
 smtp_always_send_ehlo = yes
497
 smtp_bind_address =
508
 smtp_bind_address =
498
 smtp_bind_address6 =
509
 smtp_bind_address6 =
511
 smtp_delivery_slot_cost = $default_delivery_slot_cost
522
 smtp_delivery_slot_cost = $default_delivery_slot_cost
512
 smtp_delivery_slot_discount = $default_delivery_slot_discount
523
 smtp_delivery_slot_discount = $default_delivery_slot_discount
513
 smtp_delivery_slot_loan = $default_delivery_slot_loan
524
 smtp_delivery_slot_loan = $default_delivery_slot_loan
525
+smtp_delivery_status_filter = $default_delivery_status_filter
514
 smtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
526
 smtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
515
 smtp_destination_concurrency_limit = $default_destination_concurrency_limit
527
 smtp_destination_concurrency_limit = $default_destination_concurrency_limit
516
 smtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
528
 smtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
519
 smtp_destination_recipient_limit = $default_destination_recipient_limit
531
 smtp_destination_recipient_limit = $default_destination_recipient_limit
520
 smtp_discard_ehlo_keyword_address_maps =
532
 smtp_discard_ehlo_keyword_address_maps =
521
 smtp_discard_ehlo_keywords =
533
 smtp_discard_ehlo_keywords =
534
+smtp_dns_reply_filter =
522
 smtp_dns_resolver_options =
535
 smtp_dns_resolver_options =
523
 smtp_dns_support_level =
536
 smtp_dns_support_level =
524
 smtp_enforce_tls = no
537
 smtp_enforce_tls = no
599
 smtp_tls_session_cache_timeout = 3600s
612
 smtp_tls_session_cache_timeout = 3600s
600
 smtp_tls_trust_anchor_file =
613
 smtp_tls_trust_anchor_file =
601
 smtp_tls_verify_cert_match = hostname
614
 smtp_tls_verify_cert_match = hostname
615
+smtp_tls_wrappermode = no
602
 smtp_use_tls = no
616
 smtp_use_tls = no
603
 smtp_xforward_timeout = 300s
617
 smtp_xforward_timeout = 300s
604
 smtpd_authorized_verp_clients = $authorized_verp_clients
618
 smtpd_authorized_verp_clients = $authorized_verp_clients
619
 smtpd_delay_reject = yes
633
 smtpd_delay_reject = yes
620
 smtpd_discard_ehlo_keyword_address_maps =
634
 smtpd_discard_ehlo_keyword_address_maps =
621
 smtpd_discard_ehlo_keywords =
635
 smtpd_discard_ehlo_keywords =
636
+smtpd_dns_reply_filter =
622
 smtpd_end_of_data_restrictions =
637
 smtpd_end_of_data_restrictions =
623
 smtpd_enforce_tls = no
638
 smtpd_enforce_tls = no
624
 smtpd_error_sleep_time = 1s
639
 smtpd_error_sleep_time = 1s
625
 smtpd_etrn_restrictions =
640
 smtpd_etrn_restrictions =
626
 smtpd_expansion_filter = \t\40!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~
641
 smtpd_expansion_filter = \t\40!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~
627
 smtpd_forbidden_commands = CONNECT GET POST
642
 smtpd_forbidden_commands = CONNECT GET POST
628
-smtpd_hard_error_limit = ${stress?1}${stress:20}
643
+smtpd_hard_error_limit = ${stress?{1}:{20}}
629
 smtpd_helo_required = no
644
 smtpd_helo_required = no
630
 smtpd_helo_restrictions =
645
 smtpd_helo_restrictions =
631
 smtpd_history_flush_threshold = 100
646
 smtpd_history_flush_threshold = 100
632
-smtpd_junk_command_limit = ${stress?1}${stress:100}
647
+smtpd_junk_command_limit = ${stress?{1}:{100}}
633
 smtpd_log_access_permit_actions =
648
 smtpd_log_access_permit_actions =
634
 smtpd_milters =
649
 smtpd_milters =
635
 smtpd_noop_commands =
650
 smtpd_noop_commands =
636
 smtpd_null_access_lookup_key = <>
651
 smtpd_null_access_lookup_key = <>
637
 smtpd_peername_lookup = yes
652
 smtpd_peername_lookup = yes
638
-smtpd_per_record_deadline = ${stress?yes}${stress:no}
653
+smtpd_per_record_deadline = ${stress?{yes}:{no}}
654
+smtpd_policy_service_default_action = 451 4.3.5 Server configuration problem
639
 smtpd_policy_service_max_idle = 300s
655
 smtpd_policy_service_max_idle = 300s
640
 smtpd_policy_service_max_ttl = 1000s
656
 smtpd_policy_service_max_ttl = 1000s
657
+smtpd_policy_service_request_limit = 0
658
+smtpd_policy_service_retry_delay = 1s
641
 smtpd_policy_service_timeout = 100s
659
 smtpd_policy_service_timeout = 100s
660
+smtpd_policy_service_try_limit = 2
642
 smtpd_proxy_ehlo = $myhostname
661
 smtpd_proxy_ehlo = $myhostname
643
 smtpd_proxy_filter =
662
 smtpd_proxy_filter =
644
 smtpd_proxy_options =
663
 smtpd_proxy_options =
664
 smtpd_sender_restrictions =
683
 smtpd_sender_restrictions =
665
 smtpd_service_name = smtpd
684
 smtpd_service_name = smtpd
666
 smtpd_soft_error_limit = 10
685
 smtpd_soft_error_limit = 10
667
-smtpd_starttls_timeout = ${stress?10}${stress:300}s
668
-smtpd_timeout = ${stress?10}${stress:300}s
686
+smtpd_starttls_timeout = ${stress?{10}:{300}}s
687
+smtpd_timeout = ${stress?{10}:{300}}s
669
 smtpd_tls_CAfile =
688
 smtpd_tls_CAfile =
670
 smtpd_tls_CApath =
689
 smtpd_tls_CApath =
671
 smtpd_tls_always_issue_session_ids = yes
690
 smtpd_tls_always_issue_session_ids = yes
698
 smtpd_upstream_proxy_protocol =
717
 smtpd_upstream_proxy_protocol =
699
 smtpd_upstream_proxy_timeout = 5s
718
 smtpd_upstream_proxy_timeout = 5s
700
 smtpd_use_tls = no
719
 smtpd_use_tls = no
720
+smtputf8_autodetect_classes = sendmail, verify
701
 soft_bounce = no
721
 soft_bounce = no
702
 stale_lock_time = 500s
722
 stale_lock_time = 500s
703
 stress =
723
 stress =
707
 strict_mailbox_ownership = yes
727
 strict_mailbox_ownership = yes
708
 strict_mime_encoding_domain = no
728
 strict_mime_encoding_domain = no
709
 strict_rfc821_envelopes = no
729
 strict_rfc821_envelopes = no
730
+strict_smtputf8 = no
710
 sun_mailtool_compatibility = no
731
 sun_mailtool_compatibility = no
711
 swap_bangpath = yes
732
 swap_bangpath = yes
712
 syslog_facility = mail
733
 syslog_facility = mail
713
-syslog_name = ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name}
734
+syslog_name = ${multi_instance_name?{$multi_instance_name}:{postfix}}
714
 tcp_windowsize = 0
735
 tcp_windowsize = 0
715
 tls_append_default_CA = no
736
 tls_append_default_CA = no
716
 tls_daemon_random_bytes = 32
737
 tls_daemon_random_bytes = 32
720
 tls_disable_workarounds =
741
 tls_disable_workarounds =
721
 tls_eecdh_strong_curve = prime256v1
742
 tls_eecdh_strong_curve = prime256v1
722
 tls_eecdh_ultra_curve = secp384r1
743
 tls_eecdh_ultra_curve = secp384r1
723
-tls_export_cipherlist = ALL:+RC4:@STRENGTH
724
-tls_high_cipherlist = ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH
744
+tls_export_cipherlist = aNULL:-aNULL:ALL:+RC4:@STRENGTH
745
+tls_high_cipherlist = aNULL:-aNULL:ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH
725
 tls_legacy_public_key_fingerprints = no
746
 tls_legacy_public_key_fingerprints = no
726
-tls_low_cipherlist = ALL:!EXPORT:+RC4:@STRENGTH
727
-tls_medium_cipherlist = ALL:!EXPORT:!LOW:+RC4:@STRENGTH
747
+tls_low_cipherlist = aNULL:-aNULL:ALL:!EXPORT:+RC4:@STRENGTH
748
+tls_medium_cipherlist = aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH
728
 tls_null_cipherlist = eNULL:!aNULL
749
 tls_null_cipherlist = eNULL:!aNULL
729
 tls_preempt_cipherlist = no
750
 tls_preempt_cipherlist = no
730
 tls_random_bytes = 32
751
 tls_random_bytes = 32
732
 tls_random_prng_update_period = 3600s
753
 tls_random_prng_update_period = 3600s
733
 tls_random_reseed_period = 3600s
754
 tls_random_reseed_period = 3600s
734
 tls_random_source = dev:/dev/urandom
755
 tls_random_source = dev:/dev/urandom
756
+tls_session_ticket_cipher = aes-128-cbc
735
 tls_ssl_options =
757
 tls_ssl_options =
736
 tls_wildcard_matches_multiple_labels = yes
758
 tls_wildcard_matches_multiple_labels = yes
737
 tlsmgr_service_name = tlsmgr
759
 tlsmgr_service_name = tlsmgr
786
 unverified_sender_reject_reason =
808
 unverified_sender_reject_reason =
787
 unverified_sender_tempfail_action = $reject_tempfail_action
809
 unverified_sender_tempfail_action = $reject_tempfail_action
788
 verp_delimiter_filter = -=+
810
 verp_delimiter_filter = -=+
811
+virtual_alias_address_length_limit = 1000
789
 virtual_alias_domains = $virtual_alias_maps
812
 virtual_alias_domains = $virtual_alias_maps
790
 virtual_alias_expansion_limit = 1000
813
 virtual_alias_expansion_limit = 1000
791
 virtual_alias_maps = $virtual_maps
814
 virtual_alias_maps = $virtual_maps
793
 virtual_delivery_slot_cost = $default_delivery_slot_cost
816
 virtual_delivery_slot_cost = $default_delivery_slot_cost
794
 virtual_delivery_slot_discount = $default_delivery_slot_discount
817
 virtual_delivery_slot_discount = $default_delivery_slot_discount
795
 virtual_delivery_slot_loan = $default_delivery_slot_loan
818
 virtual_delivery_slot_loan = $default_delivery_slot_loan
819
+virtual_delivery_status_filter = $default_delivery_status_filter
796
 virtual_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
820
 virtual_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
797
 virtual_destination_concurrency_limit = $default_destination_concurrency_limit
821
 virtual_destination_concurrency_limit = $default_destination_concurrency_limit
798
 virtual_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
822
 virtual_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback

+ 23
- 18
mail/postfix/files/postfix.init View File

17
 		echo "myhostname = $(uci get system.@system[0].hostname)" >> "$config_directory"/main.cf.default
17
 		echo "myhostname = $(uci get system.@system[0].hostname)" >> "$config_directory"/main.cf.default
18
 		echo "mydomain = $(uci get system.@system[0].hostname|sed -e "s/[^\.]*\.\(.*\)/\1/")" >> "$config_directory"/main.cf.default
18
 		echo "mydomain = $(uci get system.@system[0].hostname|sed -e "s/[^\.]*\.\(.*\)/\1/")" >> "$config_directory"/main.cf.default
19
 		ifconfig | grep "inet addr" | sed -e "s/.*inet addr:\([0-9.]*\).*Mask:/\1 /" | while read IP NETMASK; do eval "$(ipcalc.sh $IP $NETMASK)"; echo "$NETWORK/$PREFIX"; done | xargs echo "mynetworks =" >> "$config_directory"/main.cf.default
19
 		ifconfig | grep "inet addr" | sed -e "s/.*inet addr:\([0-9.]*\).*Mask:/\1 /" | while read IP NETMASK; do eval "$(ipcalc.sh $IP $NETMASK)"; echo "$NETWORK/$PREFIX"; done | xargs echo "mynetworks =" >> "$config_directory"/main.cf.default
20
+		echo "mynetworks_style = subnet" >> "$config_directory"/main.cf.default
20
 
21
 
21
-		grep -qc "^sendmail_path" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^sendmail_path =" "$config_directory"/main.cf.default)"
22
-		grep -qc "^newaliases_path" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^newaliases_path =" "$config_directory"/main.cf.default)"
23
-		grep -qc "^mailq_path" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mailq_path =" "$config_directory"/main.cf.default)"
24
-		grep -qc "^html_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^html_directory =" "$config_directory"/main.cf.default)"
25
-		grep -qc "^manpage_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^manpage_directory =" "$config_directory"/main.cf.default)"
26
-		grep -qc "^sample_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^sample_directory =" "$config_directory"/main.cf.default)"
27
-		grep -qc "^readme_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^readme_directory =" "$config_directory"/main.cf.default)"
28
-		grep -qc "^command_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^command_directory =" "$config_directory"/main.cf.default)"
29
-		grep -qc "^daemon_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^daemon_directory =" "$config_directory"/main.cf.default)"
30
-		grep -qc "^data_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^data_directory =" "$config_directory"/main.cf.default)"
31
-		grep -qc "^queue_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^queue_directory =" "$config_directory"/main.cf.default)"
32
-		grep -qc "^config_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^config_directory =" "$config_directory"/main.cf.default)"
33
-		grep -qc "^mail_spool_directory" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mail_spool_directory =" "$config_directory"/main.cf.default)"
34
-		grep -qc "^mail_owner" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mail_owner =" "$config_directory"/main.cf.default)"
35
-		grep -qc "^setgid_group" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^setgid_group =" "$config_directory"/main.cf.default)"
36
-		grep -qc "^myhostname" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^myhostname =" "$config_directory"/main.cf.default)"
37
-		grep -qc "^mydomain" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mydomain =" "$config_directory"/main.cf.default)"
38
-		grep -qc "^mynetworks" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mynetworks =" "$config_directory"/main.cf.default)"
22
+		grep -qc "^sendmail_path[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^sendmail_path =" "$config_directory"/main.cf.default)"
23
+		grep -qc "^newaliases_path[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^newaliases_path =" "$config_directory"/main.cf.default)"
24
+		grep -qc "^mailq_path[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mailq_path =" "$config_directory"/main.cf.default)"
25
+		grep -qc "^html_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^html_directory =" "$config_directory"/main.cf.default)"
26
+		grep -qc "^manpage_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^manpage_directory =" "$config_directory"/main.cf.default)"
27
+		grep -qc "^sample_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^sample_directory =" "$config_directory"/main.cf.default)"
28
+		grep -qc "^readme_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^readme_directory =" "$config_directory"/main.cf.default)"
29
+		grep -qc "^command_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^command_directory =" "$config_directory"/main.cf.default)"
30
+		grep -qc "^daemon_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^daemon_directory =" "$config_directory"/main.cf.default)"
31
+		grep -qc "^data_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^data_directory =" "$config_directory"/main.cf.default)"
32
+		grep -qc "^queue_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^queue_directory =" "$config_directory"/main.cf.default)"
33
+		grep -qc "^config_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^config_directory =" "$config_directory"/main.cf.default)"
34
+		grep -qc "^mail_spool_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mail_spool_directory =" "$config_directory"/main.cf.default)"
35
+		grep -qc "^mail_owner[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mail_owner =" "$config_directory"/main.cf.default)"
36
+		grep -qc "^setgid_group[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^setgid_group =" "$config_directory"/main.cf.default)"
37
+		grep -qc "^myhostname[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^myhostname =" "$config_directory"/main.cf.default)"
38
+		grep -qc "^mydomain[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mydomain =" "$config_directory"/main.cf.default)"
39
+		grep -qc "^mynetworks[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mynetworks =" "$config_directory"/main.cf.default)"
40
+		grep -qc "^mynetworks_style[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^mynetworks_style =" "$config_directory"/main.cf.default)"
41
+		grep -qc "^shlib_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^shlib_directory =" "$config_directory"/main.cf.default)"
42
+		grep -qc "^meta_directory[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^meta_directory =" "$config_directory"/main.cf.default)"
43
+		grep -qc "^smtputf8_enable[^_]" "$config_directory"/main.cf >/dev/null || postconf -e "$(grep "^smtputf8_enable =" "$config_directory"/main.cf.default)"
39
 
44
 
40
 		postfix set-permissions
45
 		postfix set-permissions
41
 		postfix post-install upgrade-source
46
 		postfix post-install upgrade-source

+ 1
- 1
mail/postfix/patches/100-fsstat.patch View File

1
 diff -rupN postfix-2.8.1/src/smtpd/smtpd_check.c postfix-2.8.1_patched/src/smtpd/smtpd_check.c
1
 diff -rupN postfix-2.8.1/src/smtpd/smtpd_check.c postfix-2.8.1_patched/src/smtpd/smtpd_check.c
2
 --- postfix-2.8.1/src/smtpd/smtpd_check.c	2011-01-04 22:03:50.000000000 +0300
2
 --- postfix-2.8.1/src/smtpd/smtpd_check.c	2011-01-04 22:03:50.000000000 +0300
3
 +++ postfix-2.8.1_patched/src/smtpd/smtpd_check.c	2011-03-06 19:35:39.000000000 +0300
3
 +++ postfix-2.8.1_patched/src/smtpd/smtpd_check.c	2011-03-06 19:35:39.000000000 +0300
4
-@@ -4894,7 +4894,7 @@ char   *smtpd_check_queue(SMTPD_STATE *s
4
+@@ -5277,7 +5277,7 @@ char   *smtpd_check_queue(SMTPD_STATE *s
5
       */
5
       */
6
  #define BLOCKS(x)	((x) / fsbuf.block_size)
6
  #define BLOCKS(x)	((x) / fsbuf.block_size)
7
  
7
  

+ 15
- 15
mail/postfix/patches/200-manpages.patch View File

1
 diff -Naur postfix-2.10.2/conf/post-install postfix-2.10.2_patched/conf/post-install
1
 diff -Naur postfix-2.10.2/conf/post-install postfix-2.10.2_patched/conf/post-install
2
 --- postfix-2.10.2/conf/post-install	2013-06-13 18:07:46.000000000 +0400
2
 --- postfix-2.10.2/conf/post-install	2013-06-13 18:07:46.000000000 +0400
3
 +++ postfix-2.10.2_patched/conf/post-install	2013-11-19 21:17:49.572820573 +0400
3
 +++ postfix-2.10.2_patched/conf/post-install	2013-11-19 21:17:49.572820573 +0400
4
-@@ -350,10 +350,10 @@
4
+@@ -359,10 +359,10 @@
5
  
5
  
6
  # Sanity checks
6
  # Sanity checks
7
  
7
  
16
  
16
  
17
  case $setgid_group in
17
  case $setgid_group in
18
   no) echo $0: Error: setgid_group no longer accepts \"no\" values. 1>&2
18
   no) echo $0: Error: setgid_group no longer accepts \"no\" values. 1>&2
19
-@@ -361,7 +361,7 @@
19
+@@ -370,7 +370,7 @@
20
  esac
20
  esac
21
  
21
  
22
  for path in "$daemon_directory" "$command_directory" "$queue_directory" \
22
  for path in "$daemon_directory" "$command_directory" "$queue_directory" \
23
--    "$sendmail_path" "$newaliases_path" "$mailq_path" "$manpage_directory"
24
-+    "$sendmail_path" "$newaliases_path" "$mailq_path"
23
+-    "$sendmail_path" "$newaliases_path" "$mailq_path" "$manpage_directory" \
24
++    "$sendmail_path" "$newaliases_path" "$mailq_path" \
25
+     "$meta_directory"
25
  do
26
  do
26
     case "$path" in
27
     case "$path" in
27
-    /*) ;;
28
-@@ -369,7 +369,7 @@
28
+@@ -379,7 +379,7 @@
29
     esac
29
     esac
30
  done
30
  done
31
  
31
  
32
--for path in "$html_directory" "$readme_directory"
33
-+for path in "$html_directory" "$readme_directory" "$manpage_directory"
32
+-for path in "$html_directory" "$readme_directory" "$shlib_directory"
33
++for path in "$html_directory" "$readme_directory" "$shlib_directory" "$manpage_directory"
34
  do
34
  do
35
     case "$path" in
35
     case "$path" in
36
     /*) ;;
36
     /*) ;;
37
 diff -Naur postfix-2.10.2/postfix-install postfix-2.10.2_patched/postfix-install
37
 diff -Naur postfix-2.10.2/postfix-install postfix-2.10.2_patched/postfix-install
38
 --- postfix-2.10.2/postfix-install	2012-05-22 23:40:29.000000000 +0400
38
 --- postfix-2.10.2/postfix-install	2012-05-22 23:40:29.000000000 +0400
39
 +++ postfix-2.10.2_patched/postfix-install	2013-11-19 21:12:20.694160734 +0400
39
 +++ postfix-2.10.2_patched/postfix-install	2013-11-19 21:12:20.694160734 +0400
40
-@@ -481,13 +481,13 @@
40
+@@ -543,13 +543,13 @@
41
       exit 1;;
41
       exit 1;;
42
  esac
42
  esac
43
  
43
  
56
 +#     exit 1;;
56
 +#     exit 1;;
57
 +#esac
57
 +#esac
58
  
58
  
59
- for path in "$html_directory" "$readme_directory"
59
+ for path in "$html_directory" "$readme_directory" "$shlib_directory"
60
  do
60
  do
61
-@@ -500,7 +500,7 @@
61
+@@ -562,7 +562,7 @@
62
  done
62
  done
63
  
63
  
64
  for path in "$daemon_directory" "$data_directory" "$command_directory" "$queue_directory" \
64
  for path in "$daemon_directory" "$data_directory" "$command_directory" "$queue_directory" \
65
--    "$sendmail_path" "$newaliases_path" "$mailq_path" "$manpage_directory"
66
-+    "$sendmail_path" "$newaliases_path" "$mailq_path"
65
+-    "$sendmail_path" "$newaliases_path" "$mailq_path" "$manpage_directory" \
66
++    "$sendmail_path" "$newaliases_path" "$mailq_path" \
67
+     "$meta_directory"
67
  do
68
  do
68
     case "$path" in
69
     case "$path" in
69
-    /*) ;;
70
-@@ -680,8 +680,8 @@
70
+@@ -758,8 +758,8 @@
71
  		compare_or_replace $mode "$owner" "$group" html/$file \
71
  		compare_or_replace $mode "$owner" "$group" html/$file \
72
  		    $HTML_DIRECTORY/$file || exit 1;;
72
  		    $HTML_DIRECTORY/$file || exit 1;;
73
  	'$manpage_directory')
73
  	'$manpage_directory')

+ 3
- 3
mail/postfix/patches/300-bdb_hash_segfault.patch View File

1
 diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dict_db.c
1
 diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dict_db.c
2
 --- postfix-2.11.3/src/util/dict_db.c	2012-01-25 04:41:08.000000000 +0400
2
 --- postfix-2.11.3/src/util/dict_db.c	2012-01-25 04:41:08.000000000 +0400
3
 +++ postfix-2.11.3_patched/src/util/dict_db.c	2014-11-01 12:36:44.287641712 +0300
3
 +++ postfix-2.11.3_patched/src/util/dict_db.c	2014-11-01 12:36:44.287641712 +0300
4
-@@ -691,8 +691,8 @@
4
+@@ -687,8 +687,8 @@
5
  	msg_panic("db_create null result");
5
  	msg_panic("db_create null result");
6
      if ((errno = db->set_cachesize(db, 0, dict_db_cache_size, 0)) != 0)
6
      if ((errno = db->set_cachesize(db, 0, dict_db_cache_size, 0)) != 0)
7
  	msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
7
  	msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
9
 -	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
9
 -	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
10
 +//    if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
10
 +//    if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
11
 +//	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
11
 +//	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
12
- #if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
12
+ #if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \
13
+ 	(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
13
      if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
14
      if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
14
- 	FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags,

+ 1
- 1
mail/postfix/patches/400-cdb.patch View File

1
 diff -Naur postfix-2.11.1/src/util/sys_defs.h postfix-2.11.1.patched/src/util/sys_defs.h
1
 diff -Naur postfix-2.11.1/src/util/sys_defs.h postfix-2.11.1.patched/src/util/sys_defs.h
2
 --- postfix-2.11.1/src/util/sys_defs.h	2013-09-30 00:51:55.000000000 +0400
2
 --- postfix-2.11.1/src/util/sys_defs.h	2013-09-30 00:51:55.000000000 +0400
3
 +++ postfix-2.11.1.patched/src/util/sys_defs.h	2014-09-29 03:11:48.962277971 +0400
3
 +++ postfix-2.11.1.patched/src/util/sys_defs.h	2014-09-29 03:11:48.962277971 +0400
4
-@@ -767,9 +767,8 @@
4
+@@ -768,9 +768,8 @@
5
  #define INTERNAL_LOCK	MYFLOCK_STYLE_FLOCK
5
  #define INTERNAL_LOCK	MYFLOCK_STYLE_FLOCK
6
  #define DEF_MAILBOX_LOCK "fcntl, dotlock"	/* RedHat >= 4.x */
6
  #define DEF_MAILBOX_LOCK "fcntl, dotlock"	/* RedHat >= 4.x */
7
  #define HAS_FSYNC
7
  #define HAS_FSYNC

+ 2
- 2
mail/postfix/patches/500-crosscompile.patch View File

1
 --- postfix-2.10.2/makedefs	2013-02-04 05:33:13.000000000 +0400
1
 --- postfix-2.10.2/makedefs	2013-02-04 05:33:13.000000000 +0400
2
 +++ postfix-2.10.2_patched/makedefs	2013-11-19 22:48:50.528560454 +0400
2
 +++ postfix-2.10.2_patched/makedefs	2013-11-19 22:48:50.528560454 +0400
3
-@@ -107,9 +107,9 @@
3
+@@ -190,9 +190,9 @@
4
  
4
  
5
  case $# in
5
  case $# in
6
   # Officially supported usage.
6
   # Officially supported usage.
13
      case "$VERSION" in
13
      case "$VERSION" in
14
       dcosx*) SYSTEM=$VERSION;;
14
       dcosx*) SYSTEM=$VERSION;;
15
      esac;;
15
      esac;;
16
-@@ -384,9 +384,9 @@
16
+@@ -522,9 +522,9 @@
17
  		esac
17
  		esac
18
  		for name in nsl resolv
18
  		for name in nsl resolv
19
  		do
19
  		do

+ 7
- 3
mail/postfix/patches/600-nopostconf.patch View File

1
 diff -Naur postfix-2.11.1/postfix-install postfix-2.11.1.patched/postfix-install
1
 diff -Naur postfix-2.11.1/postfix-install postfix-2.11.1.patched/postfix-install
2
 --- postfix-2.11.1/postfix-install	2014-10-05 20:43:58.598876904 +0400
2
 --- postfix-2.11.1/postfix-install	2014-10-05 20:43:58.598876904 +0400
3
 +++ postfix-2.11.1.patched/postfix-install	2014-10-05 20:47:36.076700082 +0400
3
 +++ postfix-2.11.1.patched/postfix-install	2014-10-05 20:47:36.076700082 +0400
4
-@@ -729,21 +729,21 @@
5
- # Postfix releases, and software should not suddenly be installed in
6
- # the wrong place when Postfix is being upgraded.
4
+@@ -830,23 +830,23 @@
5
+     esac
6
+ done
7
  
7
  
8
 -bin/postconf -c $CONFIG_DIRECTORY -e \
8
 -bin/postconf -c $CONFIG_DIRECTORY -e \
9
 -    "daemon_directory = $daemon_directory" \
9
 -    "daemon_directory = $daemon_directory" \
19
 -    "manpage_directory = $manpage_directory" \
19
 -    "manpage_directory = $manpage_directory" \
20
 -    "sample_directory = $sample_directory" \
20
 -    "sample_directory = $sample_directory" \
21
 -    "readme_directory = $readme_directory" \
21
 -    "readme_directory = $readme_directory" \
22
+-    "shlib_directory = $shlib_directory" \
23
+-    "meta_directory = $meta_directory" \
22
 -|| exit 1
24
 -|| exit 1
23
 +#bin/postconf -c $CONFIG_DIRECTORY -e \
25
 +#bin/postconf -c $CONFIG_DIRECTORY -e \
24
 +#    "daemon_directory = $daemon_directory" \
26
 +#    "daemon_directory = $daemon_directory" \
34
 +#    "manpage_directory = $manpage_directory" \
36
 +#    "manpage_directory = $manpage_directory" \
35
 +#    "sample_directory = $sample_directory" \
37
 +#    "sample_directory = $sample_directory" \
36
 +#    "readme_directory = $readme_directory" \
38
 +#    "readme_directory = $readme_directory" \
39
++#    "shlib_directory = $shlib_directory" \
40
++#    "meta_directory = $meta_directory" \
37
 +#|| exit 1
41
 +#|| exit 1
38
  
42
  
39
  # If Postfix is being installed locally from source code, do the
43
  # If Postfix is being installed locally from source code, do the

+ 2
- 2
mail/postfix/patches/700-defaultconfig.patch View File

1
 diff -Naur postfix-2.11.1/conf/main.cf postfix-2.11.1.patched/conf/main.cf
1
 diff -Naur postfix-2.11.1/conf/main.cf postfix-2.11.1.patched/conf/main.cf
2
 --- postfix-2.11.1/conf/main.cf	2013-12-24 18:57:25.000000000 +0400
2
 --- postfix-2.11.1/conf/main.cf	2013-12-24 18:57:25.000000000 +0400
3
 +++ postfix-2.11.1.patched/conf/main.cf	2014-10-05 21:35:53.427534410 +0400
3
 +++ postfix-2.11.1.patched/conf/main.cf	2014-10-05 21:35:53.427534410 +0400
4
-@@ -21,43 +21,8 @@
4
+@@ -40,43 +40,8 @@
5
  #
5
  #
6
  #soft_bounce = no
6
  #soft_bounce = no
7
  
7
  
45
  # The default_privs parameter specifies the default rights used by
45
  # The default_privs parameter specifies the default rights used by
46
  # the local delivery agent for delivery to external file or command.
46
  # the local delivery agent for delivery to external file or command.
47
  # These rights are used in the absence of a recipient user context.
47
  # These rights are used in the absence of a recipient user context.
48
-@@ -613,45 +578,4 @@
48
+@@ -632,45 +597,4 @@
49
  #	-dmS $process_name gdb $daemon_directory/$process_name
49
  #	-dmS $process_name gdb $daemon_directory/$process_name
50
  #	$process_id & sleep 1
50
  #	$process_id & sleep 1
51
  
51
  

+ 1
- 1
mail/postfix/patches/800-fmt.patch View File

1
 diff -Naur postfix-2.11.1/conf/post-install postfix-2.11.1.patched/conf/post-install
1
 diff -Naur postfix-2.11.1/conf/post-install postfix-2.11.1.patched/conf/post-install
2
 --- postfix-2.11.1/conf/post-install	2014-10-05 20:43:58.597876946 +0400
2
 --- postfix-2.11.1/conf/post-install	2014-10-05 20:43:58.597876946 +0400
3
 +++ postfix-2.11.1.patched/conf/post-install	2014-10-11 16:28:01.258874097 +0400
3
 +++ postfix-2.11.1.patched/conf/post-install	2014-10-11 16:28:01.258874097 +0400
4
-@@ -310,7 +310,7 @@
4
+@@ -319,7 +319,7 @@
5
  case `uname -s` in
5
  case `uname -s` in
6
  HP-UX*) FMT=cat;;
6
  HP-UX*) FMT=cat;;
7
  SunOS*) FMT=fake_fmt;;
7
  SunOS*) FMT=fake_fmt;;