Service/lists: Difference between revisions
Appearance
< Service
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
for l in `bin/list_lists -b`; do bin/config_list -i bar -v $l ; done | for l in `bin/list_lists -b`; do bin/config_list -i bar -v $l ; done | ||
rm bar | rm bar | ||
=== Disabling digests for all users === | |||
Create a nodigests.py with this content: | |||
from Mailman import mm_cfg | |||
def nodigests(m): | |||
for addr in m.getMembers(): | |||
if m.getMemberOption(addr, mm_cfg.Digests) == True: | |||
print "turning off digests for " + addr | |||
m.setMemberOption(addr, mm_cfg.Digests, 0) | |||
m.Save() | |||
m.Unlock() | |||
Then, execute: | |||
bin/withlist -l -r nodigests -a | |||
=== Migrating lists from one host to another === | === Migrating lists from one host to another === | ||
Revision as of 17:21, 16 October 2010
Hostnames
Hosted on
Administrative contact
- For problems concerning a specific mailing-list, please contact the individual administrator reported on in the mailing-list summary page
- Technical contact for Mailman and general sugarlabs.org email routing: postmaster AT sugarlabs DOT org
Sysadmins
For non-emergency calls, preferably send email to the administrative contact.
Recipes
Change virtual host of a list
bin/withlist -l -r fix_url bolivia -u lists2.ole.org
Change a parameter on all lists
echo "nondigestable = True" >bar for l in `bin/list_lists -b`; do bin/config_list -i bar -v $l ; done rm bar
Disabling digests for all users
Create a nodigests.py with this content:
from Mailman import mm_cfg
def nodigests(m):
for addr in m.getMembers():
if m.getMemberOption(addr, mm_cfg.Digests) == True:
print "turning off digests for " + addr
m.setMemberOption(addr, mm_cfg.Digests, 0)
m.Save()
m.Unlock()
Then, execute:
bin/withlist -l -r nodigests -a
Migrating lists from one host to another
To migrate lists from solarsail to sunjammer, I did the following:
- Lower TTL for lists.sugarlabs.org to 30 minutes
- Copy over config before cut-off:
ssh solarsail cd /var/lib/mailman/lists/ rsync -aP aslo bugs colombia community-news dextrose fourthgrademath gsoc iaep italia marketing slobs soas somosazucar sugar-desarrollo sugar-devel sugar-reports systems systems-logs root@sunjammer:/var/lib/mailman/lists/ cd /var/lib/mailman/archives/private rsync -aP aslo* bugs* colombia* community-news* dextrose* fourthgrademath* gsoc* iaep* italia* marketing* slobs* soas* somosazucar* sugar-desarrollo* sugar-devel* sugar-reports* systems* systems-logs* root@sunjammer:/var/lib/mailman/archives/private/
- Copy over the lists.sugarlabs.org bits from the Postfix configuration (
/etc/postfix/main.cfand/etc/postfix/transport)
- Test admin pages and archives on the new site (hint: set the new IP for lists.sugarlabs.org in /etc/hosts)
- Announce downtime on all affected lists
- Stop mailman on solarsail
- Switch over DNS records (with default TTL values)
- Remove mailman transport map from solarail, leaving the relay, so that anything@lists.sugarlabs.org gets sent to sunjammer
- Restart mailman on solarsail