admin@'s inbox gets sorted: machine mail routes itself out on delivery #115

Merged
lament merged 1 commit from tweaks into main 2026-07-26 02:20:17 -05:00
Owner
  • admin@'s mailbox gets a sieve script that routes machine mail out of INBOX on delivery: fail2ban notifications -> INBOX.f2b, borgbackup failures -> INBOX.borg, DMARC aggregate reports -> INBOX.dmarc.
    • keys the first two on the X-Notification-Source header both notifiers stamp themselves, not the [f2b]/[borg] subject prefixes (cosmetic, would drift). DMARC has no such header, so that leg matches From containing dmarc, which covers both google's and microsoft's report senders in one test.
    • no mailserver.mailboxes entry needed - dovecot's lda_mailbox_autocreate/autosubscribe create and subscribe the folders on first delivery.

left for later: pre-existing borg/dmarc mail already sitting in INBOX needs a one-off doveadm move sweep, sieve only fires at delivery time.

- `admin@`'s mailbox gets a sieve script that routes machine mail out of INBOX on delivery: `fail2ban` notifications -> `INBOX.f2b`, `borgbackup` failures -> `INBOX.borg`, DMARC aggregate reports -> `INBOX.dmarc`. - keys the first two on the `X-Notification-Source` header both notifiers stamp themselves, not the `[f2b]`/`[borg]` subject prefixes (cosmetic, would drift). DMARC has no such header, so that leg matches `From` containing `dmarc`, which covers both google's and microsoft's report senders in one test. - no `mailserver.mailboxes` entry needed - dovecot's `lda_mailbox_autocreate`/`autosubscribe` create and subscribe the folders on first delivery. left for later: pre-existing borg/dmarc mail already sitting in INBOX needs a one-off `doveadm move` sweep, sieve only fires at delivery time.
mail gets sieved
All checks were successful
CI / check (pull_request) Successful in 59s
CI / deploy (pull_request) Has been skipped
CI / build (pull_request) Successful in 2m13s
CI / dry-activate (pull_request) Successful in 30s
CI / check (push) Has been skipped
CI / build (push) Has been skipped
CI / dry-activate (push) Has been skipped
CI / deploy (push) Successful in 2m41s
db0a0a2ade
lament scheduled this pull request to auto merge when all checks succeed 2026-07-26 02:16:57 -05:00
lament merged commit db0a0a2ade into main 2026-07-26 02:20:17 -05:00
lament deleted branch tweaks 2026-07-26 02:20:17 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lament/pantheon!115
No description provided.