Esempio n. 1
0
    exit;
}
if (isset($_GET["postfix-perso-settings"])) {
    postfix_perso_settings();
    exit;
}
if (isset($_GET["postfix-smtpd-restrictions"])) {
    postfix_smtpd_restrictions();
    exit;
}
if (isset($_GET["postfix-mem-disk-status"])) {
    postfix_mem_disk_status();
    exit;
}
if (isset($_GET["postscreen"])) {
    postscreen();
    exit;
}
if (isset($_GET["postfix-throttle"])) {
    postfix_throttle();
    exit;
}
if (isset($_GET["postfix-freeze"])) {
    postfix_freeze();
    exit;
}
if (isset($_GET["postfix-ssl"])) {
    postfix_single_ssl();
    exit;
}
if (isset($_GET["postfix-sasl-mech"])) {
Esempio n. 2
0
}
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();
    postfix_bubble();
    die;
}
if ($argv[1] == '--postscreen') {
    postscreen($argv[2]);
    die;
}
reconfigure();
postfix_bubble();
function postfix_bubble()
{
    $unix = new unix();
    $nohup = $unix->find_program("nohup");
    $php5 = $unix->LOCATE_PHP5_BIN();
    shell_exec($nohup . " {$php5} " . dirname(__FILE__) . "/exec.postfix.multi.bubble.php >/dev/null 2>&1 &");
}
function build_progress($text, $pourc)
{
    $GLOBALS["CACHEFILE"] = "/usr/share/artica-postfix/ressources/logs/web/HEADER_CHECK";
    echo "{$pourc}% {$text}\n";
Esempio n. 3
0
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(){
	$unix=new unix();
	$postfix=$unix->find_program("postfix");
	$sock=new sockets();
	$GLOBALS["postmulti"]=$unix->find_program("postmulti");
	echo "Starting......: Stopping master instance\n";
	system("$postfix stop");
	if($sock->GET_INFO("EnablePostfixMultiInstance")==1){
Esempio n. 4
0
function _DefaultSettings()
{
    if ($GLOBALS["EnablePostfixMultiInstance"] == 1) {
        shell_exec(LOCATE_PHP5_BIN2() . " " . dirname(__FILE__) . "/exec.postfix-multi.php --from-main-null");
        return;
    }
    cleanMultiplesInstances();
    SetSALS();
    SetTLS();
    inet_interfaces();
    imap_sockets();
    MailBoxTransport();
    mynetworks();
    headers_check(1);
    MasterCFBuilder();
    mime_header_checks();
    smtp_sasl_auth_enable();
    smtpd_recipient_restrictions();
    smtpd_client_restrictions_clean();
    smtpd_client_restrictions();
    smtpd_sasl_exceptions_networks();
    sender_bcc_maps();
    CleanMyHostname();
    OthersValues();
    luser_relay();
    smtpd_sender_restrictions();
    smtpd_end_of_data_restrictions();
    perso_settings();
    remove_virtual_mailbox_base();
    postscreen();
    smtp_sasl_security_options();
    BodyChecks();
    postfix_templates();
    ReloadPostfix();
}
Esempio n. 5
0
if(isset($_GET["nicstatus"])){TCP_NIC_STATUS();exit;}


if(isset($_GET["QueryArticaLogs"])){artica_update_query_fileslogs();exit;}
if(isset($_GET["ReadArticaLogs"])){artica_update_query_logs();exit;}

if(isset($_GET["repair-artica-ldap-branch"])){RepairArticaLdapBranch();exit;}

//certitifcate
if(isset($_GET["ChangeSSLCertificate"])){ChangeSSLCertificate();exit;}
if(isset($_GET["postfix-certificate"])){postfix_certificate();exit;}
if(isset($_GET["certificate-viewinfos"])){certificate_infos();exit;}
if(isset($_GET["postfix-perso-settings"])){postfix_perso_settings();exit;}
if(isset($_GET["postfix-smtpd-restrictions"])){postfix_smtpd_restrictions();exit;}
if(isset($_GET["postfix-mem-disk-status"])){postfix_mem_disk_status();exit;}
if(isset($_GET["postscreen"])){postscreen();exit;}
if(isset($_GET["postfix-throttle"])){postfix_throttle();exit;}
if(isset($_GET["postfix-freeze"])){postfix_freeze();exit;}
if(isset($_GET["postfix-ssl"])){postfix_single_ssl();exit;}
if(isset($_GET["postfix-sasl-mech"])){postfix_single_sasl_mech();exit;}
if(isset($_GET["postfix-postfinger"])){postfix_postfinger();exit;}
if(isset($_GET["postfix-iptables-compile"])){postfix_iptables_compile();exit;}
if(isset($_GET["postfix-body-checks"])){postfix_body_checks();exit;}
if(isset($_GET["postfix-smtp-sender-restrictions"])){postfix_smtp_senders_restrictions();exit;}
if(isset($_GET["maillog-query"])){maillog_query();exit;}
if(isset($_GET["postfix-whitelisted-global"])){postfix_whitelisted_global();exit;}
if(isset($_GET["postfinder"])){postfinder();exit;}

//cluebringer