[Mailman-Users] Mystery of the site-wide mailing list...

Mark Sapiro mark at msapiro.net
Tue May 5 01:57:44 CEST 2015

There is a file, sitelist.cfg, in the misc/ directory in the source
distribution that gets put in the data/ directory in an installed
Mailman. This is intended to be used as input to config_list to
configure the site list appropriately. However, some of its settings are
not appropriate.

Here's how I use and recommend the site list.

1) the members of the list are the site admins.
2) generic_nonmember_action is Accept.

This has two good effects. The 'help' address exposed on listinfo and
admin overviews works and delivers to an appropriate place, and output
from Mailman crons sent to the 'mailman' user actually gets delivered to
an appropriate place.

Now, you want to use a different address and this can be done but
requires some changes. For the address in listinfo, around line 122 in
Mailman/Cgi/listinfo.py change

    siteowner = Utils.get_site_email()
    siteowner = 'list.admin at unh.edu'

For the admin overview, around line 297 in Mailman/Cgi/admin.py change

    mailman_owner = Utils.get_site_email()
    mailman_owner = 'list.admin at unh.edu'

To change the password reminder From: header and the address in the

If you have questions, problems, comments, etc, send them to
%(owner)s.  Thanks!

paragraph, at about line 197 in cron/mailpasswds, change

            siteowner = Utils.get_site_email(host, 'owner')
            siteowner = 'list.admin at unh.edu'

To change the new list notification From: header and

Please address all questions to %(siteowner)s.

paragraph, at about line 2646 in bin/newlist, change

        siteowner = Utils.get_site_email(mlist.host_name, 'owner')
        siteowner = 'list.admin at unh.edu'

and at about line 243 in Mailman/Cgi/create.py, change

        siteowner = Utils.get_site_email(mlist.host_name, 'owner')
        siteowner = 'list.admin at unh.edu'

All the above can also be accomplished by changing the get_site_email()
function in Mailman/Utils.py, but that isn't a good idea as the function
is used elsewhere.

Also, the address in the body of password reminders and new list mail
can be changed by creating edited cronpass.txt and newlist.txt templates
(see <http://wiki.list.org/x/4030605>), but without changing the code,
the From: will still be the sitelist-owner address.

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

More information about the Mailman-Users mailing list