maddy
maddy copied to clipboard
Direct SMTP delivery to storage.blob (filesystem, S3)
There is storage.blob module namespace that is used by IMAP storage layer to store message bodies. It would be helpful if we can implement an adapter that would allow SMTP pipeline to directly write messages into blob storage (which can be backed by FS or S3 bucket or something else).
I guess we could just make all storage.blob implementations also implement delivery target interface via some helper utility so users can just write:
deliver_to s3 { bucket config goes here }
Important details:
- How object (file) name should be formatted?
- How SMTP metadata should be saved (if saved at all)?
How SMTP metadata should be saved (if saved at all)?
Something like this can be inserted into message header:
X-Maddy-SMTP-From: [email protected]
X-Maddy-SMTP-To: [email protected], [email protected]
X-Maddy-SMTP-Flags: smtputf8, requiretls
It probably should be possible to disable it.