1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-25 00:31:09 +02:00
Commit Graph

32 Commits

Author SHA1 Message Date
Evangelos Foutras
7943882d28
mailman: rebase mailman-hyperkitty.cfg to 1.2.1-1 2023-01-12 18:58:13 +02:00
Kristian Klausen
c351a12930
mailman: Reject most mails from nonmembers to reduce moderation workload
All lists expect arch-mirrors-announce and aur-requests[1] require the
user to be a member before they can post. Moderating mails from
nonmembers are a lot of work and most of the mails are spam, so let's
just reject them. Mails to arch-mirrors-announce and aur-requests from
nonmembers will still be checked manually, as you aren't required to be
subscribed[1].

[1] https://wiki.archlinux.org/index.php?title=General_guidelines&oldid=750602#Reply_to_the_mailing_list
2022-12-28 23:14:06 +01:00
nl6720
ee84eb063c
mailman: update mkinitcpio URL in arch-projects mailing list description
mkinitcpio moved from GitHub to gitlab.archlinux.org.
See https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/474.
2022-11-12 20:10:12 +02:00
Evangelos Foutras
c6cfff7756
mailman: use postgresql:// engine URL in mailman.cfg
SQLAlchemy 1.4 no longer accepts engine URLs of the form postgres://.

https://docs.sqlalchemy.org/en/20/changelog/changelog_14.html#change-3687655465c25a39b968b4f5f6e9170b
2022-11-12 01:05:50 +02:00
Kristian Klausen
893a95f329
Kill the mailman2 server and put the mailman3 server in its place
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
2022-09-28 21:04:41 +02:00
Kristian Klausen
94045bd875
mailman: Show the mailman3 interface by default
All lists have been migrated to mailman3[1] and mailman3 is what users
should use, so show its interface by default and not the mailman2
interface.

[1] 75ac7d09 ("mailman: Fourth and final batch of mailman3 migrated lists")
2022-09-16 15:10:07 +02:00
Kristian Klausen
75ac7d09be
mailman: Fourth and final batch of mailman3 migrated lists
arch-general
aur-general
aur-requests

It has been decided not to migrate the following unlisted and unused
lists:
arch-magazine
arch-notifications
arch-test
mailman
2022-09-16 00:40:25 +02:00
Kristian Klausen
4d8dfb6a5a
mailman: Third batch of mailman3 migrated lists
arch-commits
arch-security
aur-dev
pacman-contrib
pacman-dev
2022-09-11 20:44:17 +02:00
Evangelos Foutras
578b781966
Capitalize the handler name in handler invocations
Fixes: 26f289b72b ("Capitalize the first letter of all task names")
2022-08-29 21:46:39 +03:00
Evangelos Foutras
26f289b72b
Capitalize the first letter of all task names
ansible-lint 6.5.0 complains about:

  name: All names should start with an
        uppercase letter. (name[casing])
2022-08-23 06:57:13 +03:00
Evangelos Foutras
a9e0790f53
Remove the three dashes from all YAML documents
These are used to signal the start of the document in a stream of many
documents. As Ansible only supports one YAML document per file this is
unnecessary. About a third of our YAML documents already lacked these.
2022-06-08 14:35:45 +03:00
Kristian Klausen
f6e6611645
mailman: Redirect to the ml3 list pages instead of the archives 2022-05-16 22:46:04 +02:00
Kristian Klausen
bb00082411
mailman: Second batch of mailman3 migrated lists
arch-dev
arch-devops
arch-dev-public
arch-mirrors
arch-mirrors-announce
arch-multilib
arch-ports
arch-proaudio
arch-projects
arch-releng
arch-tu
arch-women
staff
2022-05-15 23:09:05 +02:00
Kristian Klausen
73b4e4f04f
mailman: First batch of mailman3 migrated lists
arch-announce
arch-devops-private
arch-events
arch-wiki-admins
2022-05-14 22:52:12 +02:00
Kristian Klausen
5d0c9d3b73
mailman: Add map for redirecting migrated lists to the ml3 interface 2022-05-14 22:52:09 +02:00
Kristian Klausen
9294828f15
Setup mailman3 server
We want to migrate to mailman3 as mailman2 is basically unmaintained and
requires Python 2 which is EOL.

