diff --git a/roles/mailman/files/transport b/roles/mailman/files/transport new file mode 100644 index 0000000000000000000000000000000000000000..1a97193b2345fd82953253a46b6c8d2075df8c6d --- /dev/null +++ b/roles/mailman/files/transport @@ -0,0 +1,17 @@ +# AUTOMATICALLY GENERATED BY MAILMAN ON 2021-07-03 22:52:50 +# +# This file is generated by Mailman, and is kept in sync with the binary hash +# file. YOU SHOULD NOT MANUALLY EDIT THIS FILE unless you know what you're +# doing, and can keep the two files properly in sync. If you screw it up, +# you're on your own. + +# Aliases which are visible only in the @lists.archlinux.org domain. +test@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-bounces@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-confirm@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-join@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-leave@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-owner@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-request@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-subscribe@lists.archlinux.org lmtp:[10.0.0.2]:8024 +test-unsubscribe@lists.archlinux.org lmtp:[10.0.0.2]:8024 diff --git a/roles/mailman/handlers/main.yml b/roles/mailman/handlers/main.yml index b48bca38207f015f2eff329e552b6dfe8908210e..a0617a49208ec4cdf09c569b3281f32b84d7e491 100644 --- a/roles/mailman/handlers/main.yml +++ b/roles/mailman/handlers/main.yml @@ -4,3 +4,8 @@ - name: reload postfix service: name=postfix state=reloaded + +- name: run postmap + command: postmap /etc/postfix/{{ item }} + loop: + - transport diff --git a/roles/mailman/tasks/main.yml b/roles/mailman/tasks/main.yml index 3ecede1995f55d9b04491e5f72e1628c4687b865..3cbd6ffc944ac8040cf48b838baa244bc8845ee7 100644 --- a/roles/mailman/tasks/main.yml +++ b/roles/mailman/tasks/main.yml @@ -20,6 +20,8 @@ copy: src={{ item }} dest=/etc/postfix/ owner=root group=root mode=0644 loop: - milter_header_checks + - transport + notify: run postmap - name: open firewall holes for postfix ansible.posix.firewalld: service=smtp zone={{ item }} permanent=true state=enabled immediate=yes