Skip to content

Commit e6f4c25

Browse files
author
Shad L. Lords
committed
* Sun Oct 31 2010 Shad L. Lords <[email protected]> 5.2.0-12.sme
- Add smtp auth into web interface, not just when enabled [SME: 6318]
1 parent b261aad commit e6f4c25

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

e-smith-email-5.2.0-smtp-auth.patch

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff -up e-smith-email-5.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/emailsettings.pm.smtp-auth e-smith-email-5.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/emailsettings.pm
2+
--- e-smith-email-5.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/emailsettings.pm.smtp-auth 2010-10-31 12:39:36.000000000 -0600
3+
+++ e-smith-email-5.2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/emailsettings.pm 2010-10-31 12:47:06.000000000 -0600
4+
@@ -229,7 +229,7 @@ sub change_settings_reception
5+
}
6+
}
7+
8+
- my $smtpAuth = ($q->param('SMTPAuth') || 'disabled');
9+
+ my $smtpAuth = ($q->param('SMTPAuth') || 'public');
10+
if ($smtpAuth eq 'public') {
11+
$db->set_prop("smtpd", "Authentication", "enabled" );
12+
$db->set_prop("ssmtpd", "Authentication", "enabled" );
13+
@@ -521,10 +521,10 @@ sub get_current_smtp_auth {
14+
my ($fm, $localise) = @_;
15+
16+
my $smtpStatus = $db->get_prop('smtpd', 'status') || 'enabled';
17+
- my $smtpAuth = $db->get_prop('smtpd', 'Authentication') || 'disabled';
18+
+ my $smtpAuth = $db->get_prop('smtpd', 'Authentication') || 'enabled';
19+
20+
my $smtpsStatus = $db->get_prop('ssmtpd', 'status') || 'enabled';
21+
- my $smtpsAuth = $db->get_prop('ssmtpd', 'Authentication') || 'disabled';
22+
+ my $smtpsAuth = $db->get_prop('ssmtpd', 'Authentication') || 'enabled';
23+
24+
my $options = get_smtp_auth_options();
25+
26+
@@ -696,11 +696,7 @@ sub get_patterns_current_options
27+
28+
sub get_smtp_auth_options
29+
{
30+
- my %options = ( disabled => 'DISABLED', publicSSL => 'SECURE_SMTP' );
31+
-
32+
- my $cleartext = $db->get_prop('smtpd', 'Authentication') || 'disabled';
33+
-
34+
- $options{public} = 'INSECURE_SMTP' if ($cleartext eq 'enabled');
35+
+ my %options = ( disabled => 'DISABLED', publicSSL => 'SECURE_SMTP', public => 'INSECURE_SMTP');
36+
37+
\%options;
38+
}

e-smith-email.spec

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# $Id: e-smith-email.spec,v 1.27 2010/10/04 16:40:39 slords Exp $
1+
# $Id: e-smith-email.spec,v 1.28 2010/10/31 18:49:40 slords Exp $
22

33
Summary: e-smith server and gateway - email module
44
%define name e-smith-email
55
Name: %{name}
66
%define version 5.2.0
7-
%define release 11
7+
%define release 12
88
Version: %{version}
99
Release: %{release}%{?dist}
1010
License: GPL
@@ -18,6 +18,7 @@ Patch5: e-smith-email-5.2.0-HeloHost.patch2
1818
Patch6: e-smith-email-5.2.0-zero-to-disabled.patch
1919
Patch7: e-smith-email-5.2.0-transparent.patch
2020
Patch8: e-smith-email-5.2.0-force_relay.patch
21+
Patch9: e-smith-email-5.2.0-smtp-auth.patch
2122
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
2223
Requires: e-smith-base >= 4.15.0-39
2324
Requires: e-smith-tinydns >= 1.0.0-5
@@ -43,6 +44,9 @@ AutoReqProv: no
4344
e-smith server and gateway software - email module.
4445

4546
%changelog
47+
* Sun Oct 31 2010 Shad L. Lords <[email protected]> 5.2.0-12.sme
48+
- Add smtp auth into web interface, not just when enabled [SME: 6318]
49+
4650
* Mon Oct 4 2010 Shad L. Lords <[email protected]> 5.2.0-11.sme
4751
- Enable auth for smtp traffic and migrate if necessary [SME: 5575]
4852

@@ -1367,6 +1371,7 @@ e-smith server and gateway software - email module.
13671371
%patch6 -p1
13681372
%patch7 -p1
13691373
%patch8 -p1
1374+
%patch9 -p1
13701375

13711376
%build
13721377
perl createlinks

0 commit comments

Comments
 (0)