Link hyperkitty to mailman

certbot_on_virtu
Alexandre Iooss 2020-07-13 09:51:23 +02:00
parent 77bf6ecc9e
commit 4bce1f93cf
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
5 changed files with 33 additions and 6 deletions

View File

@ -22,11 +22,14 @@
# Test with: psql -U mailman3 -W -d mailman3 -h localhost
- name: Configure mailman3
template:
src: mailman3/mailman.cfg.j2
dest: /etc/mailman3/mailman.cfg
src: "mailman3/{{ item }}.j2"
dest: "/etc/mailman3/{{ item }}"
mode: 0640
owner: root
group: list
loop:
- mailman.cfg
- mailman-hyperkitty.cfg
notify: Restart mailman3
# You will need to setup postgres

View File

@ -0,0 +1,22 @@
{{ ansible_header | comment }}
# 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/hyperkitty/
# Shared API key, must be the identical to the value in HyperKitty's
# settings.
api_key: {{ mailman3.archiver_key }}

View File

@ -198,6 +198,3 @@ SOCIALACCOUNT_PROVIDERS = {
COMPRESS_OFFLINE = True
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost/mailman3/'
# Use Crans SMTP for Django mails
EMAIL_HOST = 'smtp.crans.org'

View File

@ -271,3 +271,8 @@ lmtp_port: 8024
# .cfg, which the file must end with.
#configuration: python:mailman.config.exim4
configuration: python:mailman.config.postfix
[archiver.hyperkitty]
class: mailman_hyperkitty.Archiver
enable: yes
configuration: /etc/mailman3/mailman-hyperkitty.cfg

View File

@ -7,7 +7,7 @@ upstream mailman3 {
server {
listen 80;
listen [::]:80;
server_name mailman.crans.org mailman.adm.crans.org;
server_name mailman.crans.org mailman.adm.crans.org localhost;
server_tokens off;
location / {