Link hyperkitty to mailman
parent
77bf6ecc9e
commit
4bce1f93cf
|
@ -22,11 +22,14 @@
|
||||||
# Test with: psql -U mailman3 -W -d mailman3 -h localhost
|
# Test with: psql -U mailman3 -W -d mailman3 -h localhost
|
||||||
- name: Configure mailman3
|
- name: Configure mailman3
|
||||||
template:
|
template:
|
||||||
src: mailman3/mailman.cfg.j2
|
src: "mailman3/{{ item }}.j2"
|
||||||
dest: /etc/mailman3/mailman.cfg
|
dest: "/etc/mailman3/{{ item }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
owner: root
|
owner: root
|
||||||
group: list
|
group: list
|
||||||
|
loop:
|
||||||
|
- mailman.cfg
|
||||||
|
- mailman-hyperkitty.cfg
|
||||||
notify: Restart mailman3
|
notify: Restart mailman3
|
||||||
|
|
||||||
# You will need to setup postgres
|
# You will need to setup postgres
|
||||||
|
|
|
@ -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 }}
|
|
@ -198,6 +198,3 @@ SOCIALACCOUNT_PROVIDERS = {
|
||||||
COMPRESS_OFFLINE = True
|
COMPRESS_OFFLINE = True
|
||||||
|
|
||||||
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost/mailman3/'
|
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.
|
# .cfg, which the file must end with.
|
||||||
#configuration: python:mailman.config.exim4
|
#configuration: python:mailman.config.exim4
|
||||||
configuration: python:mailman.config.postfix
|
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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
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;
|
server_tokens off;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in New Issue