$IsForwardingRelay = $obSecurityRange->IsForwardingRelay;
    $RequireSMTPAuthLocalToLocal = $obSecurityRange->RequireSMTPAuthLocalToLocal;
    $RequireSMTPAuthLocalToExternal = $obSecurityRange->RequireSMTPAuthLocalToExternal;
    $RequireSMTPAuthExternalToLocal = $obSecurityRange->RequireSMTPAuthExternalToLocal;
    $RequireSMTPAuthExternalToExternal = $obSecurityRange->RequireSMTPAuthExternalToExternal;
    $Expires = $obSecurityRange->Expires;
    $ExpiresTime = $obSecurityRange->ExpiresTime;
}
$allowsmtpconnectionschecked = hmailCheckedIf1($allowsmtpconnections);
$allowpop3connectionschecked = hmailCheckedIf1($allowpop3connections);
$allowimapconnectionschecked = hmailCheckedIf1($allowimapconnections);
$allowlocaltolocalchecked = hmailCheckedIf1($allowlocaltolocal);
$allowlocaltoremotechecked = hmailCheckedIf1($allowlocaltoremote);
$allowremotetolocalchecked = hmailCheckedIf1($allowremotetolocal);
$allowremotetoremotechecked = hmailCheckedIf1($allowremotetoremote);
$IsForwardingRelayChecked = hmailCheckedIf1($IsForwardingRelay);
?>

<h1><?php 
EchoTranslation("IP range");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">

   <?php 
PrintHidden("page", "background_securityrange_save");
PrintHidden("action", $action);
PrintHidden("securityrangeid", $securityrangeid);
?>
	
Example #2
0
    $obBackup->BackupSettings = hmailGetVar("backupsettings", 0);
    $obBackup->BackupDomains = hmailGetVar("backupdomains", 0);
    $obBackup->BackupMessages = hmailGetVar("backupmessages", 0);
    $obBackup->CompressDestinationFiles = hmailGetVar("backupcompress", 0);
} elseif ($action == "startbackup") {
    $obBaseApp->BackupManager->StartBackup();
}
$backupdestination = $obBackup->Destination;
$backupsettings = $obBackup->BackupSettings;
$backupdomains = $obBackup->BackupDomains;
$backupmessages = $obBackup->BackupMessages;
$backupcompress = $obBackup->CompressDestinationFiles;
$backupsettingschecked = hmailCheckedIf1($backupsettings);
$backupdomainschecked = hmailCheckedIf1($backupdomains);
$backupmessageschecked = hmailCheckedIf1($backupmessages);
$backupcompresschecked = hmailCheckedIf1($backupcompress);
?>

<h1><?php 
EchoTranslation("Backup");
?>
</h1>

   <div class="tabber">
      <div class="tabbertab">
          <h2><?php 
EchoTranslation("General");
?>
</h2>            
   
         <form action="index.php" method="post" onSubmit="return formCheck(this);">
Example #3
0
$smtprulelooplimit = $obSettings->RuleLoopLimit;
$maxmessagesize = $obSettings->MaxMessageSize;
$smtpdeliverybindtoip = $obSettings->SMTPDeliveryBindToIP;
$maxsmtprecipientsinbatch = $obSettings->MaxSMTPRecipientsInBatch;
$AllowSMTPAuthPlain = $obSettings->AllowSMTPAuthPlain;
$AllowMailFromNull = $obSettings->DenyMailFromNull == "0";
$AllowIncorrectLineEndings = $obSettings->AllowIncorrectLineEndings;
$DisconnectInvalidClients = $obSettings->DisconnectInvalidClients;
$MaxNumberOfInvalidCommands = $obSettings->MaxNumberOfInvalidCommands;
$SendStatistics = $obSettings->SendStatistics;
$AddDeliveredToHeader = $obSettings->AddDeliveredToHeader;
$AllowSMTPAuthPlainChecked = hmailCheckedIf1($AllowSMTPAuthPlain);
$AllowMailFromNullChecked = hmailCheckedIf1($AllowMailFromNull);
$AllowIncorrectLineEndingsChecked = hmailCheckedIf1($AllowIncorrectLineEndings);
$DisconnectInvalidClientsChecked = hmailCheckedIf1($DisconnectInvalidClients);
$SendStatisticsChecked = hmailCheckedIf1($SendStatistics);
$MaxNumberOfMXHosts = $obSettings->MaxNumberOfMXHosts;
?>

