feat(mail-ingest): read forwarded mails from an IMAP box, a signed webhook and the TREK Cloud relay

The IMAP job reads the box every two minutes through the SSRF guard, keeps a
uid cursor and moves read mails to TREK/processed. The webhook takes raw MIME
signed with HMAC-SHA256 over a timestamp, the recipient and the mail, and is a
404 unless it is the transport. The relay job collects a managed install's mails.
This commit is contained in:
Maurice
2026-11-13 16:42:43 +01:00
parent 6309064f40
commit 1bfaf4ea98
15 changed files with 1256 additions and 7 deletions
@@ -88,7 +88,7 @@ interface MailIngestTripPlaceRow {
}
/** A trip as the inbox names it to a person who can see it. */
export interface MailIngestTripRefRow {
interface MailIngestTripRefRow {
id: number;
title: string;
start_date: string | null;