[Mailman-Users] From Address for 'mailpasswds'

Mark Sapiro mark at msapiro.net
Wed Jun 5 13:21:24 EDT 2019


On 6/5/19 8:55 AM, Dennis Putnam wrote:
> I am trying to send a monthly reminder using 'mailman
> /usr/lib/mailman/cron/mailpasswds'. However, the messages bounce due to
> an invalid from address. How can I change the script to use a valid from
> address? Thanks.


Why is the From: invalid? it is the site list -owner address and the
envelope is from the site list -bounces address. These should be
deliverable addresses. There is a potential issue with virtual domains
in that the domain of these addresses can be the virtual host domain and
the address may not be valid in that domain.

We currently add the site list address in each virtual domain in
POSTFIX_STYLE_VIRTUAL_DOMAINS to the generated virtual-mailman file, but
we don't add the -owner and -bounces addresses. I'll fix that. See
<https://bugs.launchpad.net/mailman/+bug/1831777>.

As far as changing these addresses is concerned, at lines 197-199 in the
script you'll see

            siteowner = Utils.get_site_email(host, 'owner')
            sitereq = Utils.get_site_email(host, 'request')
            sitebounce = Utils.get_site_email(host, 'bounces')

You could replace host in these lines with the literal host name which
is valid for the site list in quotes like 'example.com'.

-- 
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/20190605/2352b504/attachment.sig>


More information about the Mailman-Users mailing list