[Mailman-Users] From Address for 'mailpasswds'

Mark Sapiro mark at msapiro.net
Fri Jun 7 13:52:43 EDT 2019


On 6/7/19 4:49 AM, Dennis Putnam wrote:
> Thanks. That is what I need to override. How do I do that?
> 


To override the From: address, at lines 220.. in cron/mailpasswds you
will see

                msg = Message.UserNotification(
                    addr, siteowner,

change siteowner to the literal address you want in quotes as

                msg = Message.UserNotification(
                    addr, 'fromuser at example.com',

To override the envelope sender, at lines 235.. you will see

            msg.send(sitelist, **{'errorsto': sitebounce,
                                  '_nolist' : 1,
                                  'verp'    :
mm_cfg.VERP_PASSWORD_REMINDERS,
                                  })


('verp' line in this email is wrapped - don't change that)  Add a line
to set 'envsender' to the address you want as in

            msg.send(sitelist, **{'errorsto': sitebounce,
                                  'envsender': 'sender at example.com',
                                  '_nolist' : 1,
                                  'verp'    :
mm_cfg.VERP_PASSWORD_REMINDERS,
                                  })


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20190607/3a903568/attachment.sig>


More information about the Mailman-Users mailing list