summaryrefslogtreecommitdiff
path: root/plugin.md
blob: a2447b1af841e6d76cf0fb2e307bcc9df935c2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# PGPMailman plugin

## Structure

  * `pgpmailman` - A Core plugin.
     - `styles` - Both styles generate a list keypair based on plugin settings on list creation as well as set other attributes for an encrypted mailing list.
        - `EncryptedDefaultStyle`
        - `EncryptedAnnounceStyle`

     - `pgp` - Module that handles lower-level pgp related stuff. Such as the GPG keyrings, lookup of keys, encryption of messages, decryption, etc...

     - `commands`
        - `KeyEmailCommand` - Handles user key management through the `key` command.
        - `KeyCLICommand`

     - `runners`
        - `EncryptedIncomingRunner` - Decrypts incoming messages for encrypted mailing lists and checks their signatures before passing them to the default IncomingRunner. Messages to ordinary lists are passed to the default IncomingRunner wthout change.
        - `EncryptedOutgoingRunner` - Encrypts and optionally signs for configured lists. This is a runner and not a Pipeline since we need to encrypt all outgoing messages, so digests, virgin messages, posts...

     - `archivers`
        - `EncryptedHyperKittyArchiver` - Fetches list archive public keys from `django-pgpmailman`, uses them to send messages to archive encrypted, for encrypted lists.
        - `EncryptedLocalArchiver` - Stores messages encrypted with list-key in maildir format.

     - `initialize()` - A callable to be setup in a Mailman hook, to setup everything necessary for pgpmailman to run. Such as adding the `listname-key`@ subaddress, creating keyrings if not found, subscribing to events if necessary.

  * `django-pgpmailman` - A Django app that extends Postorius and HyperKitty, also with an associated example_project that combines Postorius, HyperKitty while extending their templates and views seamlessly.

## Instalation

### Core plugin

A setuptools package that needs to be installed into the same virtualenv as the Mailman 3 instance.

### Django app

A setuptools package that needs to be installed into the same virtualenv as the Postorius and HyperKitty instances, packaged with an example_project.

## Configuration

### Core plugin

Custom runners, archivers and other site configuration options would need to be set.

### Django app

As any of Mailman's Django apps, will be packaged with an example_project with default configuration.