mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
With the final lists migrated to mailman3[1], the mailman2 server can finally be killed. When the mailman3 server was initially setup[2], it was done on a separate server because the mailman and mailman3 packages conflicted, and the traffic was routed over wireguard (HTTP, LMTP and SMTP). Instead of installing mailman3 on the original lists.al.org server and transferring the data, it was easier just to install the missing pieces (basically Postfix and adjusting the Nginx configuration) on the ml3 server and move the IPs (to keep the IP mail reputation). So basically the following was done: - The IPs for the original lists.al.org was moved to the mailman3.al.org server - The mailman2 datadir was transferred to mailman3.al.org server, so we can keep the pipermail links alive, and import missing mails if needed - The original lists.al.org server was decommissioned - The mailman3.al.org server was renamed to lists.al.org - The missing pieces was added to the mailman3 role (basically Postfix + Nginx adjustments) - The mailman role was deleted and the mailman3 role renamed to mailman [1] 75ac7d09 ("mailman: Fourth and final batch of mailman3 migrated lists") [2] 9294828f ("Setup mailman3 server") Fix #59
58 lines
1.7 KiB
Django/Jinja
58 lines
1.7 KiB
Django/Jinja
# mailman-web config
|
|
|
|
from mailman_web.settings.base import *
|
|
from mailman_web.settings.mailman import *
|
|
|
|
|
|
#: Default list of admins who receive the emails from error logging.
|
|
ADMINS = (
|
|
('Mailman Suite Admin', 'root@{{ lists_domain }}'),
|
|
)
|
|
|
|
# Postgresql datbase setup.
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'mailman-web',
|
|
'USER': '{{ vault_mailman_web_db_user }}',
|
|
'PASSWORD': '{{ vault_mailman_web_db_password }}',
|
|
}
|
|
}
|
|
|
|
#: See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
|
ALLOWED_HOSTS = [
|
|
"localhost", # Archiving API from Mailman, keep it.
|
|
"{{ lists_domain }}",
|
|
]
|
|
|
|
#: Current Django Site being served. This is used to customize the web host
|
|
#: being used to serve the current website. For more details about Django
|
|
#: site, see: https://docs.djangoproject.com/en/dev/ref/contrib/sites/
|
|
SITE_ID = 1
|
|
|
|
SECRET_KEY = '{{ vault_mailman_web_secret_key }}'
|
|
|
|
MAILMAN_REST_API_USER = '{{ vault_mailman_admin_user }}'
|
|
MAILMAN_REST_API_PASS = '{{ vault_mailman_admin_pass }}'
|
|
MAILMAN_ARCHIVER_KEY = '{{ vault_mailman_archiver_key }}'
|
|
|
|
#: https://docs.djangoproject.com/en/3.2/topics/email/#smtp-backend
|
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
EMAIL_HOST = '127.0.0.1'
|
|
EMAIL_PORT = 25
|
|
|
|
#: Sender in Emails sent out by Postorius.
|
|
DEFAULT_FROM_EMAIL = 'postorius@{{ lists_domain }}'
|
|
SERVER_EMAIL = 'root@{{ lists_domain }}'
|
|
|
|
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000'
|
|
HYPERKITTY_ALLOW_WEB_POSTING = False
|
|
HYPERKITTY_ENABLE_GRAVATAR = False
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
'default': {
|
|
'ENGINE': 'xapian_backend.XapianEngine',
|
|
'PATH': '/var/lib/mailman-web/xapian_index'
|
|
}
|
|
}
|