[Mailman-Users] admindb pages redirect to localhost

David Newman dnewman at networktest.com
Fri Jan 4 20:22:24 EST 2019



On 1/4/19 5:10 PM, Mark Sapiro wrote:
> On 1/4/19 4:40 PM, David Newman wrote:
>>
>> Actually, the localhost issue began _after_ I ran "bin/withlist -l -a -r
>> fix_url" from the /usr/local/mailman directory and restarted the Mailman
>> service.
> 
> 
> In your OP you said
> 
>> mm_cfg.py mods:
>>
>> ##################################################
>> # Put YOUR site-specific settings below this line.
>> MTA = 'Postfix'
>> DEFAULT_URL_PATTERN = 'https://%s/mailman/'
>> PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s'
>> PRIVATE_ARCHIVE_URL = '/mailman/private'
>>
>> # Clear the Defaults.py VIRTUAL_HOSTS entry
>> # VIRTUAL_HOSTS.clear()
>>
>> # other vhosts omitted from following line
>> POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'lists.networktest.com' ]
>>
>> # other vhosts omitted after following line
>> add_virtualhost('lists.networktest.com','lists.networktest.com')
>>
>> DEB_LISTMASTER = 'postmaster at networktest.com'
>>
>> ALLOW_FROM_IS_LIST = Yes
> 
> Absent from this is
> 
> DEFAULT_URL_HOST = 'lists.networktest.com'
> DEFAULT_EMAIL_HOST = 'lists.networktest.com'
> 
> If those are set to 'localhost' in Defaults.py, that could explain some
> of this.
> 
> However, you also have comments about "other vhosts omitted". If you
> actually have multiple vhosts, you can't run
> 
> bin/withlist -l -a -r fix_url
> 
> because that will set every list to whatever DEFAULT_URL_HOST is. You
> need to run
> 
> bin/withlist -l -r fix_url LISTNAME --urlhost=HOST_FOR_THAT_LIST

Yup. Sorry I missed this.

dn

> 
> for each list.
> 
> What do you get from
> 
> for list in `bin/list_lists --bare`; do
> echo $list
> bin/dumpdb lists/$list/config.pck|grep \'web_page_url\'
> done
> 
> 


More information about the Mailman-Users mailing list