initial commit of file from CVS for e-smith-email on Wed 12 Jul 08:53:55 BST 2023
This commit is contained in:
@@ -0,0 +1 @@
|
||||
every15min
|
@@ -0,0 +1 @@
|
||||
every15min
|
@@ -0,0 +1 @@
|
||||
every15min
|
@@ -0,0 +1 @@
|
||||
standard
|
@@ -0,0 +1 @@
|
||||
popaccount
|
@@ -0,0 +1 @@
|
||||
poppassword
|
@@ -0,0 +1 @@
|
||||
mail.myisp.xxx
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
90
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
my $e = $DB->get_value("EmailUnknownUser");
|
||||
$DB->set_value("EmailUnknownUser",'returntosender')
|
||||
if (defined $e && $e eq 'return');
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
{
|
||||
my $MD5Patch = $DB->get_prop_and_delete('smtp-auth-proxy','MD5Patch') or return;
|
||||
|
||||
if ($MD5Patch eq 'enabled')
|
||||
{
|
||||
$DB->set_prop('smtp-auth-proxy','Blacklist', 'CRAM-MD5 DIGEST-MD5');
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
my $debug = $DB->get_prop('smtp-auth-proxy','Debug') or return;
|
||||
|
||||
$DB->set_prop('smtp-auth-proxy','Debug', 'disabled') if $debug eq 0;
|
||||
}
|
13
root/etc/e-smith/db/configuration/migrate/20smtpProxy
Normal file
13
root/etc/e-smith/db/configuration/migrate/20smtpProxy
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
# In SME Server 7 smtpd Proxy used 'enabled'.
|
||||
# In SME Server 8 the UI uses enabled but the configuration value is transparent.
|
||||
# This migrate fragment is needed to allow upgrades from SME Server 7.
|
||||
|
||||
my $proxy = $DB->get_prop('qpsmtpd','Proxy') or return;
|
||||
|
||||
if ($proxy eq 'enabled')
|
||||
{
|
||||
$DB->set_prop('qpsmtpd','Proxy', 'blocked');
|
||||
$DB->set_prop('qpsmtpd','Authentication', 'enabled');
|
||||
}
|
||||
}
|
7
root/etc/e-smith/db/configuration/migrate/20smtpd-auth
Normal file
7
root/etc/e-smith/db/configuration/migrate/20smtpd-auth
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
my $qpsmtpd = $DB->get('qpsmtpd') or return;
|
||||
|
||||
my $auth = $DB->get_prop_and_delete('qpsmtpd','authentication') or return;
|
||||
|
||||
$qpsmtpd->merge_props('Authentication',$auth);
|
||||
}
|
12
root/etc/e-smith/db/configuration/migrate/20smtpfront-qmail
Normal file
12
root/etc/e-smith/db/configuration/migrate/20smtpfront-qmail
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
my $mailfront = $DB->get("smtpfront-qmail") or return;
|
||||
|
||||
my $qpsmtpd = $DB->get("qpsmtpd") ||
|
||||
$DB->new_record("qpsmtpd", { type => "service" });
|
||||
|
||||
$qpsmtpd->merge_props($mailfront->props);
|
||||
|
||||
$qpsmtpd->delete_prop($_) for ( qw(Patterns PatternsFile) );
|
||||
|
||||
$mailfront->delete;
|
||||
}
|
10
root/etc/e-smith/db/configuration/migrate/30popd
Normal file
10
root/etc/e-smith/db/configuration/migrate/30popd
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
my $popd = $DB->get("popd") or return;
|
||||
|
||||
my $pop3 = $DB->get("pop3") ||
|
||||
$DB->new_record("pop3", { type => "service" });
|
||||
|
||||
$pop3->merge_props($popd->props);
|
||||
|
||||
$popd->delete;
|
||||
}
|
10
root/etc/e-smith/db/configuration/migrate/35enableImap
Normal file
10
root/etc/e-smith/db/configuration/migrate/35enableImap
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
|
||||
my $imap = $DB->get('imap') ||
|
||||
$DB->new_record('imap', {type => 'service'});
|
||||
my $status = $imap->prop('status') || 'disabled';
|
||||
return "" if ($status eq 'enabled');
|
||||
$imap->set_prop('status', 'enabled');
|
||||
$imap->set_prop('access', 'localhost');
|
||||
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
{
|
||||
my $hordessl = $DB->get_prop('horde', 'access') or return;
|
||||
if ($hordessl eq 'SSL')
|
||||
{
|
||||
$DB->set_prop('horde',"HttpsOnly", "yes" );
|
||||
$DB->set_prop('horde',"access", "public" );
|
||||
}
|
||||
elsif ($hordessl eq 'full')
|
||||
{
|
||||
$DB->set_prop('horde',"HttpsOnly", "no" );
|
||||
$DB->set_prop('horde',"access", "public" );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user