<h1><?php 
EchoTranslation("SMTP");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
   <?php 
PrintHidden("page", "smtp");
PrintHidden("action", "save");
?>
   
   <div class="tabber">
$SpamAssassinScore = $antiSpamSettings->SpamAssassinScore;
$usespf = $antiSpamSettings->UseSPF;
$usespfscore = $antiSpamSettings->UseSPFScore;
$usemxchecks = $antiSpamSettings->UseMXChecks;
$usemxchecksscore = $antiSpamSettings->UseMXChecksScore;
$checkhostinhelo = $antiSpamSettings->CheckHostInHelo;
$checkhostinheloscore = $antiSpamSettings->CheckHostInHeloScore;
$DKIMVerificationEnabled = $antiSpamSettings->DKIMVerificationEnabled;
$DKIMVerificationFailureScore = $antiSpamSettings->DKIMVerificationFailureScore;
$AddHeaderSpam = $antiSpamSettings->AddHeaderSpam;
$AddHeaderReason = $antiSpamSettings->AddHeaderReason;
$PrependSubject = $antiSpamSettings->PrependSubject;
$PrependSubjectText = $antiSpamSettings->PrependSubjectText;
$AddHeaderSpamChecked = hmailCheckedIf1($AddHeaderSpam);
$AddHeaderReasonChecked = hmailCheckedIf1($AddHeaderReason);
$PrependSubjectChecked = hmailCheckedIf1($PrependSubject);
?>

<script language="javascript" type="text/javascript">
<!-- 
function HandleSpamAssassinTestResult()
{
   if (httpObject.readyState == 4)
   {
      if (httpObject.responseText == "1")
         document.getElementById('SpamAssassinTestResult').innerHTML = "<font color=green>Connected successfully.</font>";
      else
         document.getElementById('SpamAssassinTestResult').innerHTML = "<font color=red>Connection failed.</font>";
   }
}
Example #5
0
function PrintCheckboxRow($name, $caption, $checked)
{
    global $obLanguage;
    $caption = $obLanguage->String($caption);
    $checked_text = hmailCheckedIf1($checked);
    echo "\r\n   \t<tr>\r\n   \t\t<td>{$caption}</td>\r\n   \t\t<td><input type=\"checkbox\" name=\"{$name}\" value=\"1\" {$checked_text}></td>\r\n   \t</tr>\t\r\n    ";
}
Example #6
0
    hmailHackingAttemp();
}
// Domain admin but not for this domain.
$obDomain = $obBaseApp->Domains->ItemByDBID($domainid);
$aliasname = "";
$aliasvalue = "";
$aliasactive = 0;
if ($action == "edit") {
    $obAlias = $obDomain->Aliases->ItemByDBID($aliasid);
    $aliasname = $obAlias->Name;
    $aliasvalue = $obAlias->Value;
    $aliasactive = $obAlias->Active;
    $aliasname = substr($aliasname, 0, strpos($aliasname, "@"));
}
$domainname = $obDomain->Name;
$aliasactivechecked = hmailCheckedIf1($aliasactive);
?>

<h1><?php 
EchoTranslation("Alias");
?>
</h1>

