initial commit of file from CVS for smeserver-clamav on Mon 10 Jul 08:35:52 BST 2023

This commit is contained in:
Brian Read
2023-07-10 08:35:52 +01:00
parent bfd6d39c86
commit 8a58bd853d
142 changed files with 1456 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
{
my $smtpd = $DB->get('clamav') or return;
if (my $maxFileSize = $DB->get_prop_and_delete('clamav', 'ArchiveMaxFileSize')) {
$smtpd->merge_props('MaxFileSize', $maxFileSize);
}
if (my $maxRecursion = $DB->get_prop_and_delete('clamav', 'ArchiveMaxRecursion')) {
$smtpd->merge_props('MaxRecursion', $maxRecursion);
}
if (my $maxFiles = $DB->get_prop_and_delete('clamav', 'ArchiveMaxFiles')) {
$smtpd->merge_props('MaxFiles', $maxFiles);
}
if (my $AlertEncrypted = $DB->get_prop_and_delete('clamav', 'ArchiveBlockEncrypted')) {
$smtpd->merge_props('AlertEncrypted', $AlertEncrypted);
}
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav') or return;
return unless ($clamav->prop('DatabaseMirror') eq 'db.us.clamav.net');
$clamav->set_prop('DatabaseMirror','db.local.clamav.net');
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav');
return unless $clamav;
my $LogTime = 'yes';
$DB->set_prop('clamav', 'LogTime', $LogTime);
}

View File

@@ -0,0 +1,7 @@
{
my $clamd = $DB->get('clamd');
return unless $clamd;
my $size = 1610612736;
$DB->set_prop('clamd', 'MemLimit', $size) if $DB->get_prop('clamd','MemLimit') < $size;
}

View File

@@ -0,0 +1,7 @@
{
my $clamd = $DB->get('clamd');
return unless $clamd;
my $size = 600;
$DB->set_prop('clamd', 'SelfCheck', $size);
}

View File

@@ -0,0 +1,7 @@
{
my $clamav = $DB->get('clamav');
return unless $clamav;
if ($clamav{'DetectBrokenExecutables'}) {
$DB->get_prop_and_delete( 'clamav', 'DetectBrokenExecutables' );
}
}