Because the mailman and mailman3 packages conflict and we don't want to
perform a big bang migration, mailman3 must be deployed on a separate
server. mailman-web (mailman3's web interface) hasn't been packaged yet,
so for now we are using my homebrewed PKGBUILD[1].

[1] https://gist.github.com/klausenbusk/5982063f95c503754a51ed2fefb8915e

Ref #59
2022-05-14 22:51:59 +02:00
Kristian Klausen
c81f4ac1fb
mailman: Always restart mailman.service
It has been killed by systemd-oomd a few times recently and we don't
want to start it manually every time it happens.
2022-01-22 14:07:42 +01:00
Amin Vakil
453bff7437 Fix nginx "single path" location blocks 2021-10-03 15:06:54 +00:00
Kristian Klausen
e52c8fdc69
mailman: Ensure the public archives aren't cached by the browser
It confuses the users that the browser is caching them (due to
heuristic[1]).

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#heuristic_freshness_checking
2021-07-10 17:39:33 +02:00
Kristian Klausen
1d8d133e8b
mailman: Forward common mailboxes to root@archlinux.org 2021-07-08 04:59:44 +02:00
Kristian Klausen
70459b6189
mailman: Don't receive mails for UNIX system accounts 2021-07-08 04:59:39 +02:00
Kristian Klausen
cc07ef3305
mailman: Remove unneeded virtual_alias_maps 2021-07-08 04:59:33 +02:00
Kristian Klausen
bc1c5fe614 Add mailman role for the new lists.al.org machine
The DNS is still pointing to luna.
2021-06-30 09:30:31 +00:00
Jelle van der Waa
207bee2aac
remove unused mailman role
The redirects are now done by the `redirects` role.
2021-04-12 20:33:24 +02:00
Kristian Klausen
b70d04fa5c
Send the nginx logs to Loki
A extra access_log entry was added with the following commands:
$ cd roles
$ grep -lr access_log | xargs -P 1 -n 1 sed -i '/access_log/ s/\(.*\)\( \)\(\(reduced\|main\);$\)/\1 \3\n\1.json json_\3/'
2021-04-08 20:33:43 +02:00
Kristian Klausen
4112bdf9fd Make ansible-lint happy
yaml: truthy value should be one of [false, true] (truthy)
yaml: wrong indentation: expected 4 but found 2 (indentation)
yaml: too few spaces before comment (comments)
yaml: missing starting space in comment (comments)
yaml: too many blank lines (1 > 0) (empty-lines)
yaml: too many spaces after colon (colons)
yaml: comment not indented like content (comments-indentation)
yaml: no new line character at the end of file (new-line-at-end-of-file)
load-failure: Failed to load or parse file
parser-error: couldn't resolve module/action 'hosts'. This often indicates a misspelling, missing collection, or incorrect module path.
2021-02-14 14:22:05 +01:00
Jan Alexander Steffens (heftig)
93f5d62db2
nginx: Use matchless https redirection
https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#taxing-rewrites
2019-09-05 20:50:34 +02:00
Florian Pritz
f5ee7a08f5
nginx: Reduce access log content for static data
For proxy/fastcgi/uwsgi blocks, logging is still set to the old format,
but for everything else (= static data) a reduced format is used that
excludes items that no longer make sense (request_time, remote_user) and
those that are personal information all the time (remote_addr, http_x_forwarded_for).

Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-05-30 16:00:41 +02:00
Florian Pritz
ebd659d69c
Disable access log for https redirects in nginx
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-05-30 15:46:48 +02:00
Florian Pritz
6bf140146d
Define and use our own log format for nginx
This is the same as used on luna and as expected by the zabbix nginx
monitoring service.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-02-19 17:32:45 +01:00
Giancarlo Razzolini
ff27e416e7
roles/*: Fix nginx log dir permissions
To correctly be safe for CVE-2016-1247, we need all nginx log dirs
to be owned by both user and group root. Also, since nginx childs
runs as http user, the directories permissions must be 0755, so the
http user can descent into it. Since the logrotate will create the
log files as http:log, the nginx childs will be able to write to the
logs, but will not be able to create files inside those dirs, fully
preventing CVE-2016-1247.
2017-02-10 09:15:42 -02:00
Florian Pritz
791144b9ea
mailman: Add redirect for mailman.archlinux.org
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-08 17:48:58 +01:00