<?php 
if (strlen($error_message) > 0) {
    $error_message = $obLanguage->String($error_message);
    echo "<font color=\"red\"><b>{$error_message}</b></font><br><br>";
}
?>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
Example #7
0
    $DKIMPrivateKeyFile = $obDomain->DKIMPrivateKeyFile;
    $DKIMSelector = $obDomain->DKIMSelector;
    $DKIMHeaderCanonicalizationMethod = $obDomain->DKIMHeaderCanonicalizationMethod;
    $DKIMBodyCanonicalizationMethod = $obDomain->DKIMBodyCanonicalizationMethod;
    $DKIMSigningAlgorithm = $obDomain->DKIMSigningAlgorithm;
    $DomainID = $obDomain->ID;
}
$domainactivechecked = hmailCheckedIf1($domainactive);
$domainplusaddressingenabledchecked = hmailCheckedIf1($domainplusaddressingenabled);
$domainantispamenablegreylistingchecked = hmailCheckedIf1($domainantispamenablegreylisting);
$SignatureEnabledChecked = hmailCheckedIf1($SignatureEnabled);
$AddSignaturesToLocalMailChecked = hmailCheckedIf1($AddSignaturesToLocalMail);
$AddSignaturesToRepliesChecked = hmailCheckedIf1($AddSignaturesToReplies);
$MaxNumberOfAccountsEnabledChecked = hmailCheckedIf1($MaxNumberOfAccountsEnabled);
$MaxNumberOfAliasesEnabledChecked = hmailCheckedIf1($MaxNumberOfAliasesEnabled);
$MaxNumberOfDistributionListsEnabledChecked = hmailCheckedIf1($MaxNumberOfDistributionListsEnabled);
?>

     
<h1><?php 
EchoTranslation("Domain");
?>
</h1>
<form action="index.php" method="post" onSubmit="return formCheck(this);">

   <?php 
PrintHidden("page", "background_domain_save");
PrintHidden("action", $action);
PrintHidden("domainid", $DomainID);
?>
   
Example #8
0
    $obCache->Enabled = hmailGetVar("cacheenabled", 0);
    $obCache->DomainCacheTTL = hmailGetVar("cachedomainttl", 0);
    $obCache->AccountCacheTTL = hmailGetVar("cacheaccountttl", 0);
    $obCache->AliasCacheTTL = hmailGetVar("cachealiasttl", 0);
    $obCache->DistributionListCacheTTL = hmailGetVar("cachedistributionlistttl", 0);
    $obSettings->TCPIPThreads = hmailGetVar("tcpipthreads", 0);
    $obSettings->MaxDeliveryThreads = hmailGetVar("maxdeliverythreads", 0);
    $obSettings->MaxAsynchronousThreads = hmailGetVar("MaxAsynchronousThreads", 0);
    $obSettings->WorkerThreadPriority = hmailGetVar("workerthreadpriority", 0);
    $obSettings->MessageIndexing->Enabled = hmailGetVar("MessageIndexingEnabled", 0);
} else {
    if ($action == "ClearMessageIndexingCache") {
        $obSettings->MessageIndexing->Clear();
    }
}
$cacheenabledchecked = hmailCheckedIf1($obCache->Enabled);
$cachedomainttl = $obCache->DomainCacheTTL;
$cacheaccountttl = $obCache->AccountCacheTTL;
$cachedomainhitrate = $obCache->DomainHitRate;
$cacheaccounthitrate = $obCache->AccountHitRate;
$cachealiashitrate = $obCache->AliasHitRate;
$cachealiasttl = $obCache->AliasCacheTTL;
$cachedistributionlisthitrate = $obCache->DistributionListHitRate;
$cachedistributionlistttl = $obCache->DistributionListCacheTTL;
$tcpipthreads = $obSettings->TCPIPThreads;
$maxdeliverythreads = $obSettings->MaxDeliveryThreads;
$MaxAsynchronousThreads = $obSettings->MaxAsynchronousThreads;
$workerthreadpriority = $obSettings->WorkerThreadPriority;
$obMessageIndexingSettings = $obSettings->MessageIndexing;
$MessageIndexingEnabled = $obMessageIndexingSettings->Enabled;
$TotalMessageCount = $obMessageIndexingSettings->TotalMessageCount;
$avaction = $obAntivirus->Action;
$avnotifysender = $obAntivirus->NotifySender;
$avnotifyreceiver = $obAntivirus->NotifyReceiver;
$MaximumMessageSize = $obAntivirus->MaximumMessageSize;
$EnableAttachmentBlocking = $obAntivirus->EnableAttachmentBlocking;
$clamwinenabled = $obAntivirus->ClamWinEnabled;
$clamwinexecutable = $obAntivirus->ClamWinExecutable;
$clamwindbfolder = $obAntivirus->ClamWinDBFolder;
$ClamAVEnabled = $obAntivirus->ClamAVEnabled;
$ClamAVHost = $obAntivirus->ClamAVHost;
$ClamAVPort = $obAntivirus->ClamAVPort;
$customscannerenabled = $obAntivirus->CustomScannerEnabled;
$customscannerexecutable = $obAntivirus->CustomScannerExecutable;
$customscannerreturnvalue = $obAntivirus->CustomScannerReturnValue;
$avactiondeletemailchecked = hmailCheckedIf1($avaction == 0);
$avactiondeletattachmentschecked = hmailCheckedIf1($avaction == 1);
?>

