initial commit of file from CVS for smeserver-mxbackup on Sat Sep 7 20:44:45 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:44:45 +10:00
parent 9a401a3cbe
commit 41ac27ebb3
43 changed files with 4482 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
{
# vim: ft=perl ts=4 sw=4 et:
# perltidy -pbp
if ( ( $mxbackup{status} || "disabled" ) eq "enabled" ) {
$OUT .= "\n";
$OUT .= "# MX Backup entries start\n";
$OUT .= "# This is the list of the mail domains\n";
$OUT .= "# from the MX-Backup configuration of the local system.\n";
my $MXFlag = 0;
my %MXValues = split /,/, ( $mxbackup{name} || "" );
foreach my $data (
sort {
( join( "\.", reverse( split /\./, $a ) ) )
cmp( join( "\.", reverse( split /\./, $b ) ) )
}
keys %MXValues
) {
$OUT .= "\@$data\n";
$MXFlag = 1;
}
$OUT .= "### No MX Backup set Now ...\n" if ( !$MXFlag );
$OUT .= "# MX Backup entries end\n\n";
}
}