Set mailman3 site-owner

This was missed in the original Ansibling because unlike all the other
settings it does not use an env var to set it. Instead we have to write
a file that the container startup scripts will append to the actual
config.

The comment for this value says it should be a human so we set it to the
root address of the running host which should end up in infra rooter
inboxes.

Change-Id: I235dfcba53c029136c141382920279ab593d1f82
This commit is contained in:
Clark Boylan 2022-12-05 16:20:26 -08:00
parent 381cec3154
commit ff733b0975
2 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,15 @@
group: 65533
mode: '0755'
- name: Copy our mailman-extra.cfg for mailman-core
template:
src: mailman-extra.cfg.j2
dest: /var/lib/mailman/core/mailman-extra.cfg
# TODO: undo for https://github.com/maxking/docker-mailman/issues/550
owner: 100
group: 65533
mode: '0644'
- name: Ensure Mailman database volume directory exists
file:
state: directory

View File

@ -0,0 +1,6 @@
[mailman]
# This address is the "site owner" address. Certain messages which must be
# delivered to a human, but which can't be delivered to a list owner (e.g. a
# bounce from a list owner), will be sent to this address. It should point to
# a human.
site_owner: "root@{{ ansible_fqdn }}"