mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-02-03 11:07:14 +00:00
[Postfix] Configurable send permissions for alias addresses
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<form class="form-horizontal" data-id="editalias" role="form" method="post">
|
||||
<input type="hidden" value="0" name="active">
|
||||
<input type="hidden" value="0" name="internal">
|
||||
<input type="hidden" value="0" name="sender_allowed">
|
||||
{% if not skip_sogo %}
|
||||
<input type="hidden" value="0" name="sogo_visible">
|
||||
{% endif %}
|
||||
@@ -39,7 +40,11 @@
|
||||
<div class="form-check">
|
||||
<label><input type="checkbox" class="form-check-input" value="1" name="internal"{% if result.internal == '1' %} checked{% endif %}> {{ lang.edit.internal }}</label>
|
||||
</div>
|
||||
<small class="text-muted d-block">{{ lang.edit.internal_info }}</small>
|
||||
<small class="text-muted d-block mb-2">{{ lang.edit.internal_info }}</small>
|
||||
<div class="form-check">
|
||||
<label><input type="checkbox" class="form-check-input" value="1" name="sender_allowed"{% if result.sender_allowed == '1' %} checked{% endif %}> {{ lang.edit.sender_allowed }}</label>
|
||||
</div>
|
||||
<small class="text-muted d-block">{{ lang.edit.sender_allowed_info }}</small>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@@ -85,14 +85,6 @@
|
||||
{{ lang.edit.dont_check_sender_acl|format(domain) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
{% for alias in sender_acl_handles.sender_acl_addresses.ro %}
|
||||
<option data-subtext="Admin" disabled selected>
|
||||
{{ alias }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
{% for alias in sender_acl_handles.fixed_sender_aliases %}
|
||||
<option data-subtext="Alias" disabled selected>{{ alias }}</option>
|
||||
{% endfor %}
|
||||
{% for domain in sender_acl_handles.sender_acl_domains.rw %}
|
||||
<option value="{{ domain }}" selected>
|
||||
{{ lang.edit.dont_check_sender_acl|format(domain) }}
|
||||
@@ -104,11 +96,25 @@
|
||||
</option>
|
||||
{% endfor %}
|
||||
{% for address in sender_acl_handles.sender_acl_addresses.rw %}
|
||||
<option selected>{{ address }}</option>
|
||||
{% if address in sender_acl_handles.fixed_sender_aliases_allowed or address in sender_acl_handles.fixed_sender_aliases_blocked %}
|
||||
<option data-subtext="Alias" selected>{{ address }}</option>
|
||||
{% else %}
|
||||
<option selected>{{ address }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for address in sender_acl_handles.sender_acl_addresses.selectable %}
|
||||
<option>{{ address }}</option>
|
||||
{% endfor %}
|
||||
{% for alias in sender_acl_handles.fixed_sender_aliases_allowed %}
|
||||
{% if alias not in sender_acl_handles.sender_acl_addresses.rw %}
|
||||
<option data-subtext="Alias (allowed)" value="{{ alias }}" selected>{{ alias }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for alias in sender_acl_handles.fixed_sender_aliases_blocked %}
|
||||
{% if alias not in sender_acl_handles.sender_acl_addresses.rw %}
|
||||
<option data-subtext="Alias (blocked)" value="{{ alias }}">{{ alias }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div id="sender_acl_disabled"><i class="bi bi-shield-exclamation"></i> {{ lang.edit.sender_acl_disabled|raw }}</div>
|
||||
<small class="text-muted d-block">{{ lang.edit.sender_acl_info|raw }}</small>
|
||||
|
||||
Reference in New Issue
Block a user