/[smeserver]/rpms/smeserver-qpsmtpd/sme7/smeserver-qpsmtpd-2.0.0-qpsmtpd83.patch
ViewVC logotype

Annotation of /rpms/smeserver-qpsmtpd/sme7/smeserver-qpsmtpd-2.0.0-qpsmtpd83.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Fri Oct 30 00:31:46 2009 UTC (15 years ago) by slords
Branch: MAIN
Changes since 1.1: +12 -4 lines
Fix patch

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed