Bernd Wurst commited on 2023-12-09 06:59:13
Zeige 2 geänderte Dateien mit 8 Einfügungen und 12 Löschungen.
| ... | ... |
@@ -69,8 +69,6 @@ if ($setting == 'none') {
|
| 69 | 69 |
<li>Sie können keine Postfächer unter der Domain anlegen.</li> |
| 70 | 70 |
<li>Der Mail-Server wird E-Mails an diese Domain nicht annehmen.</li> |
| 71 | 71 |
</ul>'); |
| 72 |
- //addnew('email_save', 'Mail-Empfang einschalten (Webinterface-Verwaltung)', "dom=" . $dom->id . "&mail=vmail");
|
|
| 73 |
- //addnew('email_save', 'Mail-Empfang einschalten (Manuelle Verwaltung)', "dom=" . $dom->id . "&mail=manual", 'class="grey"');
|
|
| 74 | 72 |
} elseif ($setting == 'vmail') {
|
| 75 | 73 |
output('<div class="success">E-Mail-Empfang eingeschaltet (Webinterface-Verwaltung)</div>
|
| 76 | 74 |
<p>Aktuell können Sie Ihre Postfächer ganz einfach über unser Webinterface verwalten. Dies ist die Standardeinstellung.</p> |
| ... | ... |
@@ -81,8 +79,6 @@ if ($setting == 'none') {
|
| 81 | 79 |
</ul>'); |
| 82 | 80 |
if (count_vmail($dom->id) > 0) {
|
| 83 | 81 |
output('<p>So lange noch E-Mail-Adressen unter dieser Domain eingerichtet sind, können Sie diese Einstellung nicht ändern.</p>');
|
| 84 |
- } else {
|
|
| 85 |
- //output('<p class="delete">' . internal_link("email_save", "Mail-Empfang für diese Domain ausschalten", "dom=" . $dom->id . '&mail=none') . '</p>');
|
|
| 86 | 82 |
} |
| 87 | 83 |
} elseif ($setting == 'manual') {
|
| 88 | 84 |
output('<div class="warning">E-Mail-Empfang aktiv (Manuelle Verwaltung)</div>
|
| ... | ... |
@@ -92,13 +88,12 @@ if ($setting == 'none') {
|
| 92 | 88 |
<li>Die DNS-Records (z.B. MX, SPF, DKIM und Autoconfig) werden erstellt, sofern Sie keinen dazu widersprüchlichen DNS-Record selbst angelegt haben.</li> |
| 93 | 89 |
<li>Hilfestellung zu den damit verbundenen Möglichkeiten erhalten Sie <a href="https://wiki.schokokeks.org/E-Mail/Manuelle_Konfiguration">in unserem Wiki</a></li> |
| 94 | 90 |
</ul>'); |
| 95 |
- //output('<p class="delete">' . internal_link("email_save", "Mail-Empfang für diese Domain ausschalten", "dom=" . $dom->id . '&mail=none') . '</p>');
|
|
| 96 | 91 |
} elseif ($setting == 'nomail') {
|
| 97 | 92 |
output('<div class="error">E-Mail-Empfang abgeschaltet und <strong>unterbunden</strong></div>
|
| 98 |
- <p>Aktuell ist der Empfang von E-Mail für die Domain <strong>' . $dom->fqdn . '</strong> ausgeschaltet und es wird mittels spezielle DNS-Records dafür gesorgt, dass E-Mails dieser Domain grundsätzlich als Spam eingestuft werden.</p> |
|
| 93 |
+ <p>Aktuell ist der Empfang von E-Mail für die Domain <strong>' . $dom->fqdn . '</strong> ausgeschaltet und es wird mittels spezieller DNS-Records dafür gesorgt, dass E-Mails dieser Domain grundsätzlich als Spam eingestuft werden.</p> |
|
| 99 | 94 |
<ul> |
| 100 | 95 |
<li>Es wird ein leerer MX-Record erstellt.</li> |
| 101 |
- <li>Der SPF- und der DMARC-Record werden auf "immer abweisen" gesetzt.</li> |
|
| 96 |
+ <li>Der SPF- und der DMARC-Record werden jeweils auf "immer abweisen" gesetzt.</li> |
|
| 102 | 97 |
<li>Die DNS-Records für DKIM und Autoconfig werden nicht erstellt.</li> |
| 103 | 98 |
<li>Sie können keine Postfächer unter der Domain anlegen.</li> |
| 104 | 99 |
<li>Der Mail-Server wird E-Mails an diese Domain nicht annehmen.</li> |
| ... | ... |
@@ -65,7 +65,7 @@ foreach ($domains as $id => $dom) {
|
| 65 | 65 |
$notice .= ' <strong>Mailserver-Sperre aktiv!</strong>'; |
| 66 | 66 |
} |
| 67 | 67 |
$check_nomail = ($dom['type'] == 'nomail' ? ' checked="checked"' : ''); |
| 68 |
- $check_off = ($dom['type'] == 'none' ? ' checked="checked"' : ''); |
|
| 68 |
+ $check_off = (($dom['type'] == 'none' || $dom['type'] == 'nomail') ? ' checked="checked"' : ''); |
|
| 69 | 69 |
$check_webinterface = ($dom['type'] == 'virtual' ? ' checked="checked"' : ''); |
| 70 | 70 |
$check_manual = ($dom['type'] == 'auto' || $dom['type'] == 'manual' ? ' checked="checked"' : ''); |
| 71 | 71 |
|
| ... | ... |
@@ -76,12 +76,13 @@ foreach ($domains as $id => $dom) {
|
| 76 | 76 |
<label for="option-' . $id . '-manual">Manuell</label> |
| 77 | 77 |
<input type="radio" name="option-' . $id . '" id="option-' . $id . '-off" value="off"' . $check_off . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/> |
| 78 | 78 |
<label for="option-' . $id . '-off">Ausgeschaltet</label>'; |
| 79 |
- if ($dom['type'] == 'nomail' || $dom['type'] == 'none') {
|
|
| 80 |
- $buttons .= '<input type="radio" class="nomail" name="option-' . $id . '" id="option-' . $id . '-nomail" value="nomail"' . $check_nomail . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/> |
|
| 81 |
- <label class="nomail" for="option-' . $id . '-nomail">Mail-Nutzung verhindern</label>'; |
|
| 82 |
- } |
|
| 83 | 79 |
$buttons .= '<input type="submit" value="Speichern" /> |
| 84 | 80 |
</span>'; |
| 81 |
+ if ($dom['type'] == 'nomail' || $dom['type'] == 'none') {
|
|
| 82 |
+ $buttons .= '<span class="nomail"><input type="checkbox" class="nomail autosubmit" name="option-' . $id . '" id="option-' . $id . '-nomail" value="nomail"' . $check_nomail . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/> |
|
| 83 |
+ <label class="nomail" for="option-' . $id . '-nomail">Mail-Nutzung verhindern</label> |
|
| 84 |
+ <input class="hidden" type="submit" value="Speichern" /></span>'; |
|
| 85 |
+ } |
|
| 85 | 86 |
|
| 86 | 87 |
if ($dom['type'] != 'none' && $dom['type'] != 'nomail' && $dom['dns'] == 1) {
|
| 87 | 88 |
$check_dmarc = ($dom['dkim'] == 'dmarc' ? ' checked="checked"' : ''); |
| 88 | 89 |