Example #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();
}
function SMTP_SASL_PROGRESS()
{
    SMTP_SASL_PROGRESS_LOG("Check structure", 10);
    SetSASLMech();
    SMTP_SASL_PROGRESS_LOG("Enable SASL", 20);
    SetSALS();
    SMTP_SASL_PROGRESS_LOG("Enable TLS", 30);
    SetTLS();
    SMTP_SASL_PROGRESS_LOG("Smtpd Recipient Restrictions", 40);
    smtpd_recipient_restrictions();
    SMTP_SASL_PROGRESS_LOG("SMTP SASL Security Options", 50);
    smtp_sasl_security_options();
    SMTP_SASL_PROGRESS_LOG("SMTP SASL whitelisted networks", 55);
    smtpd_sasl_exceptions_networks();
    SMTP_SASL_PROGRESS_LOG("Build Master.cf", 60);
    MasterCFBuilder();
    SMTP_SASL_PROGRESS_LOG("Checks transport table", 70);
    MailBoxTransport();
    SMTP_SASL_PROGRESS_LOG("{reloading} SMTP MTA", 80);
    ReloadPostfix(true);
    SMTP_SASL_PROGRESS_LOG("{reloading} SaslAuthd", 90);
    system("/etc/init.d/saslauthd restart");
    SMTP_SASL_PROGRESS_LOG("{done}", 100);
}
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();
}
Example #4
0
<?php

include_once dirname(__FILE__) . "/frame.class.inc";
include_once dirname(__FILE__) . "/class.unix.inc";
if (isset($_GET["smtpd-recipient-restrictions"])) {
    smtpd_recipient_restrictions();
    exit;
}
if (isset($_GET["clamav-milter"])) {
    clamav_milter();
    exit;
}
if (isset($_GET["apply-networks-master"])) {
    apply_networks();
    exit;
}
if (isset($_GET["milters-progress"])) {
    milters_progress();
    exit;
}
if (isset($_GET["myhostname"])) {
    myhostname();
    exit;
}
if (isset($_GET["maillog-postfix"])) {
    maillog_postfix();
    exit;
}
if (isset($_GET["postcat-q"])) {
    postfix_postcat_q();
    exit;