/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.83-peer_hooks.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme9/qpsmtpd-0.83-peer_hooks.patch

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


Revision 1.1 - (show annotations) (download)
Sat Feb 2 00:59:45 2013 UTC (11 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_84-14_el6_sme, qpsmtpd-0_84-16_el6_sme, qpsmtpd-0_84-12_el6_sme, qpsmtpd-0_96-7_el6_sme, qpsmtpd-0_96-2_el6_sme, qpsmtpd-0_84-13_el6_sme, qpsmtpd-0_84-6_el6_sme, qpsmtpd-0_84-18_el6_sme, qpsmtpd-0_84-9_el6_sme, qpsmtpd-0_84-4_el6_sme, qpsmtpd-0_96-11_el6_sme, qpsmtpd-0_84-15_el6_sme, qpsmtpd-0_96-4_el6_sme, qpsmtpd-0_96-3_el6_sme, qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_84-17_el6_sme, qpsmtpd-0_84-7_el6_sme, qpsmtpd-0_96-5_el6_sme, qpsmtpd-0_84-10_el6_sme, qpsmtpd-0_84-8_el6_sme, qpsmtpd-0_96-1_el6_sme, qpsmtpd-0_84-5_el6_sme, qpsmtpd-0_96-6_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_84-11_el6_sme, qpsmtpd-0_96-9_el6_sme, HEAD
* Fri Feb 1 2013 Shad L. Lords <slords@mail.com> 0.84-4.sme
- Update spec so building on rhel6 works [SME: 7263]

1 --- qpsmtpd-0.40/lib/Qpsmtpd/SMTP.pm.peer_hooks 2007-06-14 11:57:27.000000000 -0600
2 +++ qpsmtpd-0.40/lib/Qpsmtpd/SMTP.pm 2007-06-14 13:44:52.000000000 -0600
3 @@ -95,6 +95,11 @@
4 my $self = shift;
5 # this should maybe be called something else than "connect", see
6 # lib/Qpsmtpd/TcpServer.pm for more confusion.
7 + my ($rc, $msg) = $self->run_hooks("set_hooks");
8 + if ($rc == DENY) {
9 + $self->respond(550, ($msg || 'Connection from you denied, bye bye.'));
10 + return $rc;
11 + }
12 $self->run_hooks("connect");
13 return DONE;
14 }
15 @@ -279,7 +284,9 @@
16
17 # if we don't have a plugin implementing this auth mechanism, 504
18 if( exists $auth_mechanisms{uc($mechanism)} ) {
19 - return $self->{_auth} = Qpsmtpd::Auth::SASL( $self, $mechanism, @stuff );
20 + $self->{_auth} = Qpsmtpd::Auth::SASL( $self, $mechanism, @stuff );
21 + $self->run_hooks("valid_auth") if $self->{_auth} == OK;
22 + return $self->{_auth};
23 } else {
24 $self->respond( 504, "Unimplemented authentification mechanism: $mechanism" );
25 return DENY;
26 --- qpsmtpd-0.40/lib/Qpsmtpd/Plugin.pm.peer_hooks 2007-06-14 11:57:27.000000000 -0600
27 +++ qpsmtpd-0.40/lib/Qpsmtpd/Plugin.pm 2007-06-14 13:43:53.000000000 -0600
28 @@ -6,7 +6,7 @@
29 our @hooks = qw(
30 logging config post-fork pre-connection connect ehlo_parse ehlo
31 helo_parse helo auth_parse auth auth-plain auth-login auth-cram-md5
32 - rcpt_parse rcpt_pre rcpt mail_parse mail mail_pre
33 + valid_auth set_hooks rcpt_parse rcpt_pre rcpt mail_parse mail mail_pre
34 data data_headers_end data_post queue_pre queue queue_post vrfy noop
35 quit reset_transaction disconnect post-connection
36 unrecognized_command deny ok received_line help

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