exit; } if (isset($_GET["postfix-mime-header-checks"])) { postfix_mime_header_checks(); exit; } if (isset($_GET["postfix-hash-smtp-generic"])) { postfix_hash_smtp_generic_maps(); exit; } if (isset($_GET["apply_sender_routing_rule"])) { apply_sender_routing_rule(); exit; } if (isset($_GET["smtpd-client-restrictions"])) { smtpd_client_restrictions(); exit; } if (isset($_GET["mastercf"])) { master_cf(); exit; } if (isset($_GET["RunSaUpd"])) { RunSaUpd(); exit; } if (isset($_GET["postfix-instances-list"])) { postfix_instances_list(); exit; } if (isset($_GET["postfix-reconfigure-transport"])) {
function _DefaultSettings() { if ($GLOBALS["EnablePostfixMultiInstance"] == 1) { shell_exec(LOCATE_PHP5_BIN2() . " " . dirname(__FILE__) . "/exec.postfix-multi.php --from-main-null"); return; } SetTLS(); inet_interfaces(); headers_check(1); ArticaFilterInMasterCF(); ArticaFilterInMasterCFPipe(); MasterCFSSL(); mime_header_checks(); smtp_sasl_auth_enable(); smtpd_recipient_restrictions(); smtpd_client_restrictions(); smtpd_sasl_exceptions_networks(); sender_bcc_maps(); CleanMyHostname(); OthersValues(); MailBoxTransport(); mynetworks(); luser_relay(); perso_settings(); ReloadPostfix(); }
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(); }
function smtp_cmdline_restrictions() { $sock = new sockets(); $disable_vrfy_command = $sock->GET_INFO("disable_vrfy_command"); if (!is_numeric($disable_vrfy_command)) { $disable_vrfy_command = 0; } if ($disable_vrfy_command == 1) { postconf("disable_vrfy_command", "yes"); } else { postconf("disable_vrfy_command", "no"); } if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> smtpd_recipient_restrictions() function\n ***\n"; } smtpd_recipient_restrictions(); if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> smtpd_client_restrictions() function\n ***\n"; } smtpd_client_restrictions(); if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> smtpd_sender_restrictions() function\n ***\n"; } smtpd_sender_restrictions(); if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> smtpd_data_restrictions() function\n ***\n"; } smtpd_data_restrictions(); if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> smtpd_end_of_data_restrictions() function\n ***\n"; } smtpd_end_of_data_restrictions(); if ($GLOBALS["RELOAD"]) { if ($GLOBALS["VERBOSE"]) { echo "\n ***\nStarting......: " . date("H:i:s") . " Postfix -> ReloadPostfix() function\n ***\n"; } ReloadPostfix(true); } HashTables(); }