Parcourir la source

postfix: upgrade to version 3.0.0

Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
Denis Shulyaka il y a 10 ans
Parent
révision
b7bc73104c

+ 21
- 5
mail/postfix/Makefile Voir le fichier

@@ -8,10 +8,10 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=postfix
11
-PKG_RELEASE:=2
11
+PKG_RELEASE:=1
12 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 15
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 16
 PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
17 17
 PKG_LICENSE:=IPL-1.0
@@ -62,7 +62,7 @@ define Package/postfix/config
62 62
 	endmenu
63 63
 endef
64 64
 
65
-CCARGS=-DNO_EPOLL -DNO_SIGSETJMP -DNO_NIS
65
+CCARGS=-DNO_EPOLL -DNO_SIGSETJMP -DNO_NIS -DNO_EAI
66 66
 AUXLIBS=-L$(STAGING_DIR)/usr/lib
67 67
 default_database_type=cdb
68 68
 
@@ -111,6 +111,8 @@ readme_directory=no
111 111
 sendmail_path=/usr/sbin/sendmail
112 112
 newaliases_path=/usr/bin/newaliases
113 113
 mailq_path=/usr/bin/mailq
114
+shlib_directory=/usr/lib/postfix
115
+meta_directory=/etc/postfix
114 116
 
115 117
 ln_suffix=.postfix
116 118
 ln_old_suffix=.old
@@ -130,6 +132,17 @@ define Build/Configure
130 132
 	cd $(PKG_BUILD_DIR); $(MAKE) makefiles CCARGS='$(CCARGS)' $(TARGET_CONFIGURE_OPTS) AUXLIBS="$(AUXLIBS)"
131 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 146
 define Build/Compile
134 147
 	# Currently postfix has a bug with Makefiles that CCARGS are not passed to the compiler, so we are copying them to CC
135 148
 	cd $(PKG_BUILD_DIR); $(MAKE) $(TARGET_CONFIGURE_OPTS) CC='$(TARGET_CC) $(CCARGS)'
@@ -150,10 +163,13 @@ define Build/Compile
150 163
 	echo "queue_directory = $(queue_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
151 164
 	echo "config_directory = $(config_directory)" >> $(PKG_BUILD_DIR)/conf/main.cf.default
152 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 169
 endef
154 170
 
155 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 173
 	$(INSTALL_DIR) $(1)$(mail_spool_directory)
158 174
 	$(INSTALL_DIR) $(1)/etc/init.d/
159 175
 	$(INSTALL_BIN) ./files/postfix.init $(1)/etc/init.d/postfix

+ 44
- 20
mail/postfix/files/main.cf.default Voir le fichier

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

+ 23
- 18
mail/postfix/files/postfix.init Voir le fichier

