mailwolt/resources/views/livewire/ui/security/rspamd-form.blade.php

105 lines
5.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<x-slot:breadcrumbParent>Sicherheit</x-slot:breadcrumbParent>
<x-slot:breadcrumb>Rspamd</x-slot:breadcrumb>
<div>
<div class="mbx-page-header">
<div class="mbx-page-title">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<circle cx="8" cy="8" r="6.5" stroke="currentColor" stroke-width="1.3"/>
<path d="M8 5v4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
<circle cx="8" cy="11.5" r=".9" fill="currentColor"/>
</svg>
Rspamd
@if($running)
<span class="mbx-badge-ok" style="font-size:10px">Aktiv</span>
@else
<span class="mbx-badge-warn" style="font-size:10px">Gestoppt</span>
@endif
</div>
<div class="mbx-page-actions">
<button wire:click="save" class="mbx-btn-primary">
<svg width="12" height="12" viewBox="0 0 14 14" fill="none"><path d="M2 2h8l2 2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.2"/><path d="M5 2v3h4V2" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>
<span wire:loading.remove wire:target="save">Speichern & Reload</span>
<span wire:loading wire:target="save">Speichert…</span>
</button>
</div>
</div>
<div class="sec-layout">
{{-- Main --}}
<div style="min-width:0">
<div class="mbx-sections">
<div class="mbx-section">
<div class="mbx-domain-head">
<div class="mbx-domain-info">
<span class="mbx-badge-mute">Score-Schwellwerte</span>
</div>
</div>
<div style="padding:16px 18px">
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px">
<div>
<label class="mw-modal-label">Greylist-Score</label>
<input type="number" step="0.5" wire:model.defer="greylist_score" class="mw-modal-input">
<div class="mw-modal-hint">Ab diesem Score Greylist</div>
</div>
<div>
<label class="mw-modal-label">Spam-Score (Header)</label>
<input type="number" step="0.5" wire:model.defer="spam_score" class="mw-modal-input">
<div class="mw-modal-hint">Ab diesem Score X-Spam-Header</div>
</div>
<div>
<label class="mw-modal-label">Reject-Score</label>
<input type="number" step="0.5" wire:model.defer="reject_score" class="mw-modal-input">
<div class="mw-modal-hint">Ab diesem Score Ablehnen</div>
</div>
</div>
<div style="margin-top:14px;padding:10px 12px;border-radius:8px;border:1px solid var(--mw-b2);background:var(--mw-bg4)">
<div style="font-size:10.5px;color:var(--mw-t4);margin-bottom:7px">Score-Verlauf</div>
<div style="display:flex;align-items:center;gap:6px;font-size:11px;color:var(--mw-t3);flex-wrap:wrap">
<span style="color:var(--mw-gr)"></span> 0{{ $greylist_score - 0.5 }} OK
<span style="color:var(--mw-b3);margin:0 2px"></span>
<span style="color:var(--mw-am)"></span> {{ $greylist_score }}{{ $spam_score - 0.5 }} Greylist
<span style="color:var(--mw-b3);margin:0 2px"></span>
<span style="color:var(--mw-am)"></span> {{ $spam_score }}{{ $reject_score - 0.5 }} Header
<span style="color:var(--mw-b3);margin:0 2px"></span>
<span style="color:var(--mw-rd)"></span> {{ $reject_score }} Reject
</div>
</div>
</div>
</div>
</div>
</div>
{{-- Sidebar --}}
<div>
<div class="mbx-sections">
<div class="mbx-section">
<div class="mbx-domain-head">
<div class="mbx-domain-info">
<span class="mbx-badge-mute">Info</span>
</div>
</div>
<div style="padding:14px 16px;font-size:12px;color:var(--mw-t3);line-height:1.7">
<div style="margin-bottom:10px">
Konfigurationsdatei:<br>
<code style="font-size:10.5px;color:var(--mw-t2)">/etc/rspamd/local.d/<br>mailwolt-actions.conf</code>
</div>
<div style="font-size:11px;color:var(--mw-t4)">
Änderungen werden sofort gespeichert und rspamd neu geladen.
</div>
@if(!$running)
<div style="margin-top:10px;padding:8px 10px;border-radius:7px;border:1px solid rgba(239,68,68,.3);background:rgba(239,68,68,.07);color:#fca5a5;font-size:11.5px">
rspamd ist derzeit nicht aktiv.
</div>
@endif
</div>
</div>
</div>
</div>
</div>
</div>