67 lines
1.7 KiB
HTML
67 lines
1.7 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
|
|
<h2>Mails</h2>
|
|
|
|
<h3>Boîtes mail existantes</h3>
|
|
<ul>
|
|
{% for mb in mailboxes %}
|
|
<li>{{ mb }}</li>
|
|
{% else %}
|
|
<li>Aucune boîte trouvée.</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h3>Créer boîte mail</h3>
|
|
<form method="post">
|
|
{{ create_form.hidden_tag() }}
|
|
{{ create_form.email.label }} {{ create_form.email }}<br>
|
|
{{ create_form.password.label }} {{ create_form.password }}<br>
|
|
{{ create_form.submit }}
|
|
</form>
|
|
|
|
<h3>Créer boîte mail à partir d'un fichier CSV</h3>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
{{ create_form.hidden_tag() }}
|
|
{{ create_form.csv_file.label }} {{ create_form.csv_file() }}
|
|
{{ create_form.import_submit() }}
|
|
</form>
|
|
|
|
<h3>Modifier mot de passe boîte mail</h3>
|
|
<form method="post">
|
|
{{ change_form.hidden_tag() }}
|
|
{{ change_form.email.label }} {{ change_form.email }}<br>
|
|
{{ change_form.password.label }} {{ change_form.password }}<br>
|
|
{{ change_form.submit }}
|
|
</form>
|
|
|
|
<h3>Supprimer boîte mail</h3>
|
|
<form method="post">
|
|
{{ delete_form.hidden_tag() }}
|
|
{{ delete_form.email.label }} {{ delete_form.email }}<br>
|
|
{{ delete_form.submit }}
|
|
</form>
|
|
|
|
<hr>
|
|
<h2>Fail2ban</h2>
|
|
|
|
<h3>IP bannies (Fail2Ban - dovecot)</h3>
|
|
<pre>{{ banned_output }}</pre>
|
|
|
|
<h3>Unban IP</h3>
|
|
<form method="post">
|
|
{{ ip_form.hidden_tag() }}
|
|
{{ ip_form.ip.label }} {{ ip_form.ip }}<br>
|
|
{{ ip_form.jail.label }} {{ ip_form.jail }}<br>
|
|
{{ ip_form.submit }}
|
|
</form>
|
|
|
|
<hr>
|
|
<h2>Message</h2>
|
|
{% if output %}
|
|
<pre>{{ output }}</pre>
|
|
{% endif %}
|
|
<hr>
|
|
<a href="{{ url_for('logout') }}">Logout</a>
|
|
|
|
{% endblock %} |