Ejemplo n.º 1
0
    DecodeShortURLs();
    amavis_reload();
    die;
}
if ($argv[1] == '--trusted') {
    TrustedNetworks();
    amavis_reload();
    die;
}
if ($argv[1] == '--whitelist') {
    SaveConf();
    amavis_reload();
    die;
}
if ($argv[1] == '--spam-tests') {
    SpamTests($argv[2]);
    die;
}
echo "Starting......: " . date("H:i:s") . " spamassassin starting building configuration\n";
SaveConf();
echo "Starting......: " . date("H:i:s") . " Check Relay Country plugin\n";
RelayCountryPlugin();
echo "Starting......: " . date("H:i:s") . " Check Decode Short urls\n";
DecodeShortURLs();
echo "Starting......: " . date("H:i:s") . " Check Trusted networks\n";
TrustedNetworks();
WrongMX();
FuzzyOcr();
CheckSecuritiesFolders();
function amavis_reload()
{
Ejemplo n.º 2
0
	}
	
	if(!is_file($user->spamassassin_conf_path)){
		write_syslog("want to change spamassassin settings but could not stat main configuration file",__FILE__);
	}
	
	x_headers();
	x_bounce();
	
	if($argv[1]=='--spf'){spf();die();}
	if($argv[1]=='--dkim'){dkim();amavis_reload();die();}
	if($argv[1]=='--dnsbl'){dnsbl();die();}
	if($argv[1]=='--DecodeShortURLs'){DecodeShortURLs();amavis_reload();die();}
	if($argv[1]=='--trusted'){TrustedNetworks();amavis_reload();die();}
	if($argv[1]=='--whitelist'){SaveConf();amavis_reload();die();}
	if($argv[1]=='--spam-tests'){SpamTests($argv[2]);die();}
	
echo "Starting......: spamassassin starting building configuration\n";	
SaveConf();
echo "Starting......: Check Relay Country plugin\n";	
RelayCountryPlugin();
echo "Starting......: Check Decode Short urls\n";
DecodeShortURLs();
echo "Starting......: Check Trusted networks\n";
TrustedNetworks();
WrongMX();
FuzzyOcr();
CheckSecuritiesFolders();


function amavis_reload(){