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"; |