Skip to Content.
Sympa Menu

en - [sympa-users] Migrating from MailMan: Useful redirections

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Steve Shipway <address@concealed>
  • To: "'address@concealed'" <address@concealed>
  • Subject: [sympa-users] Migrating from MailMan: Useful redirections
  • Date: Tue, 28 May 2013 00:49:13 +0000

So, I’m migrating yet another departmental MailMan server to our central Sympa server.

 

In order for their old MailMan archive URLs to continue to work, I’ve set up a few special redirects in our Apache server.  These might be of some use to anyone else doing the same sort of move.  Note that this is setup so that it will work also correctly when you have multiple list domains!

 

First of all, create /etc/httpd/conf.d/monthmap.txt to map month names (as used in Mailman) to month numbers (as used in Sympa).

 

# /etc/httpd/conf.d/monthmap.txt

January 01

February 02

March 03

April 04

May 05

June 06

July 07

August 08

September 09

October 10

November 11

December 12

 

Next, add the following /etc/httpd/conf.d/mailman.conf to map archives to their correct location, as well as doing its best to map list info pages and so on to a corresponding page in Sympa.

 

RewriteEngine On

RewriteMap monthmap txt:/etc/httpd/conf.d/monthmap.txt

RewriteRule ^/mailman/listinfo/(.*)$ /sympa/info/$1  [R=303,L]

RewriteRule ^/mailman/listinfo       /sympa/home     [R=303,L]

RewriteRule ^/mailman/admin/(.*)$    /sympa/admin/$1 [R=303,L]

RewriteRule ^/mailman/(private|public)/(\w+)/(\d+)-(\w+)/ /sympa/arc/$2/$3-${monthmap:$4|01}/ [R=303,L]

RewriteRule ^/mailman/(private|public)/(\w+)/ /sympa/arc/$2 [R=303,L]

RewriteRule ^/mailman$               /sympa/home     [R=303,L]

RewriteRule ^/mailman/(.*)$          /sympa/home   [R=303,L]

RewriteRule ^/pipermail/(\w+)/(\d+)-(\w+)/ /sympa/arc/$1/$2-${monthmap:$3|01}/ [R=303,L]

RewriteRule ^/pipermail/(\w+)/       /sympa/arc/$1   [R=303,L]

RewriteRule ^/pipermail/             /migrated.html  [R=303,L]

 

If you have virtual hosts defined in your apache setup, or if you are using SSL, then you’ll need to add this to the <VirtualHost> section to inherit the rewrite rules from the base:

 

RewriteEngine On

RewriteOptions Inherit

 

Now,  anyone who has bookmarked a link pointing to a mail archive item in Mailman will be able to continue to use the same URL under Sympa!  It will only send them to the monthly index page, not to the actual item, but that’s as close as we can get using automatic rewrites.  Also, any bookmarked links to admin pages or info pages will go to the correct place in Sympa as well.

 

Hope you find this of use.

 

Steve

 


Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 923 6487

Mobile: +64 (0)21 753 189

Email: address@concealed

P Please consider the environment before printing this e-mail : 打印本邮件,将减少一棵树存活的机会

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature



  • [sympa-users] Migrating from MailMan: Useful redirections, Steve Shipway, 05/28/2013

Archive powered by MHonArc 2.6.19+.

Top of Page