Commit Graph

29 Commits

Author SHA1 Message Date
Michal Konecny
a807fb3d4f [mailman3] Create gunicorn configuration file
To make changing the gunicorn configuration more easily let's move
configuration values from systemd service to separate configuration
file.

The file will live in /etc/mailman3/gunicorn.conf.py.
2025-03-27 13:01:13 +01:00
Michal Konecny
f9da525994 [mailman] Remove the logrotate config
The config is now provided by the mailman3 package and it's the same
provided by the ansible role.

And we have two of them in the role, probably a oversight.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-11-12 13:37:16 +01:00
Michal Konecny
c83cd910bf [mailman3] Remove the search restriction from hyperkitty
The list search index generation is finished now and this should re-enable the
search on hyperkitty web page again. This should fix both
https://pagure.io/fedora-infrastructure/issue/12027 and
https://pagure.io/fedora-infrastructure/issue/12043

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-10-31 20:21:21 +00:00
Michal Konecny
a5ed1c6a2a [mailman] Add script to enable DMARC mitigation
This script is added to implement
https://pagure.io/fedora-infrastructure/issue/11427

The script was already executed on staging environment and finished without
issue. It could be executed multiple times and only affects list that don't have
the settings set yet. I will document this as another step to take when creating
a new list.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-09-27 08:35:11 +00:00
Jiri Podivin
6c5a88e986 Moving import to top
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
2024-09-18 19:57:30 +00:00
Michal Konecny
44234d5634 [mailman] Add patch for orphan issue
Fix for https://pagure.io/fedora-infrastructure/issue/12011
Already tested on staging.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-09-18 08:51:22 +00:00
Michal Konecny
3209b886ee [mailman3] Remove the duplicated information
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-29 16:25:04 +00:00
Michal Konecny
39d7b07b0c [mailman3] Add more info to generate_search_index script
Add information about number of remaining mailing lists to process to script output.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-29 18:06:12 +02:00
Michal Konecny
be2edf7b47 [mailman3] Add script for generating fulltext index for mailing lists
The index generated by the hyperkitty-hourly script generated unusually big
index (around 1TB).

This script should help with generating the search index from scratch, after
that we can leave it to hyperkitty-hourly job again.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-29 14:41:12 +02:00
Michal Konecny
19769b6e77 [mailman3] Add info about disabled search
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-12 11:05:29 +02:00
Michal Konecny
cdd78d1442 [mailman3] Disable search in hyperkitty
Mailman has huge memory spikes after migration, those are caused by visiting
`/archives/search` URL. This is probably because of the search index still being
regenerated.

This patch will disable the search from both web UI and as a HTTP URL endpoint.

Fixes https://pagure.io/fedora-infrastructure/issue/12043

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-12 11:05:18 +02:00
Michal Konecny
e3de4275bd [mailman3] Enable autostart for timers
To be able to enable timer it needs to have WantedBy in [Install] section. Let's
add a hyperkitty.target to that section.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-07-11 09:32:50 +02:00
Kevin Fenzi
536e0a71b0 mailman: try adding crawl-delay to robots.txt
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-07-03 09:29:22 -07:00
Michal Konecny
e97ec6d135 [mailman3] Fix missing import in sar script
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-27 10:14:18 +00:00
Michal Konecny
0fbd79a26e [mailman3] Fix the patch file and how it is applied
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-21 11:55:10 +02:00
Michal Konecny
d0e06d1ab0 [mailman3] Add patch for django_mailman3
Till https://src.fedoraproject.org/rpms/python-django-mailman3/pull-request/2 is
merged let's apply the patch directly.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-06-21 09:09:34 +00:00
Lenka Segura
789bf6fcac mailman3: Fix quarter_hourly timer format and add hperkitty.target
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-06-06 11:44:31 +00:00
Lenka Segura
73612b973a Create systemd timers for tasks
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-31 11:52:49 +00:00
Michal Konecny
9bdd160b1b [mailman3] Port prod-to-stg.py script
There are some changes between the old mailman and the new one, let's reflect
that in the script.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-05-30 09:54:02 +00:00
Lenka Segura
14c37e9e8e Fix mailman-sar script
Signed-off-by: Lenka Segura <lsegura@redhat.com>
2024-05-21 14:26:10 +02:00
Michal Konecny
653ec8ce21 [mailman3] Migrate prod-to-stg script for new mailman
The script was created for python2, so let's move it to python3 and fix anything
that is different from previous mailman version.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-04-30 09:37:02 +02:00
Michal Konecny
a8cd5dfff3 [mailman3] Add migration script for Fedora auth provider
This will add migration script for Fedora auth provider. This is only needed
when updating to Fedora auth provider using OpenID Connect.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-04-26 10:43:52 +02:00
Michal Konecny
6605685527 [mailman3] Add missing script and config file
* Add mailman-sar script
* Add fedora-messaging config

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-04-26 10:43:52 +02:00
Michal Konecny
f961e40c3d [mailman3] Deploy hyperkitty.cfg as template
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-04-10 15:11:58 +02:00
Michal Konecny
cf48dec0eb [mailman3] Disable signup on mailman
This module disables signup on mailman web UI.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-04-08 14:10:22 +02:00
Michal Konecny
143243ef45 [mailman3] Fix the urls.py error
This is fixing the error `django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.`

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-27 16:36:16 +01:00
Michal Konecny
f919603485 [mailman3] Add our own urls file
The current deployment doesn't look to work correctly for redirects, this should
fix it.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-27 14:42:13 +01:00
Michal Konecny
301cb90d7e [mailman3] Add prod-to-stg script
The script was missing in files, let's add it.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-26 11:16:45 +01:00
Michal Konecny
c2862e1e8b [mailman3] Create a new role mailman3
It seems that the mailman update is more complicated than I originally thought. So I
decided to start with clean role and will slowly start adding new changes.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-25 10:02:23 +00:00