Пример #1
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();
}
Пример #2
0
function OthersValues_start()
{
    build_progress_othervalues("{starting} OthersValues()...", 15);
    OthersValues();
    build_progress_othervalues("Clean my Hostname", 80);
    CleanMyHostname();
    build_progress_othervalues("{reloading}", 90);
    ReloadPostfix(true);
    build_progress_othervalues("{done}", 100);
    die;
}
Пример #3
0
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();
}
Пример #4
0
if ($argv[1] == '--imap-sockets') {
    imap_sockets();
    MailBoxTransport();
    ReloadPostfix(true);
    die;
}
if ($argv[1] == '--policyd-reconfigure') {
    policyd_weight_reconfigure();
    die;
}
if ($argv[1] == '--restricted') {
    RestrictedForInternet(true);
    die;
}
if ($argv[1] == '--others-values') {
    OthersValues();
    CleanMyHostname();
    perso_settings();
    ReloadPostfix(true);
    die;
}
if ($argv[1] == '--mime-header-checks') {
    mime_header_checks_progress();
}
if ($argv[1] == '--interfaces') {
    inet_interfaces();
    MailBoxTransport();
    exec("{$GLOBALS["postfix"]} stop");
    exec("{$GLOBALS["postfix"]} start");
    ReloadPostfix(true);
    die;