From 77a8cc93f0dfec77a2e7c53100ecfdfcab7dc15b Mon Sep 17 00:00:00 2001 From: Kishi85 Date: Sat, 29 Feb 2020 19:09:37 +0100 Subject: [PATCH] mail: Setup postfix up for mailman3 --- roles/mail/tasks/main.yml | 3 ++- roles/mail/templates/postfix/main.cf.j2 | 13 ++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 698b7ad..1714959 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -18,7 +18,8 @@ - dovecot-sieve - fcgiwrap - mailman - - mailman3 + - mailman3-full + - postgresql - postfix - postsrsd - redis-server diff --git a/roles/mail/templates/postfix/main.cf.j2 b/roles/mail/templates/postfix/main.cf.j2 index 5932b27..7baefcc 100644 --- a/roles/mail/templates/postfix/main.cf.j2 +++ b/roles/mail/templates/postfix/main.cf.j2 @@ -11,6 +11,7 @@ inet_interfaces = all inet_protocols = all message_size_limit = 50000000 recipient_delimiter = + +owner_request_special = no unknown_local_recipient_reject_code = 550 strict_rfc821_envelopes = yes disable_vrfy_command = yes @@ -115,9 +116,15 @@ unverified_recipient_reject_code = 550 unverified_recipient_reject_reason = Recipient unknown # mailman -relay_domains = {{ mailman_domain }} -relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman -transport_maps = hash:/etc/postfix/transport +relay_domains = + hash:/var/lib/mailman3/data/postfix_domains + {{ mailman_domain }} +local_recipient_maps = + hash:/var/lib/mailman3/data/postfix_lmtp + hash:/var/lib/mailman/data/virtual-mailman +transport_maps = + hash:/var/lib/mailman3/data/postfix_lmtp + hash:/etc/postfix/transport mailman_destination_recipient_limit = 1 # postsrsd