Skip to content
Snippets Groups Projects
Verified Commit 4bce1f93 authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Link hyperkitty to mailman

parent 77bf6ecc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
{{ 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 }}
......@@ -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'
......@@ -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
......@@ -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 / {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment