From 962c9d48558a3545fa2e319fa3033ba3aaead2ec Mon Sep 17 00:00:00 2001 From: Jim Popovitch Date: Sat, 8 Oct 2016 22:35:15 +0000 Subject: Send bounce messages from virtual domains not siteowner --- Mailman/Bouncer.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Mailman') diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py index 29fe4ea5..47955fa3 100644 --- a/Mailman/Bouncer.py +++ b/Mailman/Bouncer.py @@ -224,7 +224,7 @@ class Bouncer: # it was of dubious value). However, we'll provide empty, strange, or # meaningless strings for the unused %()s fields so that the language # translators don't have to provide new templates. - siteowner = Utils.get_site_email(self.host_name) + owneraddr = self.GetOwnerEmail() text = Utils.maketext( 'bounce.txt', {'listname' : self.real_name, @@ -233,11 +233,10 @@ class Bouncer: 'did' : _('disabled'), 'but' : '', 'reenable' : '', - 'owneraddr': siteowner, + 'owneraddr': owneraddr, }, mlist=self) subject = _('Bounce action notification') - umsg = Message.UserNotification(self.GetOwnerEmail(), - siteowner, subject, + umsg = Message.UserNotification(owneraddr, owneraddr, subject, lang=self.preferred_language) # BAW: Be sure you set the type before trying to attach, or you'll get # a MultipartConversionError. -- cgit v1.2.3