當前位置: 首頁>>代碼示例>>PHP>>正文


PHP maincf_multi::postfix_version方法代碼示例

本文整理匯總了PHP中maincf_multi::postfix_version方法的典型用法代碼示例。如果您正苦於以下問題:PHP maincf_multi::postfix_version方法的具體用法?PHP maincf_multi::postfix_version怎麽用?PHP maincf_multi::postfix_version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在maincf_multi的用法示例。


在下文中一共展示了maincf_multi::postfix_version方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: OthersValues


//.........這裏部分代碼省略.........
        $main->main_array["smtpd_recipient_limit"] = 1000;
    }
    if ($main->main_array["header_address_token_limit"] == null) {
        $main->main_array["header_address_token_limit"] = 10240;
    }
    echo "Starting......: " . date("H:i:s") . " message_size_limit={$main->main_array["message_size_limit"]}\n";
    echo "Starting......: " . date("H:i:s") . " default_destination_recipient_limit={$main->main_array["default_destination_recipient_limit"]}\n";
    echo "Starting......: " . date("H:i:s") . " smtpd_recipient_limit={$main->main_array["smtpd_recipient_limit"]}\n";
    echo "Starting......: " . date("H:i:s") . " *** MIME PROCESSING ***\n";
    echo "Starting......: " . date("H:i:s") . " mime_nesting_limit={$mime_nesting_limit}\n";
    echo "Starting......: " . date("H:i:s") . " detect_8bit_encoding_header={$detect_8bit_encoding_header}\n";
    echo "Starting......: " . date("H:i:s") . " disable_mime_input_processing={$disable_mime_input_processing}\n";
    echo "Starting......: " . date("H:i:s") . " disable_mime_output_conversion={$disable_mime_output_conversion}\n";
    echo "Starting......: " . date("H:i:s") . " header_address_token_limit={$main->main_array["header_address_token_limit"]}\n";
    echo "Starting......: " . date("H:i:s") . " minimal_backoff_time={$minimal_backoff_time}\n";
    echo "Starting......: " . date("H:i:s") . " maximal_backoff_time={$maximal_backoff_time}\n";
    echo "Starting......: " . date("H:i:s") . " maximal_queue_lifetime={$maximal_queue_lifetime}\n";
    echo "Starting......: " . date("H:i:s") . " bounce_queue_lifetime={$bounce_queue_lifetime}\n";
    echo "Starting......: " . date("H:i:s") . " ignore_mx_lookup_error={$ignore_mx_lookup_error}\n";
    echo "Starting......: " . date("H:i:s") . " disable_dns_lookups={$disable_dns_lookups}\n";
    echo "Starting......: " . date("H:i:s") . " smtpd_banner={$smtpd_banner}\n";
    if ($minimal_backoff_time == null) {
        $minimal_backoff_time = "300s";
    }
    if ($maximal_backoff_time == null) {
        $maximal_backoff_time = "4000s";
    }
    if ($bounce_queue_lifetime == null) {
        $bounce_queue_lifetime = "5d";
    }
    if ($maximal_queue_lifetime == null) {
        $maximal_queue_lifetime = "5d";
    }
    $postfix_ver = $mainmulti->postfix_version();
    if (preg_match("#^([0-9]+)\\.([0-9]+)#", $postfix_ver, $re)) {
        $MAJOR = $re[1];
        $MINOR = $re[2];
    }
    if ($MAJOR > 1) {
        if ($MINOR > 9) {
            postconf("smtpd_relay_restrictions", "permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination");
        }
    }
    build_progress_mime_header("{configuring}", 50);
    $address_verify_negative_cache = $mainmulti->YesNo($address_verify_negative_cache);
    echo "Starting......: " . date("H:i:s") . " Apply all settings..\n";
    postconf("smtpd_reject_unlisted_sender", "{$smtpd_reject_unlisted_sender}");
    postconf("smtpd_reject_unlisted_recipient", "{$smtpd_reject_unlisted_recipient}");
    postconf("address_verify_map", "{$address_verify_map}");
    postconf("address_verify_negative_cache", "{$address_verify_negative_cache}");
    postconf("address_verify_poll_count", "{$address_verify_poll_count}");
    postconf("address_verify_poll_delay", "{$address_verify_poll_delay}");
    postconf("address_verify_sender", "{$address_verify_sender}");
    postconf("address_verify_negative_expire_time", "{$address_verify_negative_expire_time}");
    postconf("address_verify_negative_refresh_time", "{$address_verify_negative_refresh_time}");
    postconf("address_verify_positive_expire_time", "{$address_verify_positive_expire_time}");
    postconf("address_verify_positive_refresh_time", "{$address_verify_positive_refresh_time}");
    postconf("message_size_limit", "{$message_size_limit}");
    postconf("virtual_mailbox_limit", "{$message_size_limit}");
    postconf("mailbox_size_limit", "{$message_size_limit}");
    postconf("default_destination_recipient_limit", "{$main->main_array["default_destination_recipient_limit"]}");
    postconf("smtpd_recipient_limit", "{$main->main_array["smtpd_recipient_limit"]}");
    postconf("mime_nesting_limit", "{$mime_nesting_limit}");
    postconf("detect_8bit_encoding_header", "{$detect_8bit_encoding_header}");
    postconf("disable_mime_input_processing", "{$disable_mime_input_processing}");
    postconf("disable_mime_output_conversion", "{$disable_mime_output_conversion}");
開發者ID:articatech,項目名稱:artica,代碼行數:67,代碼來源:exec.postfix.maincf.php


注:本文中的maincf_multi::postfix_version方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。