maddy icon indicating copy to clipboard operation
maddy copied to clipboard

Direct SMTP delivery to storage.blob (filesystem, S3)

Open foxcpp opened this issue 4 years ago • 1 comments

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:

  1. How object (file) name should be formatted?
  2. How SMTP metadata should be saved (if saved at all)?

foxcpp avatar Dec 11 '21 15:12 foxcpp

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.

foxcpp avatar Dec 11 '21 15:12 foxcpp