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

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

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


Revision 1.2 - (hide annotations) (download)
Tue Jul 3 04:19:02 2012 UTC (12 years, 1 month ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Allow blacklist of SMTP AUTH methods, replaces previous patch [SME: 7017]

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-03-05 01:20:39.000000000 +0000
3     +++ e-smith-email-5.2.0/root/usr/local/sbin/smtp-auth-proxy.pl 2012-03-05 01:28:14.000000000 +0000
4     @@ -28,6 +28,7 @@
5     $prop->{Debug} = $smtp_proxy_rec->prop('Debug');
6     $prop->{SystemName} = $config->get_value('SystemName');
7     $prop->{DomainName} = $config->get_value('DomainName');
8     + $prop->{MD5Patch} = $smtp_proxy_rec->prop('MD5Patch') || "disabled";
9     $prop->{PeerPort} = $smtp_proxy_rec->prop('PeerPort') || 25;
10     $prop->{Helo} = $config->get('smtpd')->prop('HeloHost') ||
11     "$prop->{SystemName}.$prop->{DomainName}";
12     @@ -92,6 +93,10 @@
13    
14     if ($smtp->supports("AUTH"))
15     {
16     + if ( $self->get_property('MD5Patch') eq "enabled" )
17     + {
18     + ${*$smtp}{'net_smtp_esmtp'}->{"AUTH"} = "PLAIN LOGIN";
19     + }
20     unless ($smtp->auth($name, $pass))
21     {
22     print "451 Could not auth to mail server\n";

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