mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
SMTP Relay Host stub progress
This commit is contained in:
parent
6e462f6523
commit
c004e55c76
@ -520,6 +520,16 @@ def privacy_status_set():
|
||||
utils.write_settings(config, env)
|
||||
return "OK"
|
||||
|
||||
@app.route('/system/smtp/relay', methods=["GET"])
|
||||
@authorized_personnel_only
|
||||
def smtp_relay_get():
|
||||
pass
|
||||
|
||||
@app.route('/system/smtp/relay', methods=["POST"])
|
||||
@authorized_personnel_only
|
||||
def smtp_relay_set():
|
||||
pass
|
||||
|
||||
# MUNIN
|
||||
|
||||
@app.route('/munin/')
|
||||
|
@ -2,10 +2,14 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
function checklocks() {
|
||||
function checkfields() {
|
||||
let use_relay = document.getElementById("use_relay").checked
|
||||
let use_auth = document.getElementById("relay_use_auth").checked
|
||||
document.getElementById("relay_auth_user").disabled = !use_auth
|
||||
document.getElementById("relay_auth_pass").disabled = !use_auth
|
||||
|
||||
document.getElementById("relay_host").disabled = !use_relay
|
||||
document.getElementById("relay_use_auth").disabled = !use_relay
|
||||
document.getElementById("relay_auth_user").disabled = !use_relay && !use_auth
|
||||
document.getElementById("relay_auth_pass").disabled = !use_relay && !use_auth
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -22,6 +26,18 @@
|
||||
<form class="form-horizontal" role="form" onsubmit="return false;">
|
||||
<div class="form-group">
|
||||
<table style="width: 600px">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="use_relay" class="col-sm-1 control-label">Use Relay?</label>
|
||||
</td>
|
||||
<td>
|
||||
<div class="col-sm-10">
|
||||
<input type="checkbox" id="use_relay" name="use_relay" value="true"
|
||||
onclick="checkfields();">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label for="relay_host" class="col-sm-1 control-label">Hostname</label>
|
||||
@ -41,7 +57,7 @@
|
||||
<td>
|
||||
<div class="col-sm-10">
|
||||
<input checked type="checkbox" id="relay_use_auth" name="relay_use_auth" value="true"
|
||||
onclick="checklocks();">
|
||||
onclick="checkfields();">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user