/[smeserver]/rpms/smeserver-qpsmtpd/sme8/smeserver-qpsmtpd-2.2.0-qpsmtpd83.patch
ViewVC logotype

Diff of /rpms/smeserver-qpsmtpd/sme8/smeserver-qpsmtpd-2.2.0-qpsmtpd83.patch

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

Revision 1.3 by slords, Fri Oct 30 00:35:38 2009 UTC Revision 1.4 by slords, Fri Oct 30 03:25:31 2009 UTC
# Line 1  Line 1 
1  diff -up smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers.t smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers  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.t      2008-10-07 09:02:36.000000000 -0600  --- smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers.qpsmtpd83      2008-10-07 09:02:36.000000000 -0600
3  +++ smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers        2009-10-29 18:34:26.000000000 -0600  +++ smeserver-qpsmtpd-2.0.0/root/usr/share/qpsmtpd/plugins/peers        2009-10-29 18:34:26.000000000 -0600
4  @@ -54,7 +54,7 @@ sub init {  @@ -54,7 +54,7 @@ sub init {
5              if (-e "$dir/$plugin") {              if (-e "$dir/$plugin") {
# Line 10  diff -up smeserver-qpsmtpd-2.0.0/root/us Line 10  diff -up smeserver-qpsmtpd-2.0.0/root/us
10                  unless $plugin_line =~ /logging/;                  unless $plugin_line =~ /logging/;
11                last PLUGIN_DIR;                last PLUGIN_DIR;
12              }              }
13  @@ -69,7 +69,9 @@ sub init {  @@ -68,8 +68,11 @@ sub init {
14    
15   sub _peer_plugins {   sub _peer_plugins {
16      my $qp = shift;      my $qp = shift;
17    +   my $hook = shift;
18      my $config = shift;      my $config = shift;
19  -   $qp->{hooks} = {};  -   $qp->{hooks} = {};
20  +  +
# Line 21  diff -up smeserver-qpsmtpd-2.0.0/root/us Line 23  diff -up smeserver-qpsmtpd-2.0.0/root/us
23    
24      my @plugins = $qp->config($config);      my @plugins = $qp->config($config);
25      unshift @plugins, "peers $config";      unshift @plugins, "peers $config";
26  @@ -79,6 +81,7 @@ sub _peer_plugins {  @@ -80,6 +83,12 @@ sub _peer_plugins {
       my $this_plugin = $qp->_load_plugin($plugin_line, $qp->plugin_dirs);  
27        push @loaded, $this_plugin if $this_plugin;        push @loaded, $this_plugin if $this_plugin;
28      }      }
 +   unshift @{$qp->hooks->{connect}}, @{$hooks->{connect}} if exists $hooks->{connect} && $hook eq 'set_hooks';  
29    
30    +   if ($hook eq 'set_hooks') {
31    +     foreach my $c (@{$hooks->{connect}}) {
32    +       unshift @{$qp->hooks->{connect}}, $c unless grep { $c->{name} eq $_->{name} } @{$hooks->{connect}};
33    +     }
34    +   }
35    +
36      return @loaded;      return @loaded;
37   }   }
38  @@ -91,13 +94,13 @@ sub hook_set_hooks {  
39    @@ -91,13 +100,13 @@ sub hook_set_hooks {
40      my $client_ip = $qp->connection->remote_ip;      my $client_ip = $qp->connection->remote_ip;
41      while ($client_ip) {      while ($client_ip) {
42        if (-f "config/peers/$client_ip") {        if (-f "config/peers/$client_ip") {
# Line 45  diff -up smeserver-qpsmtpd-2.0.0/root/us Line 52  diff -up smeserver-qpsmtpd-2.0.0/root/us
52        return (DECLINED);        return (DECLINED);
53      }      }
54      return (DENY);      return (DENY);
55  @@ -106,6 +109,6 @@ sub hook_set_hooks {  @@ -106,6 +115,6 @@ sub hook_set_hooks {
56   sub hook_valid_auth {   sub hook_valid_auth {
57      my ( $self, $transaction) = @_;      my ( $self, $transaction) = @_;
58      my $qp = $self->qp;      my $qp = $self->qp;
# Line 61  diff -up smeserver-qpsmtpd-2.0.0/root/va Line 68  diff -up smeserver-qpsmtpd-2.0.0/root/va
68   hosts_allow   hosts_allow
69   peers   peers
70  +tls ssl/cert.pem ssl/cert.pem ssl/cert.pem  +tls ssl/cert.pem ssl/cert.pem ssl/cert.pem
71    diff -up smeserver-qpsmtpd-2.0.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/04tls.qpsmtpd83 smeserver-qpsmtpd-2.0.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/04tls
72    --- smeserver-qpsmtpd-2.0.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/04tls.qpsmtpd83       2009-10-29 21:03:34.000000000 -0600
73    +++ smeserver-qpsmtpd-2.0.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/04tls 2009-10-29 21:03:28.000000000 -0600
74    @@ -0,0 +1 @@
75    +tls ssl/cert.pem ssl/cert.pem ssl/cert.pem
76  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  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
77  --- smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth.qpsmtpd83   2009-10-29 13:51:39.000000000 -0600  --- smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth.qpsmtpd83   2009-10-29 13:51:39.000000000 -0600
78  +++ smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth     2009-10-29 13:51:39.000000000 -0600  +++ smeserver-qpsmtpd-2.0.0/root/var/service/qpsmtpd/config/tls_before_auth     2009-10-29 13:51:39.000000000 -0600


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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