User Tools

Site Tools


bock-2018-mailman

This is specific to the migration from amber to the second system named bock.

Mailman Installation and Configuration

Lost search capability. The code on amber was a heavily customized variant that added this, but was not available in a current Mailman release or Debian package.

Problem with conversion of all mail to utf-8 in base64 encoding. This is due to changes in Mailman 2.1.21. Amber was running 2.1.12. This forced complete removal of the footer added to postings.

Software installation

Not documented, probably just someone installing Debian package "mailman".

Postfix Integration

Edit /etc/postfix/main.cf to add to current "alias_maps":

alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases

Apache Integration

This should have been done with the copy of the Apache configuration files.

Copy the password files if not already done.

Migration from old server

Change archive ownership from "www-data" to "list", but only below "private".

Files to move to different locations

The old locations were under "/usr/local/mailman-2.1.12/". There generally moved to the same subdirectory name, under "/var/lib/mailman/".

Don't copy files that are part of the package, only those that are customized or status or archive:

  • archives/
  • lists/ - Config for each list
  • data/ - Not specific to any list, only temporary?
  • logs/ - Archive and keep for 6 months
  • qfiles/ - Should all be empty.
  • spam/ - Should delete if not in some database
Copying files on old system for transport to new

Stop postfix and mailman processes.

Check for pending actions.

Copy the files listed above.

Installation of files on new system from old

Unpack the files copied above.

Change owner and group to "list".

Move into final location.

Software configuration

Mostly copied from the old system.

Edit "mm_cfg.py" to reflect different locations and other changes.

Delete the footer from each list config file.

Restart postfix and start mailman.

For each list, use "check_perms" and "check_db" to find problems to fix.

Delete htdig search stuff from each list's archive index HTML.

Add aliases to SQL alias list for "test" and "testing", 10 aliases for each list.

Edit /etc/logrotate.d/mailman to:

  • Increase weekly retention from 4 to 8 generations.
  • Change the logs with daily rotation to weekly rotation.

Delete all old pending actions on all lists.

To allow mailman support tools to work with minimal modification and to make the standard location used in documentation work with the location used by Debian package for the mailman base directory:

ln -sv /var/lib/mailman /usr/local/mailman

Unrelated to server migration was the change to force https

Edit "mm_cfg.py" and each list's config file to add the "s" to "http".

Other changes

Change "Reply-To:" on announce list.

  • Change "reply_goes_to_list" from "0" to "2".
  • Change "reply_to_address" from "" to "editor@sluug.org".
  • Change "welcome_msg" from the obsolete text to "".

Due to complaint of mailman being hung for three days, created script to monitor for queue files that have been present for more than 15 minutes.

  • This is "/usr/local/bin/mailman_queue_check.sh".
  • Executed twice a day by "/etc/cron.d/mailman-local".
bock-2018-mailman.txt · Last modified: 2024/03/20 21:10 by SLUUG Administration