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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to