On 2/19/11 6:57 AM, Mark Sapiro wrote: > David Newman wrote: >> >> With the mm.cfg config pasted below, clicking the archives link on a >> list page for lists.domain2.tld redirects to >> >> https://mail.domain1.tld/pipermail/listname >> >> which fails because the list name is associated with domain2.tld and not >> domain1.tld. > > > Do you mean the link points to > https://mail.domain1.tld/pipermail/listname or that the link points to > https://lists.domain2.tld/pipermail/listname but when you follow it, > it is redirected. > > If you mean the former, run Mailman's > > bin/withlist -l -r fix_url listname -u lists.domain2.tld > > and that should fix it.
Thanks, Mark. Adding '-u hostname' did the trick. I'd suggest adding this to the FAQ, which currently does not mention the -u switch: http://wiki.list.org/display/DOC/4.27+Securing+Mailman%27s+web+GUI+by+using+Secure+HTTP-SSL dn > > If you mean the latter, it is your web server configuration doing this. > To say more, we'd need to see the relevant pieces of your web server > configuration. > > >> Not sure if this is related, but this is after running 'withlist -l -r >> fix_url listname' on domain2.tld's mailing list and restarting mailman. > > > If you mean the above literally, that's the problem. You're missing the > -u lists.domain2.tld at the end of the above so fix_url used the > DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST values. Also, it is not > necessary to restart Mailman after running fix_url unless you also > made mm_cfg.py changes. > > >> Thanks in advance for configuration clues. > > > The following looks good. > > >> # Put YOUR site-specific settings below this line. >> MTA = 'Postfix' >> MAILMAN_SITE_LIST = 'mailman' >> DEFAULT_EMAIL_HOST = 'mail.domain1.tld' >> DEFAULT_URL_HOST = 'mail.domain1.tld' >> DEFAULT_URL_PATTERN = 'https://%s/mailman/' >> PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s' >> # Clear the Defaults.py VIRTUAL_HOSTS entry >> VIRTUAL_HOSTS.clear() >> add_virtualhost('lists.domain2.tld','lists.domain2.tld') >> add_virtualhost('lists.domain3.tld','lists.domain3.tld') >> add_virtualhost('lists.domain4.tld','lists.domain4.tld') >> add_virtualhost('lists.domain5.tld','lists.domain5.tld') >> VERP_PASSWORD_REMINDERS = Yes >> VERP_PERSONALIZED_DELIVERIES = Yes >> VERP_DELIVERY_INTERVAL = Yes >> VERP_CONFIRMATIONS = Yes >> VERP_DELIVERY_INTERVAL = 1 >> OWNERS_CAN_ENABLE_PERSONALIZATION = 1 > ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://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: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org