<button type="submit" name="trigger_anonymize" class="btn btn-default">Apply</button> </div> </div> </form> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" data-toggle="collapse" data-parent="#accordion_config" data-target="#collapseDKIM"><a style="cursor:pointer;" class="accordion-toggle">DKIM signing</a></div> <div id="collapseDKIM" class="panel-collapse collapse"> <div class="panel-body"> <p>Default behaviour is to sign with relaxed header and body canonicalization algorithm.</p> <h4>Active keys</h4> <?php opendkim_table(); ?> <h4>Add new key</h4> <form class="form-inline" role="form" method="post"> <div class="form-group"> <label for="dkim_domain">Domain</label> <input class="form-control" id="dkim_domain" name="dkim_domain" placeholder="example.org"> </div> <div class="form-group"> <label for="dkim_selector">Selector</label> <input class="form-control" id="dkim_selector" name="dkim_selector" placeholder="default"> </div> <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Add</button> </form> </div> </div>
} if (file_exists("/tmp/clamav_positives.zip")) { unlink("/tmp/clamav_positives.zip"); } if (isset($_POST["vtapikey"]) && ctype_alnum($_POST["vtapikey"])) { set_mailcow_config("vtapikey", $_POST["vtapikey"]); } if (isset($_POST["maxmsgsize"]) && ctype_alnum($_POST["maxmsgsize"])) { set_mailcow_config("maxmsgsize", $_POST["maxmsgsize"]); } if (isset($_POST["sender"])) { set_mailcow_config("senderaccess", $_POST["sender"]); postfix_reload(); } if (isset($_POST["dkim_selector"])) { opendkim_table("add", $_POST["dkim_selector"] . "_" . $_POST["dkim_domain"]); } if (isset($_POST["ext"])) { if (isset($_POST["vfilter"]) && $_POST["vfilter"] == "filter") { set_mailcow_config("extlist", $_POST["ext"], "filter"); } else { set_mailcow_config("extlist", $_POST["ext"], "reject"); } if (isset($_POST["virustotalcheckonly"]) && $_POST["virustotalcheckonly"] == "on") { set_mailcow_config("vtupload", "0"); } else { set_mailcow_config("vtupload", "1"); } if (isset($_POST["virustotalenable"]) && $_POST["virustotalenable"] == "on") { set_mailcow_config("vtenable", "1"); } else {
if (isset($_POST["reset-ssr"])) { $_SESSION['last_expanded'] = "collapseRestrictions"; set_mailcow_config("reset-ssr"); postfix_reload(); } if (isset($_POST["delete_dkim_record"])) { $_SESSION['last_expanded'] = "collapseDKIM"; opendkim_table("delete", $_POST["delete_dkim_record"]); } if (isset($_POST["maxmsgsize"])) { $_SESSION['last_expanded'] = "collapseMsgSize"; set_mailcow_config("maxmsgsize", $_POST["maxmsgsize"]); } if (isset($_POST["add_dkim_record"])) { $_SESSION['last_expanded'] = "collapseDKIM"; opendkim_table("add", $_POST); } if (isset($_POST["trigger_anonymize"])) { isset($_POST['anonymize']) ? $anonymize = 'on' : ($anonymize = ''); $_SESSION['last_expanded'] = "collapsePrivacy"; set_mailcow_config("anonymize", $anonymize); postfix_reload(); } if (isset($_POST["trigger_add_domain_admin"])) { $_SESSION['last_expanded'] = "collapseDomAdmins"; add_domain_admin($_POST); } if (isset($_POST["trigger_delete_domain_admin"])) { $_SESSION['last_expanded'] = "collapseDomAdmins"; delete_domain_admin($_POST); }