<script language="javascript" type="text/javascript">
<!-- 
function testVirusScanner(scannerType)
{
   httpObject = getHTTPObject();
   if (httpObject != null) 
   {
	  switch (scannerType)
	  {
	      case "ClamAV":
			  document.getElementById('ClamAVTestResult').innerHTML = "";
			  var clamAVHost = document.getElementById('ClamAVHost').value;
			  var clamAPort = document.getElementById('ClamAVPort').value;
$listrequiresmtpauth = 0;
$Mode = 0;
if ($action == "edit") {
    $obList = $obDomain->DistributionLists->ItemByDBID($distributionlistid);
    $listaddress = $obList->Address;
    $listactive = $obList->Active;
    $listrequiresmtpauth = $obList->RequireSMTPAuth;
    $Mode = $obList->Mode;
    $RequireSenderAddress = $obList->RequireSenderAddress;
    $listaddress = substr($listaddress, 0, strpos($listaddress, "@"));
} else {
    $RequireSenderAddress = "";
}
$domainname = $obDomain->Name;
$listactivechecked = hmailCheckedIf1($listactive);
$listrequiresmtpauthchecked = hmailCheckedIf1($listrequiresmtpauth);
?>

<h1><?php 
EchoTranslation("Distribution list");
?>
</h1>

<?php 
if (strlen($error_message) > 0) {
    $error_message = $obLanguage->String($error_message);
    echo "<font color=\"red\"><b>{$error_message}</b></font><br><br>";
}
?>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
    $DaysToKeepMessages = 0;
    $MinutesBetweenFetch = 30;
    $Port = 110;
    $ProcessMIMERecipients = 0;
    $ProcessMIMEDate = 0;
    $ServerAddress = "";
    $ServerType = 0;
    $Username = "";
    $UseAntiSpam = 0;
    $UseAntiVirus = 0;
    $EnableRouteRecipients = 0;
    $ConnectionSecurity = 0;
}
$EnabledChecked = hmailCheckedIf1($Enabled);
$ProcessMIMERecipientsChecked = hmailCheckedIf1($ProcessMIMERecipients);
$ProcessMIMEDateChecked = hmailCheckedIf1($ProcessMIMEDate);
$DaysToKeepMessagesValue = 0;
if ($DaysToKeepMessages > 0) {
    $DaysToKeepMessagesValue = $DaysToKeepMessages;
}
?>

<h1><?php 
EchoTranslation("External account");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
	
   <?php 
PrintHidden("page", "background_account_externalaccount_save");
Example #12
0
$action = hmailGetVar("action", "");
$obSettings = $obBaseApp->Settings();
$antiSpamSettings = $obSettings->AntiSpam;
if ($action == "save") {
    $antiSpamSettings->GreyListingEnabled = hmailGetVar("greylistingenabled", 0);
    $antiSpamSettings->GreyListingInitialDelay = hmailGetVar("greylistinginitialdelay", 0);
    $antiSpamSettings->GreyListingInitialDelete = hmailGetVar("greylistinginitialdelete", 0) * 24;
    $antiSpamSettings->GreyListingFinalDelete = hmailGetVar("greylistingfinaldelete", 0) * 24;
    $antiSpamSettings->BypassGreylistingOnSPFSuccess = hmailGetVar("BypassGreylistingOnSPFSuccess", 0);
    $antiSpamSettings->BypassGreylistingOnMailFromMX = hmailGetVar("BypassGreylistingOnMailFromMX", 0);
}
$greylistingenabled = $antiSpamSettings->GreyListingEnabled;
$greylistinginitialdelay = $antiSpamSettings->GreyListingInitialDelay;
$greylistinginitialdelete = $antiSpamSettings->GreyListingInitialDelete / 24;
$greylistingfinaldelete = $antiSpamSettings->GreyListingFinalDelete / 24;
$greylistingenabledchecked = hmailCheckedIf1($greylistingenabled);
$BypassGreylistingOnSPFSuccess = $antiSpamSettings->BypassGreylistingOnSPFSuccess;
$BypassGreylistingOnMailFromMX = $antiSpamSettings->BypassGreylistingOnMailFromMX;
?>

<h1><?php 
EchoTranslation("Greylisting");
?>
</h1>

<form action="index.php" method="post" onSubmit="return formCheck(this);">
   <?php 
PrintHidden("page", "greylisting");
PrintHidden("action", "save");
?>
   
Example #13
0
    $vacationmessageexpires = $obAccount->VacationMessageExpires;
    $vacationmessageexpiresdate = $obAccount->VacationMessageExpiresDate;
    $vacationmessageexpiresdate = substr($vacationmessageexpiresdate, 0, 10);
    $forwardenabled = $obAccount->ForwardEnabled;
    $forwardaddress = $obAccount->ForwardAddress;
    $forwardkeeporiginal = $obAccount->ForwardKeepOriginal;
    $adenabled = $obAccount->IsAD;
    $addomain = $obAccount->ADDomain;
    $adusername = $obAccount->ADUsername;
    $SignatureEnabled = $obAccount->SignatureEnabled;
    $SignatureHTML = $obAccount->SignatureHTML;
    $SignaturePlainText = $obAccount->SignaturePlainText;
}
$SignatureEnabledChecked = hmailCheckedIf1($SignatureEnabled);
$vacationmessageexpireschecked = hmailCheckedIf1($vacationmessageexpires);
$accountactivechecked = hmailCheckedIf1($accountactive);
$domainname = $obDomain->Name;
$str_user = $obLanguage->String("User");
$str_domain = $obLanguage->String("Domain");
$str_server = $obLanguage->String("Server");
?>

<h1><?php 
EchoTranslation("Account");
?>
</h1>

<?php 
if (strlen($error_message) > 0) {
    $error_message = PreprocessOutput($obLanguage->String($error_message));
    echo "<font color=\"red\"><b>{$error_message}</b></font><br><br>";
Example #14
0
    hmailHackingAttemp();
}
$obSettings = $obBaseApp->Settings();
$obScripting = $obSettings->Scripting();
$action = hmailGetVar("action", "");
if ($action == "save") {
    $obScripting->Enabled = hmailGetVar("scriptingenabled", 0);
    $obScripting->Language = hmailGetVar("scriptinglanguage", 0);
} elseif ($action == "checksyntax") {
    $syntax_result = $obScripting->CheckSyntax();
} elseif ($action == "reloadscripts") {
    $obScripting->Reload();
}
$scriptingenabled = $obScripting->Enabled;
$scriptinglanguage = $obScripting->Language;
$scriptingenabledchecked = hmailCheckedIf1($scriptingenabled);
?>

<h1><?php 
EchoTranslation("Scripts");
?>
</h1>

   <div class="tabber">
      <div class="tabbertab">
          <h2><?php 
EchoTranslation("General");
?>
</h2>            
   
         <form action="index.php" method="post" onSubmit="return formCheck(this);">