コード例 #1
0
    smtp_sasl_password_maps();
    shell_exec("{$GLOBALS["postfix"]} reload >/dev/null 2>&1");
    die;
}
maillings_table();
aliases_users();
aliases();
catch_all();
build_aliases_maps();
build_virtual_alias_maps();
relais_domains_search();
build_relay_domains();
relay_recipient_maps_build();
recipient_canonical_maps_build();
recipient_canonical_maps();
sender_canonical_maps_build();
sender_canonical_maps();
smtp_generic_maps();
sender_dependent_relayhost_maps();
smtp_sasl_password_maps();
recipient_bcc_maps();
recipient_bcc_maps_build();
sender_bcc_maps();
sender_bcc_maps_build();
build_local_recipient_maps();
mydestination_search();
mydestination();
transport_maps_search();
build_transport_maps();
relayhost();
postmaster();
コード例 #2
0
function sender_canonical_maps()
{
    sender_canonical_maps_build();
    if (!isset($GLOBALS["sender_canonical_maps"])) {
        echo "Starting......: " . date("H:i:s") . " 0 sender retranslation rule(s)\n";
        shell_exec("{$GLOBALS["postconf"]} -X \"sender_canonical_maps\" >/dev/null 2>&1");
        return;
    }
    if (!is_array($GLOBALS["sender_canonical_maps"])) {
        echo "Starting......: " . date("H:i:s") . " 0 sender retranslation rule(s)\n";
        shell_exec("{$GLOBALS["postconf"]} -X \"sender_canonical_maps\" >/dev/null 2>&1");
        return;
    }
    echo "Starting......: " . date("H:i:s") . " Postfix " . count($GLOBALS["sender_canonical_maps"]) . " sender retranslation rule(s)\n";
    @file_put_contents("/etc/postfix/sender_canonical", implode("\n", $GLOBALS["sender_canonical_maps"]));
    shell_exec("{$GLOBALS["postmap"]} hash:/etc/postfix/sender_canonical >/dev/null 2>&1");
    shell_exec("{$GLOBALS["postconf"]} -e \"sender_canonical_maps = hash:/etc/postfix/sender_canonical\" >/dev/null 2>&1");
}