1 |
vip-ire |
1.1 |
diff -Nur e-smith-pop3-2.6.0/createlinks e-smith-pop3-2.6.0_bz10271/createlinks |
2 |
|
|
--- e-smith-pop3-2.6.0/createlinks 2016-02-05 23:06:08.000000000 +0100 |
3 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/createlinks 2017-05-04 12:03:22.400665877 +0200 |
4 |
|
|
@@ -5,7 +5,7 @@ |
5 |
|
|
foreach my $event (qw( |
6 |
|
|
bootstrap-console-save network-delete network-create email-update)) |
7 |
|
|
{ |
8 |
|
|
- foreach (qw(pop3/peers/0 pop3/peers/local pop3s/peers/0 pop3s/peers/local pop3s/stunnel.conf)) |
9 |
|
|
+ foreach (qw(pop3/peers/0 pop3/peers/local pop3s/peers/0 pop3s/peers/local)) |
10 |
|
|
{ |
11 |
|
|
templates2events("/var/service/$_", $event); |
12 |
|
|
} |
13 |
|
|
@@ -13,9 +13,10 @@ |
14 |
|
|
|
15 |
|
|
templates2events("/etc/pam.d/pop3", "console-save"); |
16 |
|
|
|
17 |
|
|
-foreach my $file (qw(/etc/pam.d/pop3 /var/service/pop3/env/MEMLIMIT /var/service/pop3s/env/MEMLIMIT)) |
18 |
|
|
+foreach my $file (qw(/etc/pam.d/pop3 /var/service/pop3/runenv /var/service/pop3s/runenv /var/service/pop3s/stunnel.conf)) |
19 |
|
|
{ |
20 |
|
|
templates2events($file, "bootstrap-console-save"); |
21 |
|
|
+ templates2events($file, "email-update"); |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
foreach my $event (qw(network-delete network-create email-update)) |
25 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/env/MEMLIMIT e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/env/MEMLIMIT |
26 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/env/MEMLIMIT 2013-02-07 23:09:04.000000000 +0100 |
27 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/env/MEMLIMIT 1970-01-01 01:00:00.000000000 +0100 |
28 |
|
|
@@ -1,9 +0,0 @@ |
29 |
|
|
-{ |
30 |
|
|
-# memory limit to catch any memory leak before it kills the system |
31 |
|
|
-my $MIN_MEMORY_LIMIT = 40000000; |
32 |
|
|
- |
33 |
|
|
-# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT |
34 |
|
|
-my $limit = $pop3{MemLimit} || $MIN_MEMORY_LIMIT; |
35 |
|
|
-$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT; |
36 |
|
|
-$OUT = "$limit"; |
37 |
|
|
-} |
38 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/10Fqdn e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/10Fqdn |
39 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/10Fqdn 1970-01-01 01:00:00.000000000 +0100 |
40 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/10Fqdn 2017-05-04 11:46:02.005805454 +0200 |
41 |
|
|
@@ -0,0 +1 @@ |
42 |
|
|
+FQDN={ $SystemName . '.' . $DomainName } |
43 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/15Instances e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/15Instances |
44 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/15Instances 1970-01-01 01:00:00.000000000 +0100 |
45 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/15Instances 2017-05-04 11:52:48.842750449 +0200 |
46 |
|
|
@@ -0,0 +1,2 @@ |
47 |
|
|
+PER_IP_INSTANCES={ $pop3{ConcurrencyLimitPerIP} || '4' } |
48 |
|
|
+CONCURRENCYREMOTE={ $pop3{ConcurrencyLimit} || '40' } |
49 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/20Mem e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/20Mem |
50 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/20Mem 1970-01-01 01:00:00.000000000 +0100 |
51 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/20Mem 2017-05-04 11:54:53.631733688 +0200 |
52 |
|
|
@@ -0,0 +1,9 @@ |
53 |
|
|
+{ |
54 |
|
|
+# memory limit to catch any memory leak before it kills the system |
55 |
|
|
+my $MIN_MEMORY_LIMIT = 40000000; |
56 |
|
|
+ |
57 |
|
|
+# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT |
58 |
|
|
+my $limit = $pop3{MemLimit} || $MIN_MEMORY_LIMIT; |
59 |
|
|
+$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT; |
60 |
|
|
+$OUT = "MEM=$limit"; |
61 |
|
|
+} |
62 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/25Listen e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/25Listen |
63 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3/runenv/25Listen 1970-01-01 01:00:00.000000000 +0100 |
64 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3/runenv/25Listen 2017-05-04 11:56:51.841717860 +0200 |
65 |
|
|
@@ -0,0 +1,2 @@ |
66 |
|
|
+LISTENIP={ $pop3{ListenIP} || '0' } |
67 |
|
|
+PORT={ $pop3{TCPPort} || '110' } |
68 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/env/MEMLIMIT e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/env/MEMLIMIT |
69 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/env/MEMLIMIT 2016-02-05 23:06:07.000000000 +0100 |
70 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/env/MEMLIMIT 1970-01-01 01:00:00.000000000 +0100 |
71 |
|
|
@@ -1,9 +0,0 @@ |
72 |
|
|
-{ |
73 |
|
|
-# memory limit to catch any memory leak before it kills the system |
74 |
|
|
-my $MIN_MEMORY_LIMIT = 80000000; |
75 |
|
|
- |
76 |
|
|
-# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT |
77 |
|
|
-my $limit = $pop3s{MemLimit} || $MIN_MEMORY_LIMIT; |
78 |
|
|
-$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT; |
79 |
|
|
-$OUT = "$limit"; |
80 |
|
|
-} |
81 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/10Fqdn e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/10Fqdn |
82 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/10Fqdn 1970-01-01 01:00:00.000000000 +0100 |
83 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/10Fqdn 2017-05-04 11:46:02.005805454 +0200 |
84 |
|
|
@@ -0,0 +1 @@ |
85 |
|
|
+FQDN={ $SystemName . '.' . $DomainName } |
86 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/15Instances e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/15Instances |
87 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/15Instances 1970-01-01 01:00:00.000000000 +0100 |
88 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/15Instances 2017-05-04 11:59:57.298693121 +0200 |
89 |
|
|
@@ -0,0 +1,2 @@ |
90 |
|
|
+PER_IP_INSTANCES={ $pop3s{ConcurrencyLimitPerIP} || '4' } |
91 |
|
|
+CONCURRENCYREMOTE={ $pop3s{ConcurrencyLimit} || '40' } |
92 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/20Mem e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/20Mem |
93 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/20Mem 1970-01-01 01:00:00.000000000 +0100 |
94 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/20Mem 2017-05-04 12:00:29.472688838 +0200 |
95 |
|
|
@@ -0,0 +1,9 @@ |
96 |
|
|
+{ |
97 |
|
|
+# memory limit to catch any memory leak before it kills the system |
98 |
|
|
+my $MIN_MEMORY_LIMIT = 80000000; |
99 |
|
|
+ |
100 |
|
|
+# The MIN_MEMORY_LIMIT is returned unless the DB variable is defined and greater than MIN_MEMORY_LIMIT |
101 |
|
|
+my $limit = $pop3s{MemLimit} || $MIN_MEMORY_LIMIT; |
102 |
|
|
+$limit = $MIN_MEMORY_LIMIT if $limit < $MIN_MEMORY_LIMIT; |
103 |
|
|
+$OUT = "MEM=$limit"; |
104 |
|
|
+} |
105 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/25Listen e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/25Listen |
106 |
|
|
--- e-smith-pop3-2.6.0/root/etc/e-smith/templates/var/service/pop3s/runenv/25Listen 1970-01-01 01:00:00.000000000 +0100 |
107 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/etc/e-smith/templates/var/service/pop3s/runenv/25Listen 2017-05-04 12:00:38.119687688 +0200 |
108 |
|
|
@@ -0,0 +1,2 @@ |
109 |
|
|
+LISTENIP={ $pop3s{ListenIP} || '0' } |
110 |
|
|
+PORT={ $pop3s{TCPPort} || '110' } |
111 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/var/service/pop3/run e-smith-pop3-2.6.0_bz10271/root/var/service/pop3/run |
112 |
|
|
--- e-smith-pop3-2.6.0/root/var/service/pop3/run 2013-02-07 23:09:04.000000000 +0100 |
113 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/var/service/pop3/run 2017-05-04 11:58:00.897708638 +0200 |
114 |
|
|
@@ -1,9 +1,6 @@ |
115 |
|
|
#!/bin/sh |
116 |
|
|
|
117 |
|
|
-hostname=$(/sbin/e-smith/config get SystemName) |
118 |
|
|
-domain=$(/sbin/e-smith/config get DomainName) |
119 |
|
|
-fqdn="$hostname.$domain" |
120 |
|
|
-MEM="`head -1 ./env/MEMLIMIT`" |
121 |
|
|
+[ -f ./runenv ] && . ./runenv |
122 |
|
|
|
123 |
|
|
exec 2>&1 |
124 |
|
|
# Generate ACL files in ./peers |
125 |
|
|
diff -Nur e-smith-pop3-2.6.0/root/var/service/pop3s/run e-smith-pop3-2.6.0_bz10271/root/var/service/pop3s/run |
126 |
|
|
--- e-smith-pop3-2.6.0/root/var/service/pop3s/run 2016-02-05 23:06:07.000000000 +0100 |
127 |
|
|
+++ e-smith-pop3-2.6.0_bz10271/root/var/service/pop3s/run 2017-05-04 11:58:20.520706019 +0200 |
128 |
|
|
@@ -1,6 +1,6 @@ |
129 |
|
|
#!/bin/sh |
130 |
|
|
|
131 |
|
|
-MEM="`head -1 ./env/MEMLIMIT`" |
132 |
|
|
+[ -f ./runenv ] && . ./runenv |
133 |
|
|
|
134 |
|
|
exec 2>&1 |
135 |
|
|
exec /usr/local/bin/softlimit -m ${MEM} \ |
136 |
jpp |
1.2 |
diff -Nur e-smith-pop3-2.6.0.old/root/var/service/pop3/run e-smith-pop3-2.6.0/root/var/service/pop3/run |
137 |
|
|
--- e-smith-pop3-2.6.0.old/root/var/service/pop3/run 2018-03-27 11:19:01.993000000 -0400 |
138 |
|
|
+++ e-smith-pop3-2.6.0/root/var/service/pop3/run 2018-03-27 11:43:20.928000000 -0400 |
139 |
|
|
@@ -14,5 +14,5 @@ |
140 |
|
|
-l ${LOCALNAME:-0} \ |
141 |
|
|
${LISTENIP:-0} \ |
142 |
|
|
${PORT:-pop3} \ |
143 |
|
|
- /var/qmail/bin/qmail-popup $fqdn \ |
144 |
|
|
+ /var/qmail/bin/qmail-popup $FQDN \ |
145 |
|
|
checkpassword-pam -s pop3 /var/qmail/bin/qmail-pop3d Maildir |
146 |
|
|
|