Receiving Email from ListName-bounce@Domain for Unsubcribe
Hello,
On my new MM3 that I just installed, I testing unsubscribe user from mailing list. User received email for the unsubscribe in subject line as 'You have been unsubscribed from the Test1 mailing list' with email address 'test1-bounces@domain'.
It should receive from test1-unsubscribe@domain instead. Where should I look into this? or configure it.
Thanks, Marin
msok--- via Mailman-users writes:
On my new MM3 that I just installed, I testing unsubscribe user from mailing list. User received email for the unsubscribe in subject line as 'You have been unsubscribed from the Test1 mailing list' with email address 'test1-bounces@domain'.
Do you mean the notification email from the list is From test1-bounces@domain? Are you sure it is from "test1-bounces@domain"? It should be from "test1-owner@domain". Most notifications to users come from the "LIST-owner" address.
Mailman uses the "LIST-bounces" address as the "envelope sender" address, which is used by mail servers as the return address for undeliverable mail. Although the envelope sender address is not visible in most mail clients, maybe that is what you are seeing instead of, or in addition to, the From address that clients usually display?
It should receive from test1-unsubscribe@domain instead. Where should I look into this? or configure it.
It should not be from "test1-unsubscribe". That will result in messages to the user that confuse most people, if they happen to reply to it.
There is no configuration option. The source addresses that Mailman uses for automatically-created emails have been tested over decades. Changing them can cause a lot of confusion. You would have to patch the Python code.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan
On 2/16/26 10:09, Stephen J. Turnbull wrote:
Do you mean the notification email from the list is From test1-bounces@domain? Are you sure it is from "test1-bounces@domain"? It should be from "test1-owner@domain". Most notifications to users come from the "LIST-owner" address.
Actually, in this case it is From: the list bounces address. See <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/notificatio...>.
There are other user notices From: the list bounces as well. See <https://gitlab.com/mailman/mailman/-/issues/1260>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Yes, the notification email for unsubscribe from the list from test1-bounces@doamin. Agree with you that it should come from LIST-owner address. Fo example test1-owner@domain.
Should I try to modify the code in file notifications.py in line 137.
Screenshot.
def send_goodbye_message(mlist, address, language): """Send a goodbye message to a subscriber.
Prepending to the standard goodbye message template is the mailing list's
goodbye message, if there is one.
:param mlist: the mailing list
:type mlist: IMailingList
:param address: The address to respond to
:type address: string
:param language: the language of the response
:type language: ILanguage
"""
goodbye_message = wrap(expand(getUtility(ITemplateLoader).get(
'list:user:notice:goodbye', mlist, language=language.code),
mlist, dict(
user_email=address,
# For backward compatibility.
user_address=address,
fqdn_listname=mlist.fqdn_listname,
list_name=mlist.display_name,
list_requests=mlist.request_address,
)))
with _.using(language.code):
msg = UserNotification(
address, mlist.bounces_address,
_('You have been unsubscribed from the ${mlist.display_name} '
'mailing list'),
goodbye_message, language)
msg.send(mlist, verp=as_boolean(config.mta.verp_personalized_deliveries))
Thanks, Marin
<http:\\probonoweek.lalawlibrary.org>
[http://www.lalawlibrary.org/sigimages/logo-sig.png]
Marin Sok IT Director P 213.785.2556 | F 213.680.1727 http://www.lalawlibrary.org/<http://www.lalawlibrary.org/> | MSok@lalawlibrary.org Access to Information = Access to Justice
<http://probonoweek.lalawlibrary.org/>
Follow us: [http://www.lalawlibrary.org/sigimages/facebook.png] <http://facebook.com/LALAWLIBRARY> [http://www.lalawlibrary.org/sigimages/twitter.png] <http://twitter.com/LALAWLIBRARY> [cid:SocialLink_Instagram_32x32_dc37fa34-8ab4-41db-9940-9cb519436518.png] <https://www.instagram.com/lalawlibrary>
From: Mark Sapiro <mark@msapiro.net> Sent: Monday, February 16, 2026 10:54 AM To: Stephen J. Turnbull <steve@turnbull.jp>; Marin Sok <MSok@lalawlibrary.org> Cc: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: Re: [MM3-users] Receiving Email from ListName-bounce@Domain for Unsubcribe
[You don't often get email from mark@msapiro.net. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
On 2/16/26 10:09, Stephen J. Turnbull wrote:
Do you mean the notification email from the list is From test1-bounces@domain? Are you sure it is from "test1-bounces@domain"? It should be from "test1-owner@domain". Most notifications to users come from the "LIST-owner" address.
Actually, in this case it is From: the list bounces address. See <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/notifications.py?ref_type=heads#L137<https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/notifications.py?ref_type=heads#L137>>.
There are other user notices From: the list bounces as well. See <https://gitlab.com/mailman/mailman/-/issues/1260<https://gitlab.com/mailman/mailman/-/issues/1260>>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: SocialLink_Instagram_32x32_dc37fa34-8ab4-41db-9940-9cb519436518.png
Replaced multipart/alternative part with first alternative.
On 2/16/26 13:55, Marin Sok via Mailman-users wrote:
Should I try to modify the code in file notifications.py in line 137.
You could change that line from
address, mlist.bounces_address,
to
address, mlist.owner_address,
if you feel it's important. I will probably do something about https://gitlab.com/mailman/mailman/-/issues/1260 so it will be fixed for the next release.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
I changed it and it works as expect now. Thanks a lot for your help guide me on this.
[cid:1c0306de-6190-48ad-a8f3-b67ffd1a48a3]
Thanks, Marin
<http:\\probonoweek.lalawlibrary.org>
[http://www.lalawlibrary.org/sigimages/logo-sig.png]
Marin Sok IT Director P 213.785.2556 | F 213.680.1727 http://www.lalawlibrary.org/<http://www.lalawlibrary.org/> | MSok@lalawlibrary.org Access to Information = Access to Justice
<http://probonoweek.lalawlibrary.org/>
Follow us: [http://www.lalawlibrary.org/sigimages/facebook.png] <http://facebook.com/LALAWLIBRARY> [http://www.lalawlibrary.org/sigimages/twitter.png] <http://twitter.com/LALAWLIBRARY> [cid:SocialLink_Instagram_32x32_dc37fa34-8ab4-41db-9940-9cb519436518.png] <https://www.instagram.com/lalawlibrary>
From: Mark Sapiro <mark@msapiro.net> Sent: Monday, February 16, 2026 2:44 PM To: Marin Sok <MSok@lalawlibrary.org>; Stephen J. Turnbull <steve@turnbull.jp> Cc: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: Re: [MM3-users] Re: Receiving Email from ListName-bounce@Domain for Unsubcribe
[You don't often get email from mark@msapiro.net. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
On 2/16/26 13:55, Marin Sok via Mailman-users wrote:
Should I try to modify the code in file notifications.py in line 137.
You could change that line from
address, mlist.bounces_address,
to
address, mlist.owner_address,
if you feel it's important. I will probably do something about https://gitlab.com/mailman/mailman/-/issues/1260<https://gitlab.com/mailman/mailman/-/issues/1260> so it will be fixed for the next release.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: image.png
Content-Type: image/png Name: SocialLink_Instagram_32x32_dc37fa34-8ab4-41db-9940-9cb519436518.png
Replaced multipart/alternative part with first alternative.
participants (4)
-
Marin Sok -
Mark Sapiro -
msok@lalawlibrary.org -
Stephen J. Turnbull