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
4cefdf7f5c
commit
f581e1eb3a
34 changed files with 1985 additions and 25 deletions
43
app/Jobs/CheckEmailDomain.php
Normal file
43
app/Jobs/CheckEmailDomain.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Services\Mail\MailDomainChecker;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Queue\Queueable;
|
||||
use Illuminate\Queue\Middleware\WithoutOverlapping;
|
||||
|
||||
/**
|
||||
* Prüft die Domain einer Kontaktadresse im Hintergrund
|
||||
* (Kontakterreichbarkeit, Abschnitt 5.4).
|
||||
*
|
||||
* Wird nach dem Commit ausgelöst — die API wartet nie auf DNS, und eine
|
||||
* DNS-Störung darf keine eingereichten Daten kosten. Das Ergebnis steuert
|
||||
* nichts, es wird nur festgehalten und angezeigt.
|
||||
*/
|
||||
class CheckEmailDomain implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public int $tries = 2;
|
||||
|
||||
public function __construct(public string $domain) {}
|
||||
|
||||
/**
|
||||
* @return list<object>
|
||||
*/
|
||||
public function middleware(): array
|
||||
{
|
||||
return [(new WithoutOverlapping('maildomain:'.$this->domain))->dontRelease()];
|
||||
}
|
||||
|
||||
public function handle(MailDomainChecker $checker): void
|
||||
{
|
||||
$checker->check($this->domain);
|
||||
}
|
||||
|
||||
public function uniqueId(): string
|
||||
{
|
||||
return $this->domain;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue