This commit is contained in:
2026-08-10 21:15:19 +01:00
parent d7ca591b76
commit 4da942786e
97 changed files with 105039 additions and 3370 deletions
+15
View File
@@ -144,6 +144,7 @@ type MailboxEntry struct {
SizeBytes int64
ReceivedAt time.Time
InternalDate time.Time
HeaderEnc []byte // encrypted CachedHeader JSON; nil for pre-migration rows
}
// ── Outbound queue ───────────────────────────────────────────────────────────
@@ -342,6 +343,20 @@ type TLSCert struct {
UpdatedAt time.Time
}
// MTASTSPolicy is a cached RFC 8461 policy for a recipient domain, keyed by
// domain — not encrypted, a domain's published mail policy is public data
// (same trust level as its SPF/DMARC/MX records).
type MTASTSPolicy struct {
ID string
Domain string
PolicyID string
Mode string
MXPatterns string // JSON array
MaxAge int // seconds
FetchedAt time.Time
ExpiresAt time.Time
}
// ── MFA ───────────────────────────────────────────────────────────────────────
type MFABackupCode struct {