@@ -17,25 +17,30 @@ upgrade() {
17 17
 		echo "myhostname = $(uci get system.@system[0].hostname)" >> "$config_directory"/main.cf.default
18 18
 		echo "mydomain = $(uci get system.@system[0].hostname|sed -e "s/[^\.]*\.\(.*\)/\1/")" >> "$config_directory"/main.cf.default
19 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 45
 		postfix set-permissions
41 46
 		postfix post-install upgrade-source

+ 1
- 1
mail/postfix/patches/100-fsstat.patch Voir le fichier

@@ -1,7 +1,7 @@
1 1
 diff -rupN postfix-2.8.1/src/smtpd/smtpd_check.c postfix-2.8.1_patched/src/smtpd/smtpd_check.c
2 2
 --- postfix-2.8.1/src/smtpd/smtpd_check.c	2011-01-04 22:03:50.000000000 +0300
3 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 6
  #define BLOCKS(x)	((x) / fsbuf.block_size)
7 7
  

+ 15
- 15
mail/postfix/patches/200-manpages.patch Voir le fichier

@@ -1,7 +1,7 @@
1 1
 diff -Naur postfix-2.10.2/conf/post-install postfix-2.10.2_patched/conf/post-install
2 2
 --- postfix-2.10.2/conf/post-install	2013-06-13 18:07:46.000000000 +0400
3 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 6
  # Sanity checks
7 7
  
@@ -16,28 +16,28 @@ diff -Naur postfix-2.10.2/conf/post-install postfix-2.10.2_patched/conf/post-ins
16 16
  
17 17
  case $setgid_group in
18 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 20
  esac
21 21
  
22 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 26
  do
26 27
     case "$path" in
27
-    /*) ;;
28
-@@ -369,7 +369,7 @@
28
+@@ -379,7 +379,7 @@
29 29
     esac
30 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 34
  do
35 35
     case "$path" in
36 36
     /*) ;;
37 37
 diff -Naur postfix-2.10.2/postfix-install postfix-2.10.2_patched/postfix-install
38 38
 --- postfix-2.10.2/postfix-install	2012-05-22 23:40:29.000000000 +0400
39 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 41
       exit 1;;
42 42
  esac
43 43
  
@@ -56,18 +56,18 @@ diff -Naur postfix-2.10.2/postfix-install postfix-2.10.2_patched/postfix-install
56 56
 +#     exit 1;;
57 57
 +#esac
58 58
  
59
- for path in "$html_directory" "$readme_directory"
59
+ for path in "$html_directory" "$readme_directory" "$shlib_directory"
60 60
  do
61
-@@ -500,7 +500,7 @@
61
+@@ -562,7 +562,7 @@
62 62
  done
63 63
  
64 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 68
  do
68 69
     case "$path" in
69
-    /*) ;;
70
-@@ -680,8 +680,8 @@
70
+@@ -758,8 +758,8 @@
71 71
  		compare_or_replace $mode "$owner" "$group" html/$file \
72 72
  		    $HTML_DIRECTORY/$file || exit 1;;
73 73
  	'$manpage_directory')

+ 3
- 3
mail/postfix/patches/300-bdb_hash_segfault.patch Voir le fichier

@@ -1,7 +1,7 @@
1 1
 diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dict_db.c
2 2
 --- postfix-2.11.3/src/util/dict_db.c	2012-01-25 04:41:08.000000000 +0400
3 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 5
  	msg_panic("db_create null result");
6 6
      if ((errno = db->set_cachesize(db, 0, dict_db_cache_size, 0)) != 0)
7 7
  	msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
@@ -9,6 +9,6 @@ diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dic
9 9
 -	msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
10 10
 +//    if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
11 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 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 Voir le fichier

@@ -1,7 +1,7 @@
1 1
 diff -Naur postfix-2.11.1/src/util/sys_defs.h postfix-2.11.1.patched/src/util/sys_defs.h
2 2
 --- postfix-2.11.1/src/util/sys_defs.h	2013-09-30 00:51:55.000000000 +0400
3 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 5
  #define INTERNAL_LOCK	MYFLOCK_STYLE_FLOCK
6 6
  #define DEF_MAILBOX_LOCK "fcntl, dotlock"	/* RedHat >= 4.x */
7 7
  #define HAS_FSYNC

+ 2
- 2
mail/postfix/patches/500-crosscompile.patch Voir le fichier

@@ -1,6 +1,6 @@
1 1
 --- postfix-2.10.2/makedefs	2013-02-04 05:33:13.000000000 +0400
2 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 5
  case $# in
6 6
   # Officially supported usage.
@@ -13,7 +13,7 @@
13 13
      case "$VERSION" in
14 14
       dcosx*) SYSTEM=$VERSION;;
15 15
      esac;;
16
-@@ -384,9 +384,9 @@
16
+@@ -522,9 +522,9 @@
17 17
  		esac
18 18
  		for name in nsl resolv
19 19
  		do

+ 7
- 3
mail/postfix/patches/600-nopostconf.patch Voir le fichier

@@ -1,9 +1,9 @@
1 1
 diff -Naur postfix-2.11.1/postfix-install postfix-2.11.1.patched/postfix-install
2 2
 --- postfix-2.11.1/postfix-install	2014-10-05 20:43:58.598876904 +0400
3 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 8
 -bin/postconf -c $CONFIG_DIRECTORY -e \
9 9
 -    "daemon_directory = $daemon_directory" \
@@ -19,6 +19,8 @@ diff -Naur postfix-2.11.1/postfix-install postfix-2.11.1.patched/postfix-install
19 19
 -    "manpage_directory = $manpage_directory" \
20 20
 -    "sample_directory = $sample_directory" \
21 21
 -    "readme_directory = $readme_directory" \
22
+-    "shlib_directory = $shlib_directory" \
23
+-    "meta_directory = $meta_directory" \
22 24
 -|| exit 1
23 25
 +#bin/postconf -c $CONFIG_DIRECTORY -e \
24 26
 +#    "daemon_directory = $daemon_directory" \
@@ -34,6 +36,8 @@ diff -Naur postfix-2.11.1/postfix-install postfix-2.11.1.patched/postfix-install
34 36
 +#    "manpage_directory = $manpage_directory" \
35 37
 +#    "sample_directory = $sample_directory" \
36 38
 +#    "readme_directory = $readme_directory" \
39
++#    "shlib_directory = $shlib_directory" \
40
++#    "meta_directory = $meta_directory" \
37 41
 +#|| exit 1
38 42
  
39 43
  # If Postfix is being installed locally from source code, do the

+ 2
- 2
mail/postfix/patches/700-defaultconfig.patch Voir le fichier

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

+ 1
- 1
mail/postfix/patches/800-fmt.patch Voir le fichier

@@ -1,7 +1,7 @@
1 1
 diff -Naur postfix-2.11.1/conf/post-install postfix-2.11.1.patched/conf/post-install
2 2
 --- postfix-2.11.1/conf/post-install	2014-10-05 20:43:58.597876946 +0400
3 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 5
  case `uname -s` in
6 6
  HP-UX*) FMT=cat;;
7 7
  SunOS*) FMT=fake_fmt;;