bloodymage / ansible-collection-autonomy

Ansible collection to install self hosted services
https://bloodymage.org
MIT License
22 stars 3 forks source link

Encrypt emails in storage on a per user basis #291

Open gderber opened 3 years ago

gderber commented 3 years ago

Evaluating the options.

Dovecot: mail-crypt-plugin

Advantages:

  1. It's built into dovecot
  2. Allows for spam training via .

Disadvantages:

  1. It stores user secret keys on the server.
  2. Email not encrypted until it reaches dovecot.

GPGit

Selective encryption

Encrypt Everything

S/MIME

gderber commented 3 years ago

Two conflicting needs:

  1. Spamassassin training through moving email into and out of the spam folder.
  2. Ensuring emails are kept private

Decrypting and encrypting emails as they move in and out of the spam folder won't work because that would require user private keys to be stored on the email server.

gderber commented 3 years ago

Methods for encrypting:

  1. Use pgp public keys
  2. Use user public cert.