mail: Kontakterreichbarkeit - Formpruefung, Domainpruefung, Einlieferer-Bericht
Vier Punkte aus kontakterreichbarkeit-mx-bounces-2026-09-15.md, ohne Veroeffentlichungssperre: - PlausibleEmailDomain: Domain ohne Endung oder mit Tippfehler-TLD ist ein 422 an der Legacy-API, deterministisch ohne DNS. - email_domain_checks + MailDomainChecker ueber DnsResolver-Schnittstelle (RFC 5321 impliziter MX, RFC 7505 Null MX, Unresolved ist kein Befund), Observer an Company/Contact, Job nach Commit, taeglicher Refresh, mail:check-domains fuer den Bestand. Nie eine Adresssperre aus DNS. - Admin > Reports > Einlieferer-Bericht: tote Adressen aus Sperrliste und Domainbefund, automatisch abgelehnte Meldungen mit Grund, Text zum Kopieren und CSV. Versendet nichts. - EmailBounceKind::Policy: 5.7.x wird protokolliert, zaehlt aber nicht auf den Schwellwert. Statuscode entscheidet vor Diagnosetext. Messung vorab: 6 von 877 API-Domains ohne Zustellweg, eine davon fuer 66 der 151 Ruecklaeufer verantwortlich. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fddfd8a61c
commit
ada41cb067
34 changed files with 1985 additions and 25 deletions
36
tests/Support/FakeDnsResolver.php
Normal file
36
tests/Support/FakeDnsResolver.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Support;
|
||||
|
||||
use App\Services\Mail\DnsResolver;
|
||||
|
||||
/**
|
||||
* DNS aus einer Tabelle statt aus dem Netz (Abnahmekriterium: keine
|
||||
* öffentlichen Resolver im Testlauf).
|
||||
*
|
||||
* `null` als Wert bedeutet Resolver-Fehler (Timeout/SERVFAIL), ein fehlender
|
||||
* Eintrag bedeutet „Domain antwortet, hat diesen Record aber nicht".
|
||||
*/
|
||||
class FakeDnsResolver implements DnsResolver
|
||||
{
|
||||
/**
|
||||
* @param array<string, array<string, list<array<string, mixed>>|null>> $zones
|
||||
*/
|
||||
public function __construct(private array $zones = []) {}
|
||||
|
||||
public function records(string $domain, string $type): ?array
|
||||
{
|
||||
$zone = $this->zones[mb_strtolower($domain)] ?? [];
|
||||
|
||||
if (! array_key_exists($type, $zone)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return $zone[$type];
|
||||
}
|
||||
|
||||
public function set(string $domain, string $type, ?array $records): void
|
||||
{
|
||||
$this->zones[mb_strtolower($domain)][$type] = $records;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue