add working hyperkitty config

This commit is contained in:
nd 2021-03-07 11:34:13 +01:00
parent 8535013788
commit 3806ce3c56
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 31 additions and 1 deletions

View file

@ -3,6 +3,7 @@
name: name:
- mailman3 - mailman3
- mailman3-web - mailman3-web
- python3-mailman-hyperkitty
- lynx # needed to convert html mail - lynx # needed to convert html mail
- python3-wheel - python3-wheel
- python3-pip - python3-pip
@ -39,3 +40,12 @@
mode: 0640 mode: 0640
owner: root owner: root
group: www-data group: www-data
- name: copy mailman-hyperkitty config
notify: restart mailman
template:
src: mailman-hyperkitty.py.j2
dest: /etc/mailman3/mailman-hyperkitty.py
mode: 0640
owner: root
group: list

View file

@ -0,0 +1,20 @@
# This is the mailman extension configuration file to enable HyperKitty as an
# archiver. Remember to add the following lines in the mailman.cfg file:
#
# [archiver.hyperkitty]
# class: mailman_hyperkitty.Archiver
# enable: yes
# configuration: /etc/mailman3/mailman-hyperkitty.cfg
#
[general]
# This is your HyperKitty installation, preferably on the localhost. This
# address will be used by Mailman to forward incoming emails to HyperKitty
# for archiving. It does not need to be publicly available, in fact it's
# better if it is not.
base_url: http://localhost/mailman3/hyperkitty/
# Shared API key, must be the identical to the value in HyperKitty's
# settings.
api_key: {{ mailman.archiver.key }}

View file

@ -276,7 +276,7 @@ configuration: python:mailman.config.postfix
# #
# If you don't want to use HyperKitty, please comment them out. # If you don't want to use HyperKitty, please comment them out.
#[archiver.hyperkitty] [archiver.hyperkitty]
class: mailman_hyperkitty.Archiver class: mailman_hyperkitty.Archiver
enable: yes enable: yes
configuration: /etc/mailman3/mailman-hyperkitty.cfg configuration: /etc/mailman3/mailman-hyperkitty.cfg