1 |
eras 12/11/02 15:13:27 |
2 |
|
3 |
Modified: postfix-2.10_pre20121022.ebuild ChangeLog |
4 |
Log: |
5 |
Add smtpd_relay_restrictions compatibility shim |
6 |
|
7 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 mail-mta/postfix/postfix-2.10_pre20121022.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: postfix-2.10_pre20121022.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- postfix-2.10_pre20121022.ebuild 23 Oct 2012 07:44:28 -0000 1.1 |
23 |
+++ postfix-2.10_pre20121022.ebuild 2 Nov 2012 15:13:27 -0000 1.2 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2012 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild,v 1.1 2012/10/23 07:44:28 eras Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121022.ebuild,v 1.2 2012/11/02 15:13:27 eras Exp $ |
29 |
|
30 |
EAPI=4 |
31 |
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator |
32 |
@@ -262,6 +262,7 @@ |
33 |
} |
34 |
|
35 |
pkg_preinst() { |
36 |
+ # Postfix 2.9. |
37 |
# default for inet_protocols changed from ipv4 to all in postfix-2.9. |
38 |
# check inet_protocols setting in main.cf and modify if necessary to prevent |
39 |
# performance loss with useless DNS lookups and useless connection attempts. |
40 |
@@ -278,6 +279,22 @@ |
41 |
fi |
42 |
fi |
43 |
} |
44 |
+ |
45 |
+ # Postfix 2.10. |
46 |
+ # Safety net for incompatible changes due to the introduction |
47 |
+ # of the smtpd_relay_restrictions feature to separate the |
48 |
+ # mail relay policy from the spam blocking policy. |
49 |
+ [[ -d ${ROOT}/etc/postfix ]] && { |
50 |
+ if [[ ! -n "$(${D}/usr/sbin/postconf -c ${ROOT}/etc/postfix -n smtpd_relay_restrictions)" ]]; |
51 |
+ then |
52 |
+ local myconf="smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination" |
53 |
+ ewarn "\nCOMPATIBILITY: adding smtpd_relay_restrictions to main.cf" |
54 |
+ ewarn "to prevent inbound mail from unexpectedly bouncing." |
55 |
+ ewarn "Specify an empty smtpd_relay_restrictions value to keep using" |
56 |
+ ewarn "smtpd_recipient_restrictions as before.\n" |
57 |
+ "${D}"/usr/sbin/postconf -c "${D}"/etc/postfix -e ${myconf} || die |
58 |
+ fi |
59 |
+ } |
60 |
} |
61 |
|
62 |
pkg_postinst() { |
63 |
|
64 |
|
65 |
|
66 |
1.397 mail-mta/postfix/ChangeLog |
67 |
|
68 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.397&view=markup |
69 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.397&content-type=text/plain |
70 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?r1=1.396&r2=1.397 |
71 |
|
72 |
Index: ChangeLog |
73 |
=================================================================== |
74 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v |
75 |
retrieving revision 1.396 |
76 |
retrieving revision 1.397 |
77 |
diff -u -r1.396 -r1.397 |
78 |
--- ChangeLog 30 Oct 2012 19:38:28 -0000 1.396 |
79 |
+++ ChangeLog 2 Nov 2012 15:13:27 -0000 1.397 |
80 |
@@ -1,6 +1,9 @@ |
81 |
# ChangeLog for mail-mta/postfix |
82 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
83 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.396 2012/10/30 19:38:28 eras Exp $ |
84 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.397 2012/11/02 15:13:27 eras Exp $ |
85 |
+ |
86 |
+ 02 Nov 2012; Eray Aslan <eras@g.o> postfix-2.10_pre20121022.ebuild: |
87 |
+ Add smtpd_relay_restrictions compatibility shim |
88 |
|
89 |
30 Oct 2012; Eray Aslan <eras@g.o> -files/postfix-2.9.3-freebsd9.patch, |
90 |
-files/postfix.rc6.2.6, -postfix-2.8.10.ebuild, -postfix-2.8.11.ebuild, |