1 |
slords |
1.1 |
diff -ruN e-smith-email-5.2.0.old/root/etc/e-smith/db/configuration/migrate/20smtpProxy e-smith-email-5.2.0/root/etc/e-smith/db/configuration/migrate/20smtpProxy |
2 |
|
|
--- e-smith-email-5.2.0.old/root/etc/e-smith/db/configuration/migrate/20smtpProxy 1969-12-31 17:00:00.000000000 -0700 |
3 |
|
|
+++ e-smith-email-5.2.0/root/etc/e-smith/db/configuration/migrate/20smtpProxy 2010-09-26 10:14:36.000000000 -0600 |
4 |
|
|
@@ -0,0 +1,5 @@ |
5 |
|
|
+{ |
6 |
|
|
+ my $proxy = $DB->get_prop('smtpd','Proxy'); |
7 |
|
|
+ |
8 |
|
|
+ $DB->set_prop('smtpd','Proxy', 'blocked') if $proxy eq 'enabled'; |
9 |
|
|
+} |
10 |
|
|
diff -ruN e-smith-email-5.2.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustSMTPProxy e-smith-email-5.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustSMTPProxy |
11 |
|
|
--- e-smith-email-5.2.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustSMTPProxy 2010-09-26 09:56:50.000000000 -0600 |
12 |
|
|
+++ e-smith-email-5.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustSMTPProxy 2010-09-26 10:17:29.000000000 -0600 |
13 |
|
|
@@ -14,7 +14,7 @@ |
14 |
|
|
|
15 |
|
|
$OUT .= " /sbin/iptables --flush SMTPProxy\n"; |
16 |
|
|
|
17 |
|
|
- if (${smtpd}{'Proxy'} eq 'enabled') |
18 |
|
|
+ if (${smtpd}{'Proxy'} eq 'transparent') |
19 |
|
|
{ |
20 |
|
|
$OUT .= " /sbin/iptables --table nat --replace SMTPProxy $rule\\\n"; |
21 |
|
|
$OUT .= "\t-p TCP -j DNAT --to $LocalIP:25\n"; |