reconfigure_instance_relayhost($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-ssl') {
    reconfigure_instance_ssl($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-settings') {
    reconfigure_instance_minimal($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-mastercf') {
    reconfigure_instance_mastercf($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--clean') {
    remove_old_instances();
    postfix_bubble();
    die;
}
if ($argv[1] == '--mime-header-checks') {
    reconfigure_instance_mime_checks($argv[2]);
    die;
}
if ($argv[1] == '--from-main-maincf') {
    die;
}
Beispiel #2
0
		die();
	}

	$pid=getmypid();
	echo "Starting......: Postfix multi-instances configurator running $pid\n";
	file_put_contents($pidfile,$pid);	


writelogs("receive ". implode(",",$argv),"MAIN",__FILE__,__LINE__);

if($argv[1]=='--removes'){PostfixMultiDisable();die();}
if($argv[1]=='--instance-reconfigure'){reconfigure_instance($argv[2]);die();}
if($argv[1]=='--instance-relayhost'){reconfigure_instance_relayhost($argv[2]);die();}
if($argv[1]=='--instance-ssl'){reconfigure_instance_ssl($argv[2]);die();}
if($argv[1]=='--instance-settings'){reconfigure_instance_minimal($argv[2]);die();}
if($argv[1]=='--instance-mastercf'){reconfigure_instance_mastercf($argv[2]);die();}
if($argv[1]=='--clean'){remove_old_instances();die();}
if($argv[1]=='--mime-header-checks'){reconfigure_instance_mime_checks($argv[2]);die();}
if($argv[1]=='--from-main-maincf'){die();}
if($argv[1]=='--instance-start'){_start_instance($argv[2]);die();}
if($argv[1]=='--instance-aiguilleuse'){aiguilleuse($argv[2]);die();}
if($argv[1]=='--reload-all'){CheckInstances();die();}
if($argv[1]=='--postscreen'){postscreen($argv[2]);die();}




reconfigure();


function restart_all_instances(){