feat(protocols): trusted senders are not filed as spam, when the message proves its sender

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Sonnet 5.5 committed 2026-10-22 15:45:10 -03:00
1 parent b536ed13e7
commit d7f9659b5e
7 files changed
+226

No files matched your search

@@ -135,6 +135,8 @@ func run(cfg config) {
// wired the scripts were stored and never read, so a vacation responder
// that was switched on never replied and no filter ever filed anything.
inboundUC.SetRules(usecase.NewApplyRulesUseCase(postgres.NewSieveRepository(pool)))
// Senders the mailbox trusts are not filed as spam.
inboundUC.SetTrustedSenders(postgres.NewTrustedSenders(pool))
// ------------------------------------------------------------ outbound
var signer port.DkimSigner