Changing Local Links

Asked by cmnorton

When mailman sends email, like when it sends the confirmation email, I would like to change

http://webapps:8581/mailman/confirm/precinct3/<confirmation_code>

so, that it reads

http://some-externally-known-wan-address/tm_list/confirm/precinct3/<confirmation_code>

I have read documentation on changing existing lists using withlist and fix_url, but I still confused on what to change.

The reason I am doing this is webapps:8581 is inside our firewall. An apache server is set up to route to all our internal servers, so that only one server is exposed through our firewall.

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Mailman Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Sapiro
Solved:
Last query:
Last reply:
Revision history for this message
Best Mark Sapiro (msapiro) said :
#1

The http://webapps:8581/mailman/ part of http://webapps:8581/mailman/confirm/precinct3/<confirmation_code> comes from interpolating the web host name (probably DEFAULT_URL_HOST) into DEFAULT_URL_PATTERN at list create time.

To change this, assuming 'some-externally-known-wan-address' does not contain a port specification, you'd set

DEFAULT_URL_HOST = 'some-externally-known-wan-address'
DEFAULT_URL_PATTERN = 'http://%s/tm_list/'

in mm:cfg.py and then run fix_url to update the actual list settings. If 'some-externally-known-wan-address' does contain a port, you'd put that part of it in DEFAULT_URL_PATTERN. e.g.

DEFAULT_URL_HOST = 'some-externally-known-wan-address-without-port-spec'
DEFAULT_URL_PATTERN = 'http://%s:port-spec/tm_list/'

You also need to put the appropriate ScriptAlias in apache config for the some-externally-known-wan-address host, e.g.

ScriptAlias /tm_list/ /usr/local/mailman/cgi-bin/

and if you have public archives, update PUBLIC_ARCHIVE_URL as well.

The caveat here is this affects all URLs other than public archives, so you also have to arrange for some-externally-known-wan-addres to be known inside your LAN if you are going to access the Mailman web interface from inside the LAN.

Revision history for this message
cmnorton (octopusgrabbus) said :
#2

Many thanks!

Revision history for this message
cmnorton (octopusgrabbus) said :
#3

Thanks Mark Sapiro, that solved my question.