diff --git a/docs/content/config/security/mail_crypt.md b/docs/content/config/security/mail_crypt.md index ce6938ea..7b641ea7 100644 --- a/docs/content/config/security/mail_crypt.md +++ b/docs/content/config/security/mail_crypt.md @@ -10,22 +10,31 @@ title: 'Security | mail_crypt (email/storage encryption)' There can be a single encryption key for the whole system or each user can have a key of their own. The used cryptographical methods are widely used standards and keys are stored in portable formats, when possible. + + Official Dovecot documentation: https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/ --- -## Basic Setup +## Single Encryption Key / Global Method + +1. Create `10-custom.conf` and populate it with the following: -1. Before you can enable mail_crypt, you'll need to copy out several dovecot/conf.d files to the host (from a running container) and then take the container down: - ```bash - mkdir -p config/dovecot - docker cp mailserver:/etc/dovecot/conf.d/20-lmtp.conf config/dovecot/ - docker cp mailserver:/etc/dovecot/conf.d/20-imap.conf config/dovecot/ - docker cp mailserver:/etc/dovecot/conf.d/20-pop3.conf config/dovecot/ - docker-compose down ``` -2. You then need to [generate your global EC key](https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/#ec-key). -3. The EC key needs to be available in the container. I prefer to mount a /certs directory into the container: + # Enables mail_crypt for all services (imap, pop3, etc) + mail_plugins = $mail_plugins mail_crypt + plugin { + mail_crypt_global_private_key =