当前位置: 首页>>代码示例>>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;未经允许,请勿转载。