/[smeserver]/rpms/e-smith-email/sme8/e-smith-email-5.2.0-StartTLS.patch
ViewVC logotype

Annotation of /rpms/e-smith-email/sme8/e-smith-email-5.2.0-StartTLS.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Dec 20 03:31:45 2012 UTC (11 years, 5 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-email-5_2_0-24_el5_sme, e-smith-email-5_2_0-19_el5_sme, e-smith-email-5_2_0-20_el5_sme, e-smith-email-5_2_0-21_el5_sme, e-smith-email-5_2_0-22_el5_sme, e-smith-email-5_2_0-27_el5_sme, e-smith-email-5_2_0-23_el5_sme, e-smith-email-5_2_0-25_el5_sme, e-smith-email-5_2_0-26_el5_sme, e-smith-email-5_2_0-28_el5_sme, HEAD
Allow smtp_auth_proxy to use port 587 with STARTTLS, by Charlie Brady [SME: 6922]

1 wellsi 1.1 diff -ruN e-smith-email-5.2.0.old/root/usr/local/sbin/smtp-auth-proxy.pl e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl
2     --- e-smith-email-5.2.0.old/root/usr/local/sbin/smtp-auth-proxy.pl 2012-12-20 03:05:41.000000000 +0000
3     +++ e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl 2012-12-20 03:19:59.000000000 +0000
4     @@ -91,6 +91,27 @@
5    
6     my @ehlo = $smtp->message;
7    
8     + if (grep { /STARTTLS$/ } @ehlo)
9     + {
10     + $smtp->command('STARTTLS');
11     + my $response = $smtp->response;
12     + my $status = $smtp->message;
13     + use IO::Socket::SSL;
14     + my $sslret = IO::Socket::SSL->start_SSL(
15     + $smtp,
16     + Timeout => 30,
17     + SSL_startHandshake => 1
18     + );
19     + unless ($sslret) {
20     + my $error = IO::Socket::SSL::errstr();
21     + print("454 TLS not available due to temporary reason [$error]");
22     + }
23     + bless $smtp, 'Net::SMTP::SSL';
24     + $smtp->reset;
25     + $smtp->hello("${system_name}.${domain_name}");
26     + @ehlo = $smtp->message;
27     + }
28     +
29     if ($smtp->supports("AUTH"))
30     {
31     foreach (split (/ /, $self->get_property('Blacklist')))

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