initial commit of file from CVS for e-smith-email on Wed 12 Jul 08:53:55 BST 2023

This commit is contained in:
Brian Read
2023-07-12 08:53:55 +01:00
parent 3e32600b26
commit 7b4659df54
267 changed files with 10708 additions and 2 deletions

View File

@@ -0,0 +1 @@
every15min

View File

@@ -0,0 +1 @@
every15min

View File

@@ -0,0 +1 @@
every15min

View File

@@ -0,0 +1 @@
standard

View File

@@ -0,0 +1 @@
popaccount

View File

@@ -0,0 +1 @@
poppassword

View File

@@ -0,0 +1 @@
mail.myisp.xxx

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,5 @@
{
my $e = $DB->get_value("EmailUnknownUser");
$DB->set_value("EmailUnknownUser",'returntosender')
if (defined $e && $e eq 'return');
}

View File

@@ -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');
}
}

View File

@@ -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;
}

View 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');
}
}

View 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);
}

View 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;
}

View 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;
}

View 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');
}

View File

@@ -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" );
}
}