From 805fe16f48d5e4901fe499d13bd9c9c9afe13661 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 802b044..b721b5f 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 - redis-server - redis-tools diff --git a/roles/mail/templates/postfix/main.cf.j2 b/roles/mail/templates/postfix/main.cf.j2 index b73a1bc..3d18a61 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