Fix: Sysmail-Domain basiert auf Mail-Domain (sysmail.<MTA_FQDN>)
Statt sysmail.<BASE_DOMAIN> wird jetzt sysmail.<MTA_SUB>.<BASE_DOMAIN> angelegt (z.B. sysmail.mx.pxo.at statt sysmail.pxo.at) – Base-Domain des Users bleibt unangetastet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.365
parent
96477ede1c
commit
eb17d056b7
|
|
@ -199,11 +199,13 @@ class SettingsForm extends Component
|
|||
$this->applyDomains(false);
|
||||
}
|
||||
|
||||
// System-Domain (sysmail.<BASE_DOMAIN>) provisionieren, falls noch nicht vorhanden
|
||||
// System-Domain (sysmail.<MAIL_DOMAIN>) provisionieren, falls noch nicht vorhanden
|
||||
$platformBase = config('mailpool.platform_zone', env('BASE_DOMAIN', ''));
|
||||
if ($platformBase && $platformBase !== 'example.com') {
|
||||
$systemSub = config('mailpool.platform_system_zone', 'sysmail');
|
||||
$systemFqdn = strtolower("{$systemSub}.{$platformBase}");
|
||||
$mtaSub = strtolower(env('MTA_SUB', 'mx') ?: 'mx');
|
||||
$systemSub = strtolower(config('mailpool.platform_system_zone', 'sysmail'));
|
||||
$serverFqdn = strtolower("{$mtaSub}.{$platformBase}");
|
||||
$systemFqdn = strtolower("{$systemSub}.{$serverFqdn}");
|
||||
if (!\App\Models\Domain::where('domain', $systemFqdn)->exists()) {
|
||||
try {
|
||||
Artisan::call('db:seed', [
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ class SystemDomainSeeder extends Seeder
|
|||
$mtaSub = strtolower(env('MTA_SUB', 'mx') ?: 'mx'); // z.B. mx
|
||||
$systemSub = strtolower(config('mailpool.platform_system_zone') ?: 'sysmail'); // z.B. sysmail
|
||||
|
||||
$serverFqdn = strtolower("{$mtaSub}.{$platformBase}"); // mx.nexlab.at
|
||||
$systemFqdn = strtolower("{$systemSub}.{$platformBase}"); // sysmail.nexlab.at
|
||||
$serverFqdn = strtolower("{$mtaSub}.{$platformBase}"); // mx.nexlab.at
|
||||
$systemFqdn = strtolower("{$systemSub}.{$serverFqdn}"); // sysmail.mx.nexlab.at
|
||||
|
||||
// =========================================================================
|
||||
// 1) MAILSERVER-DOMAIN zuerst (mx.<BASE_DOMAIN>), is_server = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue