From 821a2bde33ead710d3713d9637075c1487e1fce6 Mon Sep 17 00:00:00 2001 From: boban Date: Sat, 8 Nov 2025 12:43:52 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Mailbox=20Stats=20=C3=BCber=20Dovecot=20?= =?UTF-8?q?mit=20config/mailpool.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Helpers/helpers.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index 6e423ae..9da8b98 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -31,7 +31,6 @@ if (!function_exists('webmail_host')) { if (!function_exists('mta_host')) { function mta_host(?int $domainId = null): string { - // 1️⃣ Vorrang: Datenbankwert (z. B. aus der domains-Tabelle) if ($domainId) { try { $domain = \App\Models\Domain::find($domainId); @@ -39,11 +38,10 @@ if (!function_exists('mta_host')) { return $domain->mta_host; } } catch (\Throwable $e) { - // DB evtl. noch nicht migriert — fallback auf env +// DB evtl. noch nicht migriert — fallback auf env } } - // 2️⃣ ENV-Variante (z. B. MTA_SUB=mail01) $sub = env('MTA_SUB'); if ($sub) { return domain_host($sub);