[Mailman-Users] wrong email address on "Welcome" page
Richard Barrett
r.barrett at ftel.co.uk
Mon Sep 8 19:21:13 CEST 2003
Darren
On Sunday, September 7, 2003, at 06:28 pm, Darren wrote:
> Richard,
>
> You have been very helpful in offering suggestions to fix my problem.
> Yet,
> I still can't seem to understand how to correct the situation where my
> email
> address is reported as being mailman at www.usmstudent.com (instead of
> mailman at usmstudent.com) on the page located at
> http://www.usmstudent.com/mailman/listinfo. I am running version
> 2.1.2 on
> FreeBSD. I have read and re-read your email and the notes in the
> Defaults.py file. Could help me a little further?
>
> Here is an excerpt from my current mm_cfg.py file.
>
> # Site-specific settings
> DEFAULT_EMAIL_HOST = 'usmstudent.com'
> DEFAULT_URL_HOST = 'http://www.usmstudent.com/mailman/'
> PUBLIC_ARCHIVE_URL = '/pipermail'
> PRIVATE_ARCHIVE_URL = '/mailman/private'
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
You should be saying _just_ this in your mm_cfg.py:
# Site-specific settings
DEFAULT_EMAIL_HOST = 'usmstudent.com'
DEFAULT_URL_HOST = 'www.usmstudent.com'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
followed by more add_virtualhost(URL_FQDN, EMAIL_FQDN) calls for any
other virtual hosts you want to support with the system.
Having restarted mailmanctl you should now run the bin/withlist script
fix_url.py from the command line to set the web_page_url and stuff for
each of your lists. Without this last step, whatever you do to
mm_cfg.py will not be propagated to any existing lists.
If you just run bin/fix_url.py from the command line it prints out its
usage for you.
You will probably want to run fix_url without any --urlhost option
unless you have multiple virtual hosts specified in mm_cfg.py
By the look of it you do not need to change the default
PUBLIC_ARCHIVE_URL and if you do need to change it then model it on the
default defined in $prefix/Mailman/Defaults.py, which is:
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
As you can see you have left some parts out.
If you check the NEWS file in the MM 2.1.2 source code distribution you
will find that the semantics of PUBLIC_ARCHIVE_URL configuration
variable was changed in MM 2.1.x and the PRIVATE_ARCHIVE_URL
configuration variable was removed from MM 2.1.x
Come back if you are still having a problem.
Richard
> Thanks for all of your help.
>
> Darren
>
>
> ----- Original Message -----
> From: "Richard Barrett" <r.barrett at openinfo.co.uk>
> To: "Darren" <alias2 at crotchett.com>
> Sent: Wednesday, August 27, 2003 4:41 AM
> Subject: Re: [Mailman-Users] wrong email address on "Welcome" page
>
>
>>
>> On Wednesday, August 27, 2003, at 02:58 am, Darren wrote:
>>
>>> Thanks for the tip. But, I'm sorry. I don't see a reference to the
>>> part
>>> I'm having trouble with. On my "welcome page", there is a link that
>>> users
>>> with questions should use. Mine reports mailman at www.mydomain.com. I
>>> don't
>>> see how to get the "www" out of it. And, (while I may be blind) I
>>> don't see
>>> a reference to it on the FAQ.
>>>
>>
>> Maybe I misunderstood your problem but I will plow on with further
>> explanation which you can ignore if it is not relevant to you.
>>
>> Two list attributes affect what is displayed in the way of URLs and
>> email addresses for any given list; the 'host_name' and 'web_page_url'
>> attributes.
>>
>> These list attributes are set, when the list is created, from defaults
>> acquired from $prefix/Mailman/Defaults.py which may have been
>> over-ridden by values in $prefix/Mailman/mm_cfg.py.
>>
>> The FAQ page I cited deals with changing the defaults, which will
>> affect al new lists subsequently created, and having those revised
>> values propagated to modify existing lists' attributes.
>>
>> You do not say what version of Mailman you are running.
>>
>> I think the relevant section on the referenced FAQ page, which applies
>> to MM 2.1.x, is the explanation under the heading 'Changing
>> hostnames'.
>>
>> Based on your post you would want to add something like this to your
>> $prefix/Mailman/mm_cfg.py to get the right values for new lists:
>>
>> DEFAULT_URL_HOST = 'www.umstudent.com'
>> DEFAULT_EMAIL_HOST = 'umstudent.com'
>> VIRTUAL_HOSTS.clear()
>> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>>
>> and then use $prefix/bin/fix_url to update your existing lists.
>>
>> You can change the email host for an existing list via the admin web
>> GUI by changing the following list attribute:
>>
>> 'Host name this list prefers for email' - host_name
>>
>> but beware of changing this for a list without getting the information
>> in mm_cfg.py correct also.
>>
>> If you are running MM 2.0.13 add something like this to your
>> $prefix/Mailman/mm_cfg.py to get the right values for new lists:
>>
>> DEFAULT_HOST_NAME = 'umstudent.com'
>> DEFAULT_URL = 'http://www.umstudent.com/mailman/'
>>
>> and you can update existing lists from their admin web GUI by changing
>> the following list attributes:
>>
>> 'Host name this list prefers.' - host_name
>>
>> 'Base URL for Mailman web interface ...' - web_page_url
>>
>> but be careful in changing the $prefix/Mailman/ attribute. Get that
>> wrong and further access to the web admin GUI for the list may become
>> problematic; which is why it was removed from the web admin GUI in MM
>> 2.1.x
>>
>>> Darren
>>>
>>>
>>> ----- Original Message -----
>>> From: "Richard Barrett" <r.barrett at ftel.co.uk>
>>> To: "Darren" <alias2 at crotchett.com>
>>> Cc: <mailman-users at python.org>
>>> Sent: Monday, August 25, 2003 10:02 AM
>>> Subject: Re: [Mailman-Users] wrong email address on "Welcome" page
>>>
>>>
>>>>
>>>> On Monday, August 25, 2003, at 03:45 am, Darren wrote:
>>>>
>>>>> I have Mailman running on a FreeBSD box. On the "welcome" page
>>>>> (http://www.usmstudent.com/mailman/listinfo/) the email address it
>>>>> points
>>>>> users to who have "questions or comments" is wrong. It includes a
>>>>> "www." in
>>>>> the domain. I can not figure out where to change this. I did
>>>>> find a
>>>>> file
>>>>> that I can edit by hand. But, I don't think hacking it is the
>>>>> answer.
>>>>>
>>>>> So, can anyone tell me what the appropriate way change this to take
>>>>> the
>>>>> "www." out of the email address would be?
>>>>>
>>>> Check the FAQ Luke, check the FAQ:
>>>>
>>>> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp
>>>>> TIA,
>>>>> Darren
>>>>>
-----------------------------------------------------------------------
Richard Barrett http://www.openinfo.co.uk
More information about the Mailman-Users
mailing list