aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Queue
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Queue')
-rw-r--r--Mailman/Queue/BounceRunner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Queue/BounceRunner.py b/Mailman/Queue/BounceRunner.py
index 6405c091..d219d6e9 100644
--- a/Mailman/Queue/BounceRunner.py
+++ b/Mailman/Queue/BounceRunner.py
@@ -209,8 +209,10 @@ class BounceRunner(Runner, BounceMixin):
return
# Is this a possible looping message sent directly to a list-bounces
# address other than the site list?
- # Use the From: because message may not have a unix_from.
- if msg.get('from') == Utils.get_site_email(extra='bounces'):
+ # Check From: because unix_from might be VERP'd.
+ # Also, check the From: that Message.OwnerNotification uses.
+ if (msg.get('from') ==
+ Utils.get_site_email(mlist.host_name, 'bounces')):
# Just send it to the sitelist-owner address. If that bounces
# we'll handle it above.
outq.enqueue(msg, msgdata,