1 |
slords |
1.1 |
diff -up smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers.qpsmtpd83 smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers |
2 |
|
|
--- smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers.qpsmtpd83 2009-10-29 14:03:00.000000000 -0600 |
3 |
|
|
+++ smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers 2009-10-29 14:02:37.000000000 -0600 |
4 |
|
|
@@ -54,7 +54,7 @@ sub init { |
5 |
|
|
if (-e "$dir/$plugin") { |
6 |
|
|
Qpsmtpd::Plugin->compile($plugin_name, $package, |
7 |
|
|
"$dir/$plugin", $self->{_test_mode}, $plugin); |
8 |
|
|
- $self->log(LOGDEBUG, "Loading $plugin_line from $dir/$plugin") |
9 |
|
|
+ Qpsmtpd->varlog(LOGDEBUG, "init", "peers", "Loading $plugin_line from $dir/$plugin") |
10 |
|
|
unless $plugin_line =~ /logging/; |
11 |
|
|
last PLUGIN_DIR; |
12 |
|
|
} |
13 |
|
|
@@ -69,10 +69,8 @@ sub init { |
14 |
|
|
sub _peer_plugins { |
15 |
|
|
my $qp = shift; |
16 |
|
|
my $config = shift; |
17 |
|
|
- $qp->{hooks} = {}; |
18 |
|
|
|
19 |
|
|
my @plugins = $qp->config($config); |
20 |
|
|
- unshift @plugins, "peers $config"; |
21 |
|
|
my @loaded; |
22 |
|
|
|
23 |
|
|
for my $plugin_line (@plugins) { |
24 |
|
|
diff -up smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/plugins.qpsmtpd83 smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/plugins |
25 |
|
|
--- smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/plugins.qpsmtpd83 2008-10-07 09:02:36.000000000 -0600 |
26 |
|
|
+++ smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/plugins 2009-10-29 13:50:03.000000000 -0600 |
27 |
|
|
@@ -5,3 +5,4 @@ |
28 |
|
|
#------------------------------------------------------------ |
29 |
|
|
hosts_allow |
30 |
|
|
peers |
31 |
|
|
+tls ssl/cert.pem ssl/cert.pem ssl/cert.pem |
32 |
|
|
diff -up smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth.qpsmtpd83 smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth |
33 |
|
|
--- smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth.qpsmtpd83 2009-10-29 13:51:39.000000000 -0600 |
34 |
|
|
+++ smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth 2009-10-29 13:51:39.000000000 -0600 |
35 |
|
|
@@ -0,0 +1 @@ |
36 |
|
|
+1 |
37 |
|
|
diff -up smeserver-qpsmtpd-2.0.0/root/var/service/sqpsmtpd/run.qpsmtpd83 smeserver-qpsmtpd-2.0.0/root/var/service/sqpsmtpd/run |
38 |
|
|
--- smeserver-qpsmtpd-2.0.0/root/var/service/sqpsmtpd/run.qpsmtpd83 2006-02-05 07:38:30.000000000 -0700 |
39 |
|
|
+++ smeserver-qpsmtpd-2.0.0/root/var/service/sqpsmtpd/run 2009-10-29 13:48:34.000000000 -0600 |
40 |
|
|
@@ -1,37 +1,47 @@ |
41 |
|
|
#!/bin/sh |
42 |
|
|
#---------------------------------------------------------------------- |
43 |
|
|
-# copyright (C) 1999-2003 Mitel Networks Corporation |
44 |
|
|
-# |
45 |
|
|
+# copyright (C) 1999-2005 Mitel Networks Corporation |
46 |
|
|
+# Copyright (C) 2005-2006 Gordon Rowell <gordonr@gormand.com.au> |
47 |
|
|
+# |
48 |
|
|
# This program is free software; you can redistribute it and/or modify |
49 |
|
|
# it under the terms of the GNU General Public License as published by |
50 |
|
|
# the Free Software Foundation; either version 2 of the License, or |
51 |
|
|
# (at your option) any later version. |
52 |
|
|
-# |
53 |
|
|
+# |
54 |
|
|
# This program is distributed in the hope that it will be useful, |
55 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
56 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
57 |
|
|
# GNU General Public License for more details. |
58 |
|
|
-# |
59 |
|
|
+# |
60 |
|
|
# You should have received a copy of the GNU General Public License |
61 |
|
|
# along with this program; if not, write to the Free Software |
62 |
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
63 |
|
|
-# |
64 |
|
|
-# Technical support for this program is available from Mitel Networks |
65 |
|
|
-# Please visit our web site www.mitel.com/sme/ for details. |
66 |
|
|
#---------------------------------------------------------------------- |
67 |
|
|
|
68 |
|
|
[ -f ./runenv ] && . ./runenv |
69 |
|
|
|
70 |
|
|
export QPSMTPD_CONFIG=/var/service/qpsmtpd/config |
71 |
|
|
|
72 |
|
|
-exec 2>&1 |
73 |
|
|
-exec /usr/bin/tcpsvd \ |
74 |
|
|
- -v \ |
75 |
|
|
- -i ../qpsmtpd/peers \ |
76 |
|
|
- -c ${INSTANCES:-10} \ |
77 |
|
|
- -C ${INSTANCES_PER_IP:-5}:'421 per host concurrency limit reached\r\n' \ |
78 |
|
|
- -l ${TCPLOCALHOST:-0} \ |
79 |
|
|
- ${LISTENIP:-0} \ |
80 |
|
|
- ${PORT:-465} \ |
81 |
|
|
- ./sqpsmtpd |
82 |
|
|
+../qpsmtpd/control/1 |
83 |
|
|
|
84 |
|
|
+exec /usr/local/bin/softlimit -d ${SOFTLIMIT:-25000000} -s ${SOFTLIMIT:-25000000} -l ${SOFTLIMIT:-25000000} \ |
85 |
|
|
+ /usr/bin/qpsmtpd-forkserver \ |
86 |
|
|
+ -u qpsmtpd \ |
87 |
|
|
+ -l 0.0.0.0 \ |
88 |
|
|
+ -p ${PORT:-465} \ |
89 |
|
|
+ -c ${INSTANCES:-40} \ |
90 |
|
|
+ -m ${INSTANCES_PER_IP:-5} \ |
91 |
|
|
+ 2>&1 |
92 |
|
|
+ |
93 |
|
|
+#sub usage { |
94 |
|
|
+# print <<"EOT"; |
95 |
|
|
+#usage: qpsmtpd-forkserver [ options ] |
96 |
|
|
+# -l, --listen-address addr : listen on a specific address; default 0.0.0.0 |
97 |
|
|
+# -p, --port P : listen on a specific port; default 2525 |
98 |
|
|
+# -c, --limit-connections N : limit concurrent connections to N; default 15 |
99 |
|
|
+# -u, --user U : run as a particular user (defualt 'smtpd') |
100 |
|
|
+# -m, --max-from-ip M : limit connections from a single IP; default 5 |
101 |
|
|
+#EOT |
102 |
|
|
+# exit 0; |
103 |
|
|
+#} |
104 |
|
|
+# |