Beispiel #1
0
            set_mailcow_config("vtenable", "1");
        } else {
            set_mailcow_config("vtenable", "0");
        }
        if (isset($_POST["clamavenable"]) && $_POST["clamavenable"] == "on") {
            set_mailcow_config("cavenable", "1");
        } else {
            set_mailcow_config("cavenable", "0");
        }
        postfix_reload();
    }
    if (isset($_POST["anonymize_"])) {
        if (!isset($_POST["anonymize"])) {
            $_POST["anonymize"] = "";
        }
        set_mailcow_config("anonymize", $_POST["anonymize"]);
        postfix_reload();
    }
    if (isset($_POST["mailboxaction"])) {
        switch ($_POST["mailboxaction"]) {
            case "deletedomainadmin":
                delete_domain_admin($link, $_POST);
                break;
            case "adddomainadmin":
                add_domain_admin($link, $_POST);
                break;
        }
    }
}
if (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "user") {
    if (isset($_POST["mailboxaction"])) {
Beispiel #2
0
    if (isset($_POST["srr"])) {
        set_mailcow_config("srr", $_POST);
        postfix_reload();
    }
    if (isset($_GET["del"])) {
        opendkim_table("delete", $_GET["del"]);
    }
    if (isset($_POST["maxmsgsize"])) {
        set_mailcow_config("maxmsgsize", $_POST["maxmsgsize"]);
    }
    if (isset($_POST["dkim_selector"])) {
        opendkim_table("add", $_POST["dkim_selector"] . "_" . $_POST["dkim_domain"]);
    }
    if (isset($_POST["trigger_anonymize"])) {
        isset($_POST['anonymize']) ? $anonymize = 'on' : ($anonymize = '');
        set_mailcow_config("anonymize", $anonymize);
        postfix_reload();
    }
    if (isset($_POST["trigger_add_domain_admin"])) {
        add_domain_admin($link, $_POST);
    }
    if (isset($_POST["trigger_delete_domain_admin"])) {
        delete_domain_admin($link, $_POST);
    }
}
if (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "user") {
    if (isset($_POST["trigger_set_user_account"])) {
        set_user_account($link, $_POST);
    }
    if (isset($_POST["trigger_set_fetch_mail"])) {
        set_fetch_mail($link, $_POST);