Merge ~hloeung/mailman3-core-charm:master into mailman3-core-charm:master

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: a49df4452be8f9713abe9161c49fd4074fb88fba
Merged at revision: 9aa6c90122ca8f988e742120e68f4ef50d78406d
Proposed branch: ~hloeung/mailman3-core-charm:master
Merge into: mailman3-core-charm:master
Diff against target: 20 lines (+3/-0)
1 file modified
reactive/mailman3_core.py (+3/-0)
Reviewer Review Type Date Requested Status
Alexandre Gomes Approve
Canonical IS Reviewers Pending
Review via email: mp+406124@code.launchpad.net

Commit message

Reject for recipients we don't know about - LP:1817822

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Alexandre Gomes (alejdg) :
review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 9aa6c90122ca8f988e742120e68f4ef50d78406d

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/reactive/mailman3_core.py b/reactive/mailman3_core.py
2index c26337f..4334c05 100644
3--- a/reactive/mailman3_core.py
4+++ b/reactive/mailman3_core.py
5@@ -91,12 +91,15 @@ def configure_postfix():
6 'smtpd_relay_restrictions=permit_mynetworks defer_unauth_destination'])
7 if os.path.exists('/var/lib/mailman3/data/postfix_lmtp'):
8 subprocess.check_output(['postconf', 'transport_maps=hash:/var/lib/mailman3/data/postfix_lmtp',
9+ 'relay_recipient_maps=hash:/var/lib/mailman3/data/postfix_lmtp',
10 'local_recipient_maps=hash:/var/lib/mailman3/data/postfix_lmtp'])
11 subprocess.check_output(['postmap', '/var/lib/mailman3/data/postfix_lmtp'])
12 if os.path.exists('/var/lib/mailman3/data/postfix_domains'):
13 subprocess.check_output(['postconf', 'relay_domains=hash:/var/lib/mailman3/data/postfix_domains'])
14 subprocess.check_output(['postmap', '/var/lib/mailman3/data/postfix_domains'])
15
16+ subprocess.check_output(['postmap', 'smtpd_sender_restrictions=reject_unknown_sender_domain'])
17+
18 # HyperKitty expects messages will all have the 'Message-ID' header,
19 # unfortunately not all clients do so let's work around it (LP: #1776658)
20 subprocess.check_output(['postconf', 'always_add_missing_headers=yes',

Subscribers

People subscribed via